@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
286 lines (248 loc) • 11.9 kB
JavaScript
"use strict";
/**
* @fileoverview gRPC-Web generated client stub for cosmos.upgrade.v1beta1
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var grpc = {};
grpc.web = require('grpc-web');
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
var cosmos_upgrade_v1beta1_upgrade_pb = require('../../../cosmos/upgrade/v1beta1/upgrade_pb.js');
var proto = {};
proto.cosmos = {};
proto.cosmos.upgrade = {};
proto.cosmos.upgrade.v1beta1 = require('./query_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmos.upgrade.v1beta1.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.cosmos.upgrade.v1beta1.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.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest,
* !proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse>}
*/
var methodDescriptor_Query_CurrentPlan = new grpc.web.MethodDescriptor('/cosmos.upgrade.v1beta1.Query/CurrentPlan', grpc.web.MethodType.UNARY, proto.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest, proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse,
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse.deserializeBinary);
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.upgrade.v1beta1.QueryClient.prototype.currentPlan = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/CurrentPlan', request, metadata || {}, methodDescriptor_Query_CurrentPlan, callback);
};
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryCurrentPlanRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.upgrade.v1beta1.QueryCurrentPlanResponse>}
* Promise that resolves to the response
*/
proto.cosmos.upgrade.v1beta1.QueryPromiseClient.prototype.currentPlan = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/CurrentPlan', request, metadata || {}, methodDescriptor_Query_CurrentPlan);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest,
* !proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse>}
*/
var methodDescriptor_Query_AppliedPlan = new grpc.web.MethodDescriptor('/cosmos.upgrade.v1beta1.Query/AppliedPlan', grpc.web.MethodType.UNARY, proto.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest, proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse,
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse.deserializeBinary);
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.upgrade.v1beta1.QueryClient.prototype.appliedPlan = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/AppliedPlan', request, metadata || {}, methodDescriptor_Query_AppliedPlan, callback);
};
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAppliedPlanRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.upgrade.v1beta1.QueryAppliedPlanResponse>}
* Promise that resolves to the response
*/
proto.cosmos.upgrade.v1beta1.QueryPromiseClient.prototype.appliedPlan = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/AppliedPlan', request, metadata || {}, methodDescriptor_Query_AppliedPlan);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest,
* !proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse>}
*/
var methodDescriptor_Query_UpgradedConsensusState = new grpc.web.MethodDescriptor('/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState', grpc.web.MethodType.UNARY, proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest, proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse,
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse.deserializeBinary);
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.upgrade.v1beta1.QueryClient.prototype.upgradedConsensusState = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState', request, metadata || {}, methodDescriptor_Query_UpgradedConsensusState, callback);
};
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse>}
* Promise that resolves to the response
*/
proto.cosmos.upgrade.v1beta1.QueryPromiseClient.prototype.upgradedConsensusState = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState', request, metadata || {}, methodDescriptor_Query_UpgradedConsensusState);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest,
* !proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse>}
*/
var methodDescriptor_Query_ModuleVersions = new grpc.web.MethodDescriptor('/cosmos.upgrade.v1beta1.Query/ModuleVersions', grpc.web.MethodType.UNARY, proto.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest, proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse,
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.upgrade.v1beta1.QueryClient.prototype.moduleVersions = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/ModuleVersions', request, metadata || {}, methodDescriptor_Query_ModuleVersions, callback);
};
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryModuleVersionsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.upgrade.v1beta1.QueryModuleVersionsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.upgrade.v1beta1.QueryPromiseClient.prototype.moduleVersions = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/ModuleVersions', request, metadata || {}, methodDescriptor_Query_ModuleVersions);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.upgrade.v1beta1.QueryAuthorityRequest,
* !proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse>}
*/
var methodDescriptor_Query_Authority = new grpc.web.MethodDescriptor('/cosmos.upgrade.v1beta1.Query/Authority', grpc.web.MethodType.UNARY, proto.cosmos.upgrade.v1beta1.QueryAuthorityRequest, proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse,
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAuthorityRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse.deserializeBinary);
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAuthorityRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.upgrade.v1beta1.QueryClient.prototype.authority = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/Authority', request, metadata || {}, methodDescriptor_Query_Authority, callback);
};
/**
* @param {!proto.cosmos.upgrade.v1beta1.QueryAuthorityRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.upgrade.v1beta1.QueryAuthorityResponse>}
* Promise that resolves to the response
*/
proto.cosmos.upgrade.v1beta1.QueryPromiseClient.prototype.authority = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.upgrade.v1beta1.Query/Authority', request, metadata || {}, methodDescriptor_Query_Authority);
};
module.exports = proto.cosmos.upgrade.v1beta1;