@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
548 lines (478 loc) • 23 kB
JavaScript
"use strict";
/**
* @fileoverview gRPC-Web generated client stub for cosmwasm.wasm.v1
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var grpc = {};
grpc.web = require('grpc-web');
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
var cosmwasm_wasm_v1_types_pb = require('../../../cosmwasm/wasm/v1/types_pb.js');
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
var cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js');
var proto = {};
proto.cosmwasm = {};
proto.cosmwasm.wasm = {};
proto.cosmwasm.wasm.v1 = require('./query_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmwasm.wasm.v1.QueryClient = function (hostname, credentials, options) {
if (!options) options = {};
options.format = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient = function (hostname, credentials, options) {
if (!options) options = {};
options.format = 'text';
/**
* @private @const {!grpc.web.GrpcWebClientBase} The client
*/
this.client_ = new grpc.web.GrpcWebClientBase(options);
/**
* @private @const {string} The hostname
*/
this.hostname_ = hostname;
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryContractInfoRequest,
* !proto.cosmwasm.wasm.v1.QueryContractInfoResponse>}
*/
var methodDescriptor_Query_ContractInfo = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/ContractInfo', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryContractInfoRequest, proto.cosmwasm.wasm.v1.QueryContractInfoResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryContractInfoResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryContractInfoResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryContractInfoResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.contractInfo = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractInfo', request, metadata || {}, methodDescriptor_Query_ContractInfo, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractInfoRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryContractInfoResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.contractInfo = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractInfo', request, metadata || {}, methodDescriptor_Query_ContractInfo);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryContractHistoryRequest,
* !proto.cosmwasm.wasm.v1.QueryContractHistoryResponse>}
*/
var methodDescriptor_Query_ContractHistory = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/ContractHistory', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryContractHistoryRequest, proto.cosmwasm.wasm.v1.QueryContractHistoryResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryContractHistoryResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryContractHistoryResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.contractHistory = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractHistory', request, metadata || {}, methodDescriptor_Query_ContractHistory, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractHistoryRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryContractHistoryResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.contractHistory = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractHistory', request, metadata || {}, methodDescriptor_Query_ContractHistory);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest,
* !proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse>}
*/
var methodDescriptor_Query_ContractsByCode = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/ContractsByCode', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest, proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.contractsByCode = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractsByCode', request, metadata || {}, methodDescriptor_Query_ContractsByCode, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCodeRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryContractsByCodeResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.contractsByCode = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractsByCode', request, metadata || {}, methodDescriptor_Query_ContractsByCode);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryAllContractStateRequest,
* !proto.cosmwasm.wasm.v1.QueryAllContractStateResponse>}
*/
var methodDescriptor_Query_AllContractState = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/AllContractState', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryAllContractStateRequest, proto.cosmwasm.wasm.v1.QueryAllContractStateResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryAllContractStateRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryAllContractStateResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryAllContractStateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryAllContractStateResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryAllContractStateResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.allContractState = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/AllContractState', request, metadata || {}, methodDescriptor_Query_AllContractState, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryAllContractStateRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryAllContractStateResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.allContractState = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/AllContractState', request, metadata || {}, methodDescriptor_Query_AllContractState);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryRawContractStateRequest,
* !proto.cosmwasm.wasm.v1.QueryRawContractStateResponse>}
*/
var methodDescriptor_Query_RawContractState = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/RawContractState', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryRawContractStateRequest, proto.cosmwasm.wasm.v1.QueryRawContractStateResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryRawContractStateRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryRawContractStateResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryRawContractStateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryRawContractStateResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryRawContractStateResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.rawContractState = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/RawContractState', request, metadata || {}, methodDescriptor_Query_RawContractState, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryRawContractStateRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryRawContractStateResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.rawContractState = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/RawContractState', request, metadata || {}, methodDescriptor_Query_RawContractState);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest,
* !proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse>}
*/
var methodDescriptor_Query_SmartContractState = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/SmartContractState', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest, proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.smartContractState = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/SmartContractState', request, metadata || {}, methodDescriptor_Query_SmartContractState, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QuerySmartContractStateRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QuerySmartContractStateResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.smartContractState = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/SmartContractState', request, metadata || {}, methodDescriptor_Query_SmartContractState);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryCodeRequest,
* !proto.cosmwasm.wasm.v1.QueryCodeResponse>}
*/
var methodDescriptor_Query_Code = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/Code', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryCodeRequest, proto.cosmwasm.wasm.v1.QueryCodeResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodeRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryCodeResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodeRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryCodeResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryCodeResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.code = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Code', request, metadata || {}, methodDescriptor_Query_Code, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodeRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryCodeResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.code = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Code', request, metadata || {}, methodDescriptor_Query_Code);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryCodesRequest,
* !proto.cosmwasm.wasm.v1.QueryCodesResponse>}
*/
var methodDescriptor_Query_Codes = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/Codes', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryCodesRequest, proto.cosmwasm.wasm.v1.QueryCodesResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodesRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryCodesResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodesRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryCodesResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryCodesResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.codes = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Codes', request, metadata || {}, methodDescriptor_Query_Codes, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryCodesRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryCodesResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.codes = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Codes', request, metadata || {}, methodDescriptor_Query_Codes);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest,
* !proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse>}
*/
var methodDescriptor_Query_PinnedCodes = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/PinnedCodes', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest, proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.pinnedCodes = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/PinnedCodes', request, metadata || {}, methodDescriptor_Query_PinnedCodes, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryPinnedCodesRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryPinnedCodesResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.pinnedCodes = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/PinnedCodes', request, metadata || {}, methodDescriptor_Query_PinnedCodes);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryParamsRequest,
* !proto.cosmwasm.wasm.v1.QueryParamsResponse>}
*/
var methodDescriptor_Query_Params = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/Params', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryParamsRequest, proto.cosmwasm.wasm.v1.QueryParamsResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryParamsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryParamsResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryParamsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryParamsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryParamsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.params = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Params', request, metadata || {}, methodDescriptor_Query_Params, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryParamsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryParamsResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.params = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/Params', request, metadata || {}, methodDescriptor_Query_Params);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest,
* !proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse>}
*/
var methodDescriptor_Query_ContractsByCreator = new grpc.web.MethodDescriptor('/cosmwasm.wasm.v1.Query/ContractsByCreator', grpc.web.MethodType.UNARY, proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest, proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse,
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse.deserializeBinary);
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmwasm.wasm.v1.QueryClient.prototype.contractsByCreator = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractsByCreator', request, metadata || {}, methodDescriptor_Query_ContractsByCreator, callback);
};
/**
* @param {!proto.cosmwasm.wasm.v1.QueryContractsByCreatorRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmwasm.wasm.v1.QueryContractsByCreatorResponse>}
* Promise that resolves to the response
*/
proto.cosmwasm.wasm.v1.QueryPromiseClient.prototype.contractsByCreator = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmwasm.wasm.v1.Query/ContractsByCreator', request, metadata || {}, methodDescriptor_Query_ContractsByCreator);
};
module.exports = proto.cosmwasm.wasm.v1;