@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,390 lines (1,305 loc) • 235 kB
JavaScript
// source: cosmwasm/wasm/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 cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb);
var cosmos_msg_v1_msg_pb = require('../../../cosmos/msg/v1/msg_pb.js');
goog.object.extend(proto, cosmos_msg_v1_msg_pb);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var cosmwasm_wasm_v1_types_pb = require('../../../cosmwasm/wasm/v1/types_pb.js');
goog.object.extend(proto, cosmwasm_wasm_v1_types_pb);
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
goog.object.extend(proto, cosmos_proto_cosmos_pb);
var amino_amino_pb = require('../../../amino/amino_pb.js');
goog.object.extend(proto, amino_amino_pb);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgClearAdmin', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgClearAdminResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgExecuteContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgExecuteContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgInstantiateContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgInstantiateContract2', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgInstantiateContract2Response', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgInstantiateContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgMigrateContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgMigrateContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgPinCodes', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgPinCodesResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreCode', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgStoreCodeResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgSudoContract', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgSudoContractResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUnpinCodes', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUnpinCodesResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateAdmin', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateAdminResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateContractLabel', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateContractLabelResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfig', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateParams', null, global);
goog.exportSymbol('proto.cosmwasm.wasm.v1.MsgUpdateParamsResponse', 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.cosmwasm.wasm.v1.MsgStoreCode = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreCode, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreCode';
}
/**
* 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.cosmwasm.wasm.v1.MsgStoreCodeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreCodeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreCodeResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgInstantiateContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgInstantiateContract.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgInstantiateContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.displayName = 'proto.cosmwasm.wasm.v1.MsgInstantiateContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgInstantiateContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgInstantiateContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgInstantiateContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgInstantiateContract2 = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgInstantiateContract2.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgInstantiateContract2, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract2.displayName = 'proto.cosmwasm.wasm.v1.MsgInstantiateContract2';
}
/**
* 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.cosmwasm.wasm.v1.MsgInstantiateContract2Response = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgInstantiateContract2Response, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract2Response.displayName = 'proto.cosmwasm.wasm.v1.MsgInstantiateContract2Response';
}
/**
* 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.cosmwasm.wasm.v1.MsgExecuteContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgExecuteContract.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgExecuteContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgExecuteContract.displayName = 'proto.cosmwasm.wasm.v1.MsgExecuteContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgExecuteContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgExecuteContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgExecuteContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgExecuteContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgMigrateContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgMigrateContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgMigrateContract.displayName = 'proto.cosmwasm.wasm.v1.MsgMigrateContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgMigrateContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgMigrateContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgMigrateContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgMigrateContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateAdmin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateAdmin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateAdmin.displayName = 'proto.cosmwasm.wasm.v1.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.cosmwasm.wasm.v1.MsgUpdateAdminResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateAdminResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateAdminResponse.displayName = 'proto.cosmwasm.wasm.v1.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.cosmwasm.wasm.v1.MsgClearAdmin = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgClearAdmin, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgClearAdmin.displayName = 'proto.cosmwasm.wasm.v1.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.cosmwasm.wasm.v1.MsgClearAdminResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgClearAdminResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgClearAdminResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgClearAdminResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateInstantiateConfig = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfig, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfig.displayName = 'proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfig';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateParams = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateParams, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateParams.displayName = 'proto.cosmwasm.wasm.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.cosmwasm.wasm.v1.MsgUpdateParamsResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateParamsResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateParamsResponse.displayName = 'proto.cosmwasm.wasm.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.cosmwasm.wasm.v1.MsgSudoContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgSudoContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgSudoContract.displayName = 'proto.cosmwasm.wasm.v1.MsgSudoContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgSudoContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgSudoContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgSudoContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgSudoContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgPinCodes = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgPinCodes.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgPinCodes, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgPinCodes.displayName = 'proto.cosmwasm.wasm.v1.MsgPinCodes';
}
/**
* 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.cosmwasm.wasm.v1.MsgPinCodesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgPinCodesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgPinCodesResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgPinCodesResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgUnpinCodes = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgUnpinCodes.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUnpinCodes, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUnpinCodes.displayName = 'proto.cosmwasm.wasm.v1.MsgUnpinCodes';
}
/**
* 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.cosmwasm.wasm.v1.MsgUnpinCodesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUnpinCodesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUnpinCodesResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgUnpinCodesResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses.displayName = 'proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses';
}
/**
* 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.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses.repeatedFields_, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses.displayName = 'proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses';
}
/**
* 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.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgStoreAndMigrateContract = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContract, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContract.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContract';
}
/**
* 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.cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateContractLabel = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateContractLabel, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateContractLabel.displayName = 'proto.cosmwasm.wasm.v1.MsgUpdateContractLabel';
}
/**
* 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.cosmwasm.wasm.v1.MsgUpdateContractLabelResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.cosmwasm.wasm.v1.MsgUpdateContractLabelResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.cosmwasm.wasm.v1.MsgUpdateContractLabelResponse.displayName = 'proto.cosmwasm.wasm.v1.MsgUpdateContractLabelResponse';
}
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.cosmwasm.wasm.v1.MsgStoreCode.prototype.toObject = function(opt_includeInstance) {
return proto.cosmwasm.wasm.v1.MsgStoreCode.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.cosmwasm.wasm.v1.MsgStoreCode} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.toObject = function(includeInstance, msg) {
var f, obj = {
sender: jspb.Message.getFieldWithDefault(msg, 1, ""),
wasmByteCode: msg.getWasmByteCode_asB64(),
instantiatePermission: (f = msg.getInstantiatePermission()) && cosmwasm_wasm_v1_types_pb.AccessConfig.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmwasm.wasm.v1.MsgStoreCode;
return proto.cosmwasm.wasm.v1.MsgStoreCode.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmwasm.wasm.v1.MsgStoreCode} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.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 {!Uint8Array} */ (reader.readBytes());
msg.setWasmByteCode(value);
break;
case 5:
var value = new cosmwasm_wasm_v1_types_pb.AccessConfig;
reader.readMessage(value,cosmwasm_wasm_v1_types_pb.AccessConfig.deserializeBinaryFromReader);
msg.setInstantiatePermission(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmwasm.wasm.v1.MsgStoreCode.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmwasm.wasm.v1.MsgStoreCode} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getSender();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getWasmByteCode_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getInstantiatePermission();
if (f != null) {
writer.writeMessage(
5,
f,
cosmwasm_wasm_v1_types_pb.AccessConfig.serializeBinaryToWriter
);
}
};
/**
* optional string sender = 1;
* @return {string}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.setSender = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional bytes wasm_byte_code = 2;
* @return {!(string|Uint8Array)}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.getWasmByteCode = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes wasm_byte_code = 2;
* This is a type-conversion wrapper around `getWasmByteCode()`
* @return {string}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.getWasmByteCode_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getWasmByteCode()));
};
/**
* optional bytes wasm_byte_code = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getWasmByteCode()`
* @return {!Uint8Array}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.getWasmByteCode_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getWasmByteCode()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.setWasmByteCode = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional AccessConfig instantiate_permission = 5;
* @return {?proto.cosmwasm.wasm.v1.AccessConfig}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.getInstantiatePermission = function() {
return /** @type{?proto.cosmwasm.wasm.v1.AccessConfig} */ (
jspb.Message.getWrapperField(this, cosmwasm_wasm_v1_types_pb.AccessConfig, 5));
};
/**
* @param {?proto.cosmwasm.wasm.v1.AccessConfig|undefined} value
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.setInstantiatePermission = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCode} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.clearInstantiatePermission = function() {
return this.setInstantiatePermission(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.cosmwasm.wasm.v1.MsgStoreCode.prototype.hasInstantiatePermission = function() {
return jspb.Message.getField(this, 5) != null;
};
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.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.toObject = function(opt_includeInstance) {
return proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.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.cosmwasm.wasm.v1.MsgStoreCodeResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.toObject = function(includeInstance, msg) {
var f, obj = {
codeId: jspb.Message.getFieldWithDefault(msg, 1, 0),
checksum: msg.getChecksum_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.cosmwasm.wasm.v1.MsgStoreCodeResponse}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmwasm.wasm.v1.MsgStoreCodeResponse;
return proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmwasm.wasm.v1.MsgStoreCodeResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCodeResponse}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setCodeId(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setChecksum(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmwasm.wasm.v1.MsgStoreCodeResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCodeId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getChecksum_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional uint64 code_id = 1;
* @return {number}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.getCodeId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCodeResponse} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.setCodeId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes checksum = 2;
* @return {!(string|Uint8Array)}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.getChecksum = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes checksum = 2;
* This is a type-conversion wrapper around `getChecksum()`
* @return {string}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.getChecksum_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getChecksum()));
};
/**
* optional bytes checksum = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getChecksum()`
* @return {!Uint8Array}
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.getChecksum_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getChecksum()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.cosmwasm.wasm.v1.MsgStoreCodeResponse} returns this
*/
proto.cosmwasm.wasm.v1.MsgStoreCodeResponse.prototype.setChecksum = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.repeatedFields_ = [6];
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.cosmwasm.wasm.v1.MsgInstantiateContract.prototype.toObject = function(opt_includeInstance) {
return proto.cosmwasm.wasm.v1.MsgInstantiateContract.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.cosmwasm.wasm.v1.MsgInstantiateContract} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.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: msg.getMsg_asB64(),
fundsList: jspb.Message.toObjectList(msg.getFundsList(),
cosmos_base_v1beta1_coin_pb.Coin.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.cosmwasm.wasm.v1.MsgInstantiateContract}
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.cosmwasm.wasm.v1.MsgInstantiateContract;
return proto.cosmwasm.wasm.v1.MsgInstantiateContract.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.cosmwasm.wasm.v1.MsgInstantiateContract} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.cosmwasm.wasm.v1.MsgInstantiateContract}
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.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 {!Uint8Array} */ (reader.readBytes());
msg.setMsg(value);
break;
case 6:
var value = new cosmos_base_v1beta1_coin_pb.Coin;
reader.readMessage(value,cosmos_base_v1beta1_coin_pb.Coin.deserializeBinaryFromReader);
msg.addFunds(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.cosmwasm.wasm.v1.MsgInstantiateContract.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.cosmwasm.wasm.v1.MsgInstantiateContract} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.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_asU8();
if (f.length > 0) {
writer.writeBytes(
5,
f
);
}
f = message.getFundsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
6,
f,
cosmos_base_v1beta1_coin_pb.Coin.serializeBinaryToWriter
);
}
};
/**
* optional string sender = 1;
* @return {string}
*/
proto.cosmwasm.wasm.v1.MsgInstantiateContract.prototype.getSender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.cosmwasm.wasm.v1.MsgInstantiat