@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
1,525 lines (1,493 loc) • 315 kB
JavaScript
// source: ibc/core/channel/v1/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)
var cosmos_msg_v1_msg_pb = require('../../../../cosmos/msg/v1/msg_pb.js')
goog.object.extend(proto, cosmos_msg_v1_msg_pb)
var ibc_core_client_v1_client_pb = require('../../../../ibc/core/client/v1/client_pb.js')
goog.object.extend(proto, ibc_core_client_v1_client_pb)
var ibc_core_channel_v1_channel_pb = require('../../../../ibc/core/channel/v1/channel_pb.js')
goog.object.extend(proto, ibc_core_channel_v1_channel_pb)
var ibc_core_channel_v1_upgrade_pb = require('../../../../ibc/core/channel/v1/upgrade_pb.js')
goog.object.extend(proto, ibc_core_channel_v1_upgrade_pb)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgAcknowledgement', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgAcknowledgementResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelCloseConfirm',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelCloseInit', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelCloseInitResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenAck', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelOpenAckResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelOpenConfirm',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenInit', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelOpenInitResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgChannelOpenTry', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelOpenTryResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeAck',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeAckResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeCancel',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeCancelResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeConfirm',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeInit',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeInitResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeOpen',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeOpenResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeTimeout',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeTry',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgChannelUpgradeTryResponse',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgPruneAcknowledgements',
null,
global,
)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgPruneAcknowledgementsResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgRecvPacket', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgRecvPacketResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeout', null, global)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeoutOnClose', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgTimeoutResponse', null, global)
goog.exportSymbol('proto.ibc.core.channel.v1.MsgUpdateParams', null, global)
goog.exportSymbol(
'proto.ibc.core.channel.v1.MsgUpdateParamsResponse',
null,
global,
)
goog.exportSymbol('proto.ibc.core.channel.v1.ResponseResultType', 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.ibc.core.channel.v1.MsgChannelOpenInit = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenInit, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenInit'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenInitResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenInitResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenTry = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenTry, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenTry.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenTry'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenTryResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenTryResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenTryResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenTryResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenAck = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenAck, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenAck.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenAck'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenAckResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenAckResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenAckResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenAckResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenConfirm = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelOpenConfirm, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenConfirm.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenConfirm'
}
/**
* 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.ibc.core.channel.v1.MsgChannelOpenConfirmResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelOpenConfirmResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelCloseInit = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseInit, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelCloseInit.displayName =
'proto.ibc.core.channel.v1.MsgChannelCloseInit'
}
/**
* 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.ibc.core.channel.v1.MsgChannelCloseInitResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelCloseInitResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelCloseInitResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelCloseInitResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelCloseConfirm = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelCloseConfirm, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelCloseConfirm.displayName =
'proto.ibc.core.channel.v1.MsgChannelCloseConfirm'
}
/**
* 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.ibc.core.channel.v1.MsgChannelCloseConfirmResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelCloseConfirmResponse'
}
/**
* 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.ibc.core.channel.v1.MsgRecvPacket = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgRecvPacket, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgRecvPacket.displayName =
'proto.ibc.core.channel.v1.MsgRecvPacket'
}
/**
* 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.ibc.core.channel.v1.MsgRecvPacketResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgRecvPacketResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgRecvPacketResponse.displayName =
'proto.ibc.core.channel.v1.MsgRecvPacketResponse'
}
/**
* 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.ibc.core.channel.v1.MsgTimeout = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgTimeout, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgTimeout.displayName =
'proto.ibc.core.channel.v1.MsgTimeout'
}
/**
* 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.ibc.core.channel.v1.MsgTimeoutResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgTimeoutResponse.displayName =
'proto.ibc.core.channel.v1.MsgTimeoutResponse'
}
/**
* 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.ibc.core.channel.v1.MsgTimeoutOnClose = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutOnClose, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgTimeoutOnClose.displayName =
'proto.ibc.core.channel.v1.MsgTimeoutOnClose'
}
/**
* 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.ibc.core.channel.v1.MsgTimeoutOnCloseResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse.displayName =
'proto.ibc.core.channel.v1.MsgTimeoutOnCloseResponse'
}
/**
* 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.ibc.core.channel.v1.MsgAcknowledgement = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgAcknowledgement, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgAcknowledgement.displayName =
'proto.ibc.core.channel.v1.MsgAcknowledgement'
}
/**
* 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.ibc.core.channel.v1.MsgAcknowledgementResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgAcknowledgementResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgAcknowledgementResponse.displayName =
'proto.ibc.core.channel.v1.MsgAcknowledgementResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeInit = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeInit, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeInit.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeInit'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeInitResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeInitResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeInitResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeInitResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeTry = function (opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.ibc.core.channel.v1.MsgChannelUpgradeTry.repeatedFields_,
null,
)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeTry, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeTry.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeTry'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeTryResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeTryResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeTryResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeTryResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeAck = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeAck, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeAck.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeAck'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeAckResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeAckResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeAckResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeAckResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeConfirm = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeConfirm, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeConfirm.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeConfirm'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeConfirmResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeOpen = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeOpen, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeOpen.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeOpen'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeOpenResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeOpenResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeOpenResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeOpenResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeTimeout = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeTimeout, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeTimeout.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeTimeout'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeTimeoutResponse'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeCancel = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgChannelUpgradeCancel, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeCancel.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeCancel'
}
/**
* 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.ibc.core.channel.v1.MsgChannelUpgradeCancelResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgChannelUpgradeCancelResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgChannelUpgradeCancelResponse.displayName =
'proto.ibc.core.channel.v1.MsgChannelUpgradeCancelResponse'
}
/**
* 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.ibc.core.channel.v1.MsgUpdateParams = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgUpdateParams, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgUpdateParams.displayName =
'proto.ibc.core.channel.v1.MsgUpdateParams'
}
/**
* 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.ibc.core.channel.v1.MsgUpdateParamsResponse = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgUpdateParamsResponse, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgUpdateParamsResponse.displayName =
'proto.ibc.core.channel.v1.MsgUpdateParamsResponse'
}
/**
* 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.ibc.core.channel.v1.MsgPruneAcknowledgements = function (opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(proto.ibc.core.channel.v1.MsgPruneAcknowledgements, jspb.Message)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgPruneAcknowledgements.displayName =
'proto.ibc.core.channel.v1.MsgPruneAcknowledgements'
}
/**
* 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.ibc.core.channel.v1.MsgPruneAcknowledgementsResponse = function (
opt_data,
) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null)
}
goog.inherits(
proto.ibc.core.channel.v1.MsgPruneAcknowledgementsResponse,
jspb.Message,
)
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ibc.core.channel.v1.MsgPruneAcknowledgementsResponse.displayName =
'proto.ibc.core.channel.v1.MsgPruneAcknowledgementsResponse'
}
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.ibc.core.channel.v1.MsgChannelOpenInit.prototype.toObject = function (
opt_includeInstance,
) {
return proto.ibc.core.channel.v1.MsgChannelOpenInit.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.ibc.core.channel.v1.MsgChannelOpenInit} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
portId: jspb.Message.getFieldWithDefault(msg, 1, ''),
channel:
(f = msg.getChannel()) &&
ibc_core_channel_v1_channel_pb.Channel.toObject(includeInstance, f),
signer: jspb.Message.getFieldWithDefault(msg, 3, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.deserializeBinary = function (
bytes,
) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.channel.v1.MsgChannelOpenInit()
return proto.ibc.core.channel.v1.MsgChannelOpenInit.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.channel.v1.MsgChannelOpenInit} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.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.setPortId(value)
break
case 2:
var value = new ibc_core_channel_v1_channel_pb.Channel()
reader.readMessage(
value,
ibc_core_channel_v1_channel_pb.Channel.deserializeBinaryFromReader,
)
msg.setChannel(value)
break
case 3:
var value = /** @type {string} */ (reader.readString())
msg.setSigner(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.channel.v1.MsgChannelOpenInit.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ibc.core.channel.v1.MsgChannelOpenInit} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getPortId()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getChannel()
if (f != null) {
writer.writeMessage(
2,
f,
ibc_core_channel_v1_channel_pb.Channel.serializeBinaryToWriter,
)
}
f = message.getSigner()
if (f.length > 0) {
writer.writeString(3, f)
}
}
/**
* optional string port_id = 1;
* @return {string}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getPortId = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setPortId = function (
value,
) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional Channel channel = 2;
* @return {?proto.ibc.core.channel.v1.Channel}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getChannel =
function () {
return /** @type{?proto.ibc.core.channel.v1.Channel} */ (
jspb.Message.getWrapperField(
this,
ibc_core_channel_v1_channel_pb.Channel,
2,
)
)
}
/**
* @param {?proto.ibc.core.channel.v1.Channel|undefined} value
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setChannel = function (
value,
) {
return jspb.Message.setWrapperField(this, 2, value)
}
/**
* Clears the message field making it undefined.
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.clearChannel =
function () {
return this.setChannel(undefined)
}
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.hasChannel =
function () {
return jspb.Message.getField(this, 2) != null
}
/**
* optional string signer = 3;
* @return {string}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.getSigner = function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInit} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInit.prototype.setSigner = function (
value,
) {
return jspb.Message.setProto3StringField(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.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.toObject =
function (opt_includeInstance) {
return proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.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.ibc.core.channel.v1.MsgChannelOpenInitResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
channelId: jspb.Message.getFieldWithDefault(msg, 1, ''),
version: 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.ibc.core.channel.v1.MsgChannelOpenInitResponse}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.deserializeBinary =
function (bytes) {
var reader = new jspb.BinaryReader(bytes)
var msg = new proto.ibc.core.channel.v1.MsgChannelOpenInitResponse()
return proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.deserializeBinaryFromReader(
msg,
reader,
)
}
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.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.setChannelId(value)
break
case 2:
var value = /** @type {string} */ (reader.readString())
msg.setVersion(value)
break
default:
reader.skipField()
break
}
}
return msg
}
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.serializeBinary =
function () {
var writer = new jspb.BinaryWriter()
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.serializeBinaryToWriter(
this,
writer,
)
return writer.getResultBuffer()
}
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.serializeBinaryToWriter =
function (message, writer) {
var f = undefined
f = message.getChannelId()
if (f.length > 0) {
writer.writeString(1, f)
}
f = message.getVersion()
if (f.length > 0) {
writer.writeString(2, f)
}
}
/**
* optional string channel_id = 1;
* @return {string}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.getChannelId =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.setChannelId =
function (value) {
return jspb.Message.setProto3StringField(this, 1, value)
}
/**
* optional string version = 2;
* @return {string}
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.getVersion =
function () {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''))
}
/**
* @param {string} value
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenInitResponse} returns this
*/
proto.ibc.core.channel.v1.MsgChannelOpenInitResponse.prototype.setVersion =
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.ibc.core.channel.v1.MsgChannelOpenTry.prototype.toObject = function (
opt_includeInstance,
) {
return proto.ibc.core.channel.v1.MsgChannelOpenTry.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.ibc.core.channel.v1.MsgChannelOpenTry} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ibc.core.channel.v1.MsgChannelOpenTry.toObject = function (
includeInstance,
msg,
) {
var f,
obj = {
portId: jspb.Message.getFieldWithDefault(msg, 1, ''),
previousChannelId: jspb.Message.getFieldWithDefault(msg, 2, ''),
channel:
(f = msg.getChannel()) &&
ibc_core_channel_v1_channel_pb.Channel.toObject(includeInstance, f),
counterpartyVersion: jspb.Message.getFieldWithDefault(msg, 4, ''),
proofInit: msg.getProofInit_asB64(),
proofHeight:
(f = msg.getProofHeight()) &&
ibc_core_client_v1_client_pb.Height.toObject(includeInstance, f),
signer: jspb.Message.getFieldWithDefault(msg, 7, ''),
}
if (includeInstance) {
obj.$jspbMessageInstance = msg
}
return obj
}
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ibc.core.channel.v1.MsgChannelOpenTry}
*/
proto.ibc.core.channel.v1.MsgChannelOpenTry.deserializeBinary = function (
bytes,
) {
var reade