UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

244 lines (211 loc) 10.3 kB
"use strict"; /** * @fileoverview gRPC-Web generated client stub for cosmos.streaming.abci.v1 * @enhanceable * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var grpc = {}; grpc.web = require('grpc-web'); var tendermint_abci_types_pb = require('../../../../tendermint/abci/types_pb.js'); var cosmos_base_store_v1beta1_listening_pb = require('../../../../cosmos/base/store/v1beta1/listening_pb.js'); var proto = {}; proto.cosmos = {}; proto.cosmos.streaming = {}; proto.cosmos.streaming.abci = {}; proto.cosmos.streaming.abci.v1 = require('./grpc_pb.js'); /** * @param {string} hostname * @param {?Object} credentials * @param {?grpc.web.ClientOptions} options * @constructor * @struct * @final */ proto.cosmos.streaming.abci.v1.ABCIListenerServiceClient = 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.streaming.abci.v1.ABCIListenerServicePromiseClient = 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.streaming.abci.v1.ListenBeginBlockRequest, * !proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse>} */ var methodDescriptor_ABCIListenerService_ListenBeginBlock = new grpc.web.MethodDescriptor('/cosmos.streaming.abci.v1.ABCIListenerService/ListenBeginBlock', grpc.web.MethodType.UNARY, proto.cosmos.streaming.abci.v1.ListenBeginBlockRequest, proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse, /** * @param {!proto.cosmos.streaming.abci.v1.ListenBeginBlockRequest} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse.deserializeBinary); /** * @param {!proto.cosmos.streaming.abci.v1.ListenBeginBlockRequest} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse>|undefined} * The XHR Node Readable Stream */ proto.cosmos.streaming.abci.v1.ABCIListenerServiceClient.prototype.listenBeginBlock = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenBeginBlock', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenBeginBlock, callback); }; /** * @param {!proto.cosmos.streaming.abci.v1.ListenBeginBlockRequest} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.cosmos.streaming.abci.v1.ListenBeginBlockResponse>} * Promise that resolves to the response */ proto.cosmos.streaming.abci.v1.ABCIListenerServicePromiseClient.prototype.listenBeginBlock = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenBeginBlock', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenBeginBlock); }; /** * @const * @type {!grpc.web.MethodDescriptor< * !proto.cosmos.streaming.abci.v1.ListenEndBlockRequest, * !proto.cosmos.streaming.abci.v1.ListenEndBlockResponse>} */ var methodDescriptor_ABCIListenerService_ListenEndBlock = new grpc.web.MethodDescriptor('/cosmos.streaming.abci.v1.ABCIListenerService/ListenEndBlock', grpc.web.MethodType.UNARY, proto.cosmos.streaming.abci.v1.ListenEndBlockRequest, proto.cosmos.streaming.abci.v1.ListenEndBlockResponse, /** * @param {!proto.cosmos.streaming.abci.v1.ListenEndBlockRequest} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.cosmos.streaming.abci.v1.ListenEndBlockResponse.deserializeBinary); /** * @param {!proto.cosmos.streaming.abci.v1.ListenEndBlockRequest} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.cosmos.streaming.abci.v1.ListenEndBlockResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.cosmos.streaming.abci.v1.ListenEndBlockResponse>|undefined} * The XHR Node Readable Stream */ proto.cosmos.streaming.abci.v1.ABCIListenerServiceClient.prototype.listenEndBlock = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenEndBlock', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenEndBlock, callback); }; /** * @param {!proto.cosmos.streaming.abci.v1.ListenEndBlockRequest} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.cosmos.streaming.abci.v1.ListenEndBlockResponse>} * Promise that resolves to the response */ proto.cosmos.streaming.abci.v1.ABCIListenerServicePromiseClient.prototype.listenEndBlock = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenEndBlock', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenEndBlock); }; /** * @const * @type {!grpc.web.MethodDescriptor< * !proto.cosmos.streaming.abci.v1.ListenDeliverTxRequest, * !proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse>} */ var methodDescriptor_ABCIListenerService_ListenDeliverTx = new grpc.web.MethodDescriptor('/cosmos.streaming.abci.v1.ABCIListenerService/ListenDeliverTx', grpc.web.MethodType.UNARY, proto.cosmos.streaming.abci.v1.ListenDeliverTxRequest, proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse, /** * @param {!proto.cosmos.streaming.abci.v1.ListenDeliverTxRequest} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse.deserializeBinary); /** * @param {!proto.cosmos.streaming.abci.v1.ListenDeliverTxRequest} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse>|undefined} * The XHR Node Readable Stream */ proto.cosmos.streaming.abci.v1.ABCIListenerServiceClient.prototype.listenDeliverTx = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenDeliverTx', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenDeliverTx, callback); }; /** * @param {!proto.cosmos.streaming.abci.v1.ListenDeliverTxRequest} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.cosmos.streaming.abci.v1.ListenDeliverTxResponse>} * Promise that resolves to the response */ proto.cosmos.streaming.abci.v1.ABCIListenerServicePromiseClient.prototype.listenDeliverTx = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenDeliverTx', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenDeliverTx); }; /** * @const * @type {!grpc.web.MethodDescriptor< * !proto.cosmos.streaming.abci.v1.ListenCommitRequest, * !proto.cosmos.streaming.abci.v1.ListenCommitResponse>} */ var methodDescriptor_ABCIListenerService_ListenCommit = new grpc.web.MethodDescriptor('/cosmos.streaming.abci.v1.ABCIListenerService/ListenCommit', grpc.web.MethodType.UNARY, proto.cosmos.streaming.abci.v1.ListenCommitRequest, proto.cosmos.streaming.abci.v1.ListenCommitResponse, /** * @param {!proto.cosmos.streaming.abci.v1.ListenCommitRequest} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.cosmos.streaming.abci.v1.ListenCommitResponse.deserializeBinary); /** * @param {!proto.cosmos.streaming.abci.v1.ListenCommitRequest} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.cosmos.streaming.abci.v1.ListenCommitResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.cosmos.streaming.abci.v1.ListenCommitResponse>|undefined} * The XHR Node Readable Stream */ proto.cosmos.streaming.abci.v1.ABCIListenerServiceClient.prototype.listenCommit = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenCommit', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenCommit, callback); }; /** * @param {!proto.cosmos.streaming.abci.v1.ListenCommitRequest} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.cosmos.streaming.abci.v1.ListenCommitResponse>} * Promise that resolves to the response */ proto.cosmos.streaming.abci.v1.ABCIListenerServicePromiseClient.prototype.listenCommit = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/cosmos.streaming.abci.v1.ABCIListenerService/ListenCommit', request, metadata || {}, methodDescriptor_ABCIListenerService_ListenCommit); }; module.exports = proto.cosmos.streaming.abci.v1;