@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
677 lines (592 loc) • 31.2 kB
JavaScript
/**
* @fileoverview gRPC-Web generated client stub for cosmos.staking.v1beta1
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var grpc = {};
grpc.web = require('grpc-web');
var cosmos_base_query_v1beta1_pagination_pb = require('../../../cosmos/base/query/v1beta1/pagination_pb.js');
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
var google_api_annotations_pb = require('../../../google/api/annotations_pb.js');
var cosmos_staking_v1beta1_staking_pb = require('../../../cosmos/staking/v1beta1/staking_pb.js');
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
var proto = {};
proto.cosmos = {};
proto.cosmos.staking = {};
proto.cosmos.staking.v1beta1 = require('./query_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmos.staking.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.staking.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.staking.v1beta1.QueryValidatorsRequest,
* !proto.cosmos.staking.v1beta1.QueryValidatorsResponse>}
*/
var methodDescriptor_Query_Validators = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Validators', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryValidatorsRequest, proto.cosmos.staking.v1beta1.QueryValidatorsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryValidatorsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryValidatorsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryValidatorsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.validators = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Validators', request, metadata || {}, methodDescriptor_Query_Validators, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryValidatorsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.validators = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Validators', request, metadata || {}, methodDescriptor_Query_Validators);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryValidatorRequest,
* !proto.cosmos.staking.v1beta1.QueryValidatorResponse>}
*/
var methodDescriptor_Query_Validator = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Validator', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryValidatorRequest, proto.cosmos.staking.v1beta1.QueryValidatorResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryValidatorResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryValidatorResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryValidatorResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.validator = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Validator', request, metadata || {}, methodDescriptor_Query_Validator, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryValidatorResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.validator = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Validator', request, metadata || {}, methodDescriptor_Query_Validator);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest,
* !proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse>}
*/
var methodDescriptor_Query_ValidatorDelegations = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/ValidatorDelegations', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest, proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.validatorDelegations = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/ValidatorDelegations', request, metadata || {}, methodDescriptor_Query_ValidatorDelegations, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorDelegationsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryValidatorDelegationsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.validatorDelegations = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/ValidatorDelegations', request, metadata || {}, methodDescriptor_Query_ValidatorDelegations);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest,
* !proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse>}
*/
var methodDescriptor_Query_ValidatorUnbondingDelegations = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest, proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.validatorUnbondingDelegations = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations', request, metadata || {}, methodDescriptor_Query_ValidatorUnbondingDelegations, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.validatorUnbondingDelegations = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations', request, metadata || {}, methodDescriptor_Query_ValidatorUnbondingDelegations);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryDelegationRequest,
* !proto.cosmos.staking.v1beta1.QueryDelegationResponse>}
*/
var methodDescriptor_Query_Delegation = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Delegation', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryDelegationRequest, proto.cosmos.staking.v1beta1.QueryDelegationResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegationRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryDelegationResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegationRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryDelegationResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryDelegationResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.delegation = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Delegation', request, metadata || {}, methodDescriptor_Query_Delegation, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegationRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryDelegationResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.delegation = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Delegation', request, metadata || {}, methodDescriptor_Query_Delegation);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest,
* !proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse>}
*/
var methodDescriptor_Query_UnbondingDelegation = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/UnbondingDelegation', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest, proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.unbondingDelegation = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/UnbondingDelegation', request, metadata || {}, methodDescriptor_Query_UnbondingDelegation, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryUnbondingDelegationRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryUnbondingDelegationResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.unbondingDelegation = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/UnbondingDelegation', request, metadata || {}, methodDescriptor_Query_UnbondingDelegation);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest,
* !proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse>}
*/
var methodDescriptor_Query_DelegatorDelegations = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/DelegatorDelegations', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest, proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.delegatorDelegations = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorDelegations', request, metadata || {}, methodDescriptor_Query_DelegatorDelegations, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.delegatorDelegations = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorDelegations', request, metadata || {}, methodDescriptor_Query_DelegatorDelegations);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest,
* !proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse>}
*/
var methodDescriptor_Query_DelegatorUnbondingDelegations = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest, proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.delegatorUnbondingDelegations = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations', request, metadata || {}, methodDescriptor_Query_DelegatorUnbondingDelegations, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.delegatorUnbondingDelegations = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations', request, metadata || {}, methodDescriptor_Query_DelegatorUnbondingDelegations);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryRedelegationsRequest,
* !proto.cosmos.staking.v1beta1.QueryRedelegationsResponse>}
*/
var methodDescriptor_Query_Redelegations = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Redelegations', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryRedelegationsRequest, proto.cosmos.staking.v1beta1.QueryRedelegationsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryRedelegationsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryRedelegationsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryRedelegationsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryRedelegationsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryRedelegationsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.redelegations = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Redelegations', request, metadata || {}, methodDescriptor_Query_Redelegations, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryRedelegationsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryRedelegationsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.redelegations = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Redelegations', request, metadata || {}, methodDescriptor_Query_Redelegations);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest,
* !proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse>}
*/
var methodDescriptor_Query_DelegatorValidators = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/DelegatorValidators', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.delegatorValidators = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorValidators', request, metadata || {}, methodDescriptor_Query_DelegatorValidators, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.delegatorValidators = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorValidators', request, metadata || {}, methodDescriptor_Query_DelegatorValidators);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest,
* !proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse>}
*/
var methodDescriptor_Query_DelegatorValidator = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/DelegatorValidator', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.delegatorValidator = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorValidator', request, metadata || {}, methodDescriptor_Query_DelegatorValidator, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryDelegatorValidatorResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.delegatorValidator = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/DelegatorValidator', request, metadata || {}, methodDescriptor_Query_DelegatorValidator);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest,
* !proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse>}
*/
var methodDescriptor_Query_HistoricalInfo = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/HistoricalInfo', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest, proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.historicalInfo = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/HistoricalInfo', request, metadata || {}, methodDescriptor_Query_HistoricalInfo, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryHistoricalInfoRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryHistoricalInfoResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.historicalInfo = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/HistoricalInfo', request, metadata || {}, methodDescriptor_Query_HistoricalInfo);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryPoolRequest,
* !proto.cosmos.staking.v1beta1.QueryPoolResponse>}
*/
var methodDescriptor_Query_Pool = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Pool', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryPoolRequest, proto.cosmos.staking.v1beta1.QueryPoolResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryPoolRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryPoolResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryPoolRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryPoolResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryPoolResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.pool = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Pool', request, metadata || {}, methodDescriptor_Query_Pool, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryPoolRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryPoolResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.pool = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Pool', request, metadata || {}, methodDescriptor_Query_Pool);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.staking.v1beta1.QueryParamsRequest,
* !proto.cosmos.staking.v1beta1.QueryParamsResponse>}
*/
var methodDescriptor_Query_Params = new grpc.web.MethodDescriptor('/cosmos.staking.v1beta1.Query/Params', grpc.web.MethodType.UNARY, proto.cosmos.staking.v1beta1.QueryParamsRequest, proto.cosmos.staking.v1beta1.QueryParamsResponse,
/**
* @param {!proto.cosmos.staking.v1beta1.QueryParamsRequest} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.staking.v1beta1.QueryParamsResponse.deserializeBinary);
/**
* @param {!proto.cosmos.staking.v1beta1.QueryParamsRequest} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.staking.v1beta1.QueryParamsResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.staking.v1beta1.QueryParamsResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.staking.v1beta1.QueryClient.prototype.params = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Params', request, metadata || {}, methodDescriptor_Query_Params, callback);
};
/**
* @param {!proto.cosmos.staking.v1beta1.QueryParamsRequest} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.staking.v1beta1.QueryParamsResponse>}
* Promise that resolves to the response
*/
proto.cosmos.staking.v1beta1.QueryPromiseClient.prototype.params = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.staking.v1beta1.Query/Params', request, metadata || {}, methodDescriptor_Query_Params);
};
module.exports = proto.cosmos.staking.v1beta1;