@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,483 lines (1,315 loc) • 97.9 kB
JavaScript
// source: routerprotocol/routerchain/rwasm/tx.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 gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgClearAdmin', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgClearAdminResponse', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgCwStoreCode', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgCwStoreCodeResponse', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2Response', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContract', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContractResponse', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgUpdateAdmin', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.rwasm.MsgUpdateAdminResponse', 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.rwasm.MsgExecuteCwContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract';
}
/**
* 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.rwasm.MsgExecuteCwContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse';
}
/**
* 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.rwasm.MsgInstantiateCwContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract';
}
/**
* 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.rwasm.MsgInstantiateCwContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse';
}
/**
* 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.rwasm.MsgInstantiateCwContract2 = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2';
}
/**
* 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.rwasm.MsgInstantiateCwContract2Response = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2Response, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2Response.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2Response';
}
/**
* 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.rwasm.MsgCwStoreCode = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgCwStoreCode, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgCwStoreCode.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgCwStoreCode';
}
/**
* 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.rwasm.MsgCwStoreCodeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgCwStoreCodeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgCwStoreCodeResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgCwStoreCodeResponse';
}
/**
* 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.rwasm.MsgMigrateCwContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContract.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContract';
}
/**
* 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.rwasm.MsgMigrateCwContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContractResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgMigrateCwContractResponse';
}
/**
* 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.rwasm.MsgUpdateAdmin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgUpdateAdmin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgUpdateAdmin.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgUpdateAdmin';
}
/**
* 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.rwasm.MsgUpdateAdminResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgUpdateAdminResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgUpdateAdminResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgUpdateAdminResponse';
}
/**
* 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.rwasm.MsgClearAdmin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgClearAdmin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgClearAdmin.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgClearAdmin';
}
/**
* 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.rwasm.MsgClearAdminResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.rwasm.MsgClearAdminResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.rwasm.MsgClearAdminResponse.displayName = 'proto.routerprotocol.routerchain.rwasm.MsgClearAdminResponse';
}
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.rwasm.MsgExecuteCwContract.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.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.rwasm.MsgExecuteCwContract} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.toObject = function(includeInstance, msg) {
var f, obj = {
sender: jspb.Message.getFieldWithDefault(msg, 1, ""),
contract: jspb.Message.getFieldWithDefault(msg, 2, ""),
msg: jspb.Message.getFieldWithDefault(msg, 3, ""),
funds: jspb.Message.getFieldWithDefault(msg, 4, "")
};
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.rwasm.MsgExecuteCwContract}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract;
return proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.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.setSender(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setContract(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMsg(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setFunds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.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.rwasm.MsgExecuteCwContract} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSender();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getContract();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getMsg();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getFunds();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
};
/**
* optional string sender = 1;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string contract = 2;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.getContract = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.setContract = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string msg = 3;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.getMsg = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.setMsg = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional string funds = 4;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.getFunds = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContract.prototype.setFunds = function(value) {
return jspb.Message.setProto3StringField(this, 4, 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.rwasm.MsgExecuteCwContractResponse.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.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.rwasm.MsgExecuteCwContractResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.toObject = function(includeInstance, msg) {
var f, obj = {
data: msg.getData_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.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse;
return proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.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.rwasm.MsgExecuteCwContractResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
};
/**
* optional bytes data = 1;
* @return {!(string|Uint8Array)}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes data = 1;
* This is a type-conversion wrapper around `getData()`
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.prototype.getData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getData()));
};
/**
* optional bytes data = 1;
* 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.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.prototype.getData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgExecuteCwContractResponse.prototype.setData = function(value) {
return jspb.Message.setProto3BytesField(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.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.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.rwasm.MsgInstantiateCwContract} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.toObject = function(includeInstance, msg) {
var f, obj = {
sender: jspb.Message.getFieldWithDefault(msg, 1, ""),
admin: jspb.Message.getFieldWithDefault(msg, 2, ""),
codeId: jspb.Message.getFieldWithDefault(msg, 3, 0),
label: jspb.Message.getFieldWithDefault(msg, 4, ""),
msg: jspb.Message.getFieldWithDefault(msg, 5, ""),
funds: 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.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract;
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.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.setSender(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setAdmin(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setCodeId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setLabel(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setMsg(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setFunds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.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.rwasm.MsgInstantiateCwContract} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSender();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getAdmin();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getCodeId();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getLabel();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getMsg();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getFunds();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
};
/**
* optional string sender = 1;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string admin = 2;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getAdmin = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setAdmin = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional uint64 code_id = 3;
* @return {number}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getCodeId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setCodeId = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string label = 4;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getLabel = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setLabel = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string msg = 5;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getMsg = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setMsg = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string funds = 6;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.getFunds = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract.prototype.setFunds = function(value) {
return jspb.Message.setProto3StringField(this, 6, 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.rwasm.MsgInstantiateCwContractResponse.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.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.rwasm.MsgInstantiateCwContractResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
data: msg.getData_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.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse;
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.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.rwasm.MsgInstantiateCwContractResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional string address = 1;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.setAddress = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional bytes data = 2;
* @return {!(string|Uint8Array)}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes data = 2;
* This is a type-conversion wrapper around `getData()`
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.getData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getData()));
};
/**
* optional bytes data = 2;
* 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.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.getData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContractResponse.prototype.setData = function(value) {
return jspb.Message.setProto3BytesField(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.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.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.rwasm.MsgInstantiateCwContract2} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.toObject = function(includeInstance, msg) {
var f, obj = {
sender: jspb.Message.getFieldWithDefault(msg, 1, ""),
admin: jspb.Message.getFieldWithDefault(msg, 2, ""),
codeId: jspb.Message.getFieldWithDefault(msg, 3, 0),
label: jspb.Message.getFieldWithDefault(msg, 4, ""),
msg: jspb.Message.getFieldWithDefault(msg, 5, ""),
funds: jspb.Message.getFieldWithDefault(msg, 6, ""),
salt: jspb.Message.getFieldWithDefault(msg, 7, ""),
fixMsg: jspb.Message.getBooleanFieldWithDefault(msg, 8, 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.rwasm.MsgInstantiateCwContract2}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2;
return proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.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.setSender(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setAdmin(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setCodeId(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setLabel(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setMsg(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setFunds(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setSalt(value);
break;
case 8:
var value = /** @type {boolean} */ (reader.readBool());
msg.setFixMsg(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.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.rwasm.MsgInstantiateCwContract2} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSender();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getAdmin();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getCodeId();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getLabel();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getMsg();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getFunds();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getSalt();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getFixMsg();
if (f) {
writer.writeBool(
8,
f
);
}
};
/**
* optional string sender = 1;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string admin = 2;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getAdmin = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setAdmin = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional uint64 code_id = 3;
* @return {number}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getCodeId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setCodeId = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional string label = 4;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getLabel = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setLabel = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional string msg = 5;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getMsg = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setMsg = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string funds = 6;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getFunds = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setFunds = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string salt = 7;
* @return {string}
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.getSalt = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2} returns this
*/
proto.routerprotocol.routerchain.rwasm.MsgInstantiateCwContract2.prototype.setSalt = function(va