@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,781 lines (1,549 loc) • 74.8 kB
JavaScript
// source: types/tx_service.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 google_api_annotations_pb = require('../google/api/annotations_pb.js');
goog.object.extend(proto, google_api_annotations_pb);
var cosmos_base_abci_v1beta1_abci_pb = require('../cosmos/base/abci/v1beta1/abci_pb.js');
goog.object.extend(proto, cosmos_base_abci_v1beta1_abci_pb);
var cosmos_tx_v1beta1_tx_pb = require('../cosmos/tx/v1beta1/tx_pb.js');
goog.object.extend(proto, cosmos_tx_v1beta1_tx_pb);
var gogoproto_gogo_pb = require('../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var cosmos_base_query_v1beta1_pagination_pb = require('../cosmos/base/query/v1beta1/pagination_pb.js');
goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb);
goog.exportSymbol('proto.types.BroadcastTxRequest', null, global);
goog.exportSymbol('proto.types.BroadcastTxResponse', null, global);
goog.exportSymbol('proto.types.CosmosCoin', null, global);
goog.exportSymbol('proto.types.CosmosPubKey', null, global);
goog.exportSymbol('proto.types.CosmosTxFee', null, global);
goog.exportSymbol('proto.types.GetTxRequest', null, global);
goog.exportSymbol('proto.types.GetTxResponse', null, global);
goog.exportSymbol('proto.types.PrepareTxRequest', null, global);
goog.exportSymbol('proto.types.PrepareTxResponse', 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.types.GetTxRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.GetTxRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.GetTxRequest.displayName = 'proto.types.GetTxRequest';
}
/**
* 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.types.GetTxResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.GetTxResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.GetTxResponse.displayName = 'proto.types.GetTxResponse';
}
/**
* 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.types.PrepareTxRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.types.PrepareTxRequest.repeatedFields_, null);
};
goog.inherits(proto.types.PrepareTxRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.PrepareTxRequest.displayName = 'proto.types.PrepareTxRequest';
}
/**
* 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.types.CosmosTxFee = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.types.CosmosTxFee.repeatedFields_, null);
};
goog.inherits(proto.types.CosmosTxFee, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.CosmosTxFee.displayName = 'proto.types.CosmosTxFee';
}
/**
* 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.types.CosmosCoin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.CosmosCoin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.CosmosCoin.displayName = 'proto.types.CosmosCoin';
}
/**
* 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.types.PrepareTxResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.PrepareTxResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.PrepareTxResponse.displayName = 'proto.types.PrepareTxResponse';
}
/**
* 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.types.BroadcastTxRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.types.BroadcastTxRequest.repeatedFields_, null);
};
goog.inherits(proto.types.BroadcastTxRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.BroadcastTxRequest.displayName = 'proto.types.BroadcastTxRequest';
}
/**
* 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.types.CosmosPubKey = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.CosmosPubKey, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.CosmosPubKey.displayName = 'proto.types.CosmosPubKey';
}
/**
* 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.types.BroadcastTxResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.types.BroadcastTxResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.types.BroadcastTxResponse.displayName = 'proto.types.BroadcastTxResponse';
}
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.types.GetTxRequest.prototype.toObject = function(opt_includeInstance) {
return proto.types.GetTxRequest.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.types.GetTxRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.GetTxRequest.toObject = function(includeInstance, msg) {
var f, obj = {
hash: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.types.GetTxRequest}
*/
proto.types.GetTxRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.GetTxRequest;
return proto.types.GetTxRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.GetTxRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.GetTxRequest}
*/
proto.types.GetTxRequest.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.setHash(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.GetTxRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.GetTxRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.GetTxRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.GetTxRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getHash();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string hash = 1;
* @return {string}
*/
proto.types.GetTxRequest.prototype.getHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.types.GetTxRequest} returns this
*/
proto.types.GetTxRequest.prototype.setHash = function(value) {
return jspb.Message.setProto3StringField(this, 1, 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.types.GetTxResponse.prototype.toObject = function(opt_includeInstance) {
return proto.types.GetTxResponse.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.types.GetTxResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.GetTxResponse.toObject = function(includeInstance, msg) {
var f, obj = {
txHash: jspb.Message.getFieldWithDefault(msg, 1, ""),
height: jspb.Message.getFieldWithDefault(msg, 2, 0),
index: jspb.Message.getFieldWithDefault(msg, 3, 0),
codespace: jspb.Message.getFieldWithDefault(msg, 4, ""),
code: jspb.Message.getFieldWithDefault(msg, 5, 0),
data: msg.getData_asB64(),
rawLog: jspb.Message.getFieldWithDefault(msg, 7, ""),
timestamp: jspb.Message.getFieldWithDefault(msg, 8, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.types.GetTxResponse}
*/
proto.types.GetTxResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.GetTxResponse;
return proto.types.GetTxResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.GetTxResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.GetTxResponse}
*/
proto.types.GetTxResponse.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.setTxHash(value);
break;
case 2:
var value = /** @type {number} */ (reader.readSint64());
msg.setHeight(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint32());
msg.setIndex(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setCodespace(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint32());
msg.setCode(value);
break;
case 6:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setRawLog(value);
break;
case 8:
var value = /** @type {string} */ (reader.readString());
msg.setTimestamp(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.GetTxResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.GetTxResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.GetTxResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.GetTxResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTxHash();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getHeight();
if (f !== 0) {
writer.writeSint64(
2,
f
);
}
f = message.getIndex();
if (f !== 0) {
writer.writeUint32(
3,
f
);
}
f = message.getCodespace();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getCode();
if (f !== 0) {
writer.writeUint32(
5,
f
);
}
f = message.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
6,
f
);
}
f = message.getRawLog();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getTimestamp();
if (f.length > 0) {
writer.writeString(
8,
f
);
}
};
/**
* optional string tx_hash = 1;
* @return {string}
*/
proto.types.GetTxResponse.prototype.getTxHash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setTxHash = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional sint64 height = 2;
* @return {number}
*/
proto.types.GetTxResponse.prototype.getHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setHeight = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional uint32 index = 3;
* @return {number}
*/
proto.types.GetTxResponse.prototype.getIndex = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setIndex = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string codespace = 4;
* @return {string}
*/
proto.types.GetTxResponse.prototype.getCodespace = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setCodespace = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional uint32 code = 5;
* @return {number}
*/
proto.types.GetTxResponse.prototype.getCode = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setCode = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional bytes data = 6;
* @return {!(string|Uint8Array)}
*/
proto.types.GetTxResponse.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* optional bytes data = 6;
* This is a type-conversion wrapper around `getData()`
* @return {string}
*/
proto.types.GetTxResponse.prototype.getData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getData()));
};
/**
* optional bytes data = 6;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getData()`
* @return {!Uint8Array}
*/
proto.types.GetTxResponse.prototype.getData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setData = function(value) {
return jspb.Message.setProto3BytesField(this, 6, value);
};
/**
* optional string raw_log = 7;
* @return {string}
*/
proto.types.GetTxResponse.prototype.getRawLog = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setRawLog = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional string timestamp = 8;
* @return {string}
*/
proto.types.GetTxResponse.prototype.getTimestamp = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* @param {string} value
* @return {!proto.types.GetTxResponse} returns this
*/
proto.types.GetTxResponse.prototype.setTimestamp = function(value) {
return jspb.Message.setProto3StringField(this, 8, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.types.PrepareTxRequest.repeatedFields_ = [7];
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.types.PrepareTxRequest.prototype.toObject = function(opt_includeInstance) {
return proto.types.PrepareTxRequest.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.types.PrepareTxRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.PrepareTxRequest.toObject = function(includeInstance, msg) {
var f, obj = {
chainId: jspb.Message.getFieldWithDefault(msg, 1, 0),
signerAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
sequence: jspb.Message.getFieldWithDefault(msg, 3, 0),
memo: jspb.Message.getFieldWithDefault(msg, 4, ""),
timeoutHeight: jspb.Message.getFieldWithDefault(msg, 5, 0),
fee: (f = msg.getFee()) && proto.types.CosmosTxFee.toObject(includeInstance, f),
msgsList: msg.getMsgsList_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.types.PrepareTxRequest}
*/
proto.types.PrepareTxRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.PrepareTxRequest;
return proto.types.PrepareTxRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.PrepareTxRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.PrepareTxRequest}
*/
proto.types.PrepareTxRequest.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.setChainId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSignerAddress(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setSequence(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setMemo(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint64());
msg.setTimeoutHeight(value);
break;
case 6:
var value = new proto.types.CosmosTxFee;
reader.readMessage(value,proto.types.CosmosTxFee.deserializeBinaryFromReader);
msg.setFee(value);
break;
case 7:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addMsgs(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.PrepareTxRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.PrepareTxRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.PrepareTxRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.PrepareTxRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChainId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSignerAddress();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSequence();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getMemo();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getTimeoutHeight();
if (f !== 0) {
writer.writeUint64(
5,
f
);
}
f = message.getFee();
if (f != null) {
writer.writeMessage(
6,
f,
proto.types.CosmosTxFee.serializeBinaryToWriter
);
}
f = message.getMsgsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
7,
f
);
}
};
/**
* optional uint64 chain_id = 1;
* @return {number}
*/
proto.types.PrepareTxRequest.prototype.getChainId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setChainId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string signer_address = 2;
* @return {string}
*/
proto.types.PrepareTxRequest.prototype.getSignerAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setSignerAddress = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional uint64 sequence = 3;
* @return {number}
*/
proto.types.PrepareTxRequest.prototype.getSequence = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setSequence = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string memo = 4;
* @return {string}
*/
proto.types.PrepareTxRequest.prototype.getMemo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setMemo = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional uint64 timeout_height = 5;
* @return {number}
*/
proto.types.PrepareTxRequest.prototype.getTimeoutHeight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setTimeoutHeight = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional CosmosTxFee fee = 6;
* @return {?proto.types.CosmosTxFee}
*/
proto.types.PrepareTxRequest.prototype.getFee = function() {
return /** @type{?proto.types.CosmosTxFee} */ (
jspb.Message.getWrapperField(this, proto.types.CosmosTxFee, 6));
};
/**
* @param {?proto.types.CosmosTxFee|undefined} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setFee = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.clearFee = function() {
return this.setFee(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.types.PrepareTxRequest.prototype.hasFee = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* repeated bytes msgs = 7;
* @return {!(Array<!Uint8Array>|Array<string>)}
*/
proto.types.PrepareTxRequest.prototype.getMsgsList = function() {
return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 7));
};
/**
* repeated bytes msgs = 7;
* This is a type-conversion wrapper around `getMsgsList()`
* @return {!Array<string>}
*/
proto.types.PrepareTxRequest.prototype.getMsgsList_asB64 = function() {
return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
this.getMsgsList()));
};
/**
* repeated bytes msgs = 7;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getMsgsList()`
* @return {!Array<!Uint8Array>}
*/
proto.types.PrepareTxRequest.prototype.getMsgsList_asU8 = function() {
return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getMsgsList()));
};
/**
* @param {!(Array<!Uint8Array>|Array<string>)} value
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.setMsgsList = function(value) {
return jspb.Message.setField(this, 7, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.addMsgs = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.types.PrepareTxRequest} returns this
*/
proto.types.PrepareTxRequest.prototype.clearMsgsList = function() {
return this.setMsgsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.types.CosmosTxFee.repeatedFields_ = [1];
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.types.CosmosTxFee.prototype.toObject = function(opt_includeInstance) {
return proto.types.CosmosTxFee.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.types.CosmosTxFee} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.CosmosTxFee.toObject = function(includeInstance, msg) {
var f, obj = {
priceList: jspb.Message.toObjectList(msg.getPriceList(),
proto.types.CosmosCoin.toObject, includeInstance),
gas: jspb.Message.getFieldWithDefault(msg, 2, 0),
delegateFee: jspb.Message.getBooleanFieldWithDefault(msg, 3, 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.types.CosmosTxFee}
*/
proto.types.CosmosTxFee.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.CosmosTxFee;
return proto.types.CosmosTxFee.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.CosmosTxFee} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.CosmosTxFee}
*/
proto.types.CosmosTxFee.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.types.CosmosCoin;
reader.readMessage(value,proto.types.CosmosCoin.deserializeBinaryFromReader);
msg.addPrice(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setGas(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDelegateFee(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.CosmosTxFee.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.CosmosTxFee.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.CosmosTxFee} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.CosmosTxFee.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getPriceList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.types.CosmosCoin.serializeBinaryToWriter
);
}
f = message.getGas();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
f = message.getDelegateFee();
if (f) {
writer.writeBool(
3,
f
);
}
};
/**
* repeated CosmosCoin price = 1;
* @return {!Array<!proto.types.CosmosCoin>}
*/
proto.types.CosmosTxFee.prototype.getPriceList = function() {
return /** @type{!Array<!proto.types.CosmosCoin>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.types.CosmosCoin, 1));
};
/**
* @param {!Array<!proto.types.CosmosCoin>} value
* @return {!proto.types.CosmosTxFee} returns this
*/
proto.types.CosmosTxFee.prototype.setPriceList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.types.CosmosCoin=} opt_value
* @param {number=} opt_index
* @return {!proto.types.CosmosCoin}
*/
proto.types.CosmosTxFee.prototype.addPrice = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.types.CosmosCoin, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.types.CosmosTxFee} returns this
*/
proto.types.CosmosTxFee.prototype.clearPriceList = function() {
return this.setPriceList([]);
};
/**
* optional uint64 gas = 2;
* @return {number}
*/
proto.types.CosmosTxFee.prototype.getGas = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.types.CosmosTxFee} returns this
*/
proto.types.CosmosTxFee.prototype.setGas = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional bool delegate_fee = 3;
* @return {boolean}
*/
proto.types.CosmosTxFee.prototype.getDelegateFee = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.types.CosmosTxFee} returns this
*/
proto.types.CosmosTxFee.prototype.setDelegateFee = function(value) {
return jspb.Message.setProto3BooleanField(this, 3, 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.types.CosmosCoin.prototype.toObject = function(opt_includeInstance) {
return proto.types.CosmosCoin.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.types.CosmosCoin} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.CosmosCoin.toObject = function(includeInstance, msg) {
var f, obj = {
denom: jspb.Message.getFieldWithDefault(msg, 1, ""),
amount: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.types.CosmosCoin}
*/
proto.types.CosmosCoin.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.CosmosCoin;
return proto.types.CosmosCoin.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.CosmosCoin} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.CosmosCoin}
*/
proto.types.CosmosCoin.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.setDenom(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setAmount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.CosmosCoin.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.CosmosCoin.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.CosmosCoin} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.CosmosCoin.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDenom();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getAmount();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string denom = 1;
* @return {string}
*/
proto.types.CosmosCoin.prototype.getDenom = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.types.CosmosCoin} returns this
*/
proto.types.CosmosCoin.prototype.setDenom = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string amount = 2;
* @return {string}
*/
proto.types.CosmosCoin.prototype.getAmount = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.types.CosmosCoin} returns this
*/
proto.types.CosmosCoin.prototype.setAmount = function(value) {
return jspb.Message.setProto3StringField(this, 2, 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.types.PrepareTxResponse.prototype.toObject = function(opt_includeInstance) {
return proto.types.PrepareTxResponse.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.types.PrepareTxResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.PrepareTxResponse.toObject = function(includeInstance, msg) {
var f, obj = {
data: jspb.Message.getFieldWithDefault(msg, 1, ""),
sequence: jspb.Message.getFieldWithDefault(msg, 2, 0),
signMode: jspb.Message.getFieldWithDefault(msg, 3, ""),
pubKeyType: jspb.Message.getFieldWithDefault(msg, 4, ""),
feePayer: jspb.Message.getFieldWithDefault(msg, 5, ""),
feePayerSig: jspb.Message.getFieldWithDefault(msg, 6, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.types.PrepareTxResponse}
*/
proto.types.PrepareTxResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.types.PrepareTxResponse;
return proto.types.PrepareTxResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.types.PrepareTxResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.types.PrepareTxResponse}
*/
proto.types.PrepareTxResponse.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.setData(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setSequence(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setSignMode(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setPubKeyType(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setFeePayer(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setFeePayerSig(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.types.PrepareTxResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.types.PrepareTxResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.types.PrepareTxResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.types.PrepareTxResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getData();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getSequence();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
f = message.getSignMode();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getPubKeyType();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getFeePayer();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getFeePayerSig();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
};
/**
* optional string data = 1;
* @return {string}
*/
proto.types.PrepareTxResponse.prototype.getData = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setData = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional uint64 sequence = 2;
* @return {number}
*/
proto.types.PrepareTxResponse.prototype.getSequence = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setSequence = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional string sign_mode = 3;
* @return {string}
*/
proto.types.PrepareTxResponse.prototype.getSignMode = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setSignMode = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string pub_key_type = 4;
* @return {string}
*/
proto.types.PrepareTxResponse.prototype.getPubKeyType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setPubKeyType = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string fee_payer = 5;
* @return {string}
*/
proto.types.PrepareTxResponse.prototype.getFeePayer = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setFeePayer = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string fee_payer_sig = 6;
* @return {string}
*/
proto.types.PrepareTxResponse.prototype.getFeePayerSig = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.types.PrepareTxResponse} returns this
*/
proto.types.PrepareTxResponse.prototype.setFeePayerSig = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.types.BroadcastTxRequest.repeatedFields_ = [3];
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