UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

112 lines (95 loc) 3.43 kB
"use strict"; /** * @fileoverview gRPC-Web generated client stub for provenance.ibchooks.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 proto = {}; proto.provenance = {}; proto.provenance.ibchooks = {}; proto.provenance.ibchooks.v1 = require('./tx_pb.js'); /** * @param {string} hostname * @param {?Object} credentials * @param {?grpc.web.ClientOptions} options * @constructor * @struct * @final */ proto.provenance.ibchooks.v1.MsgClient = 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.provenance.ibchooks.v1.MsgPromiseClient = 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.provenance.ibchooks.v1.MsgEmitIBCAck, * !proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse>} */ var methodDescriptor_Msg_EmitIBCAck = new grpc.web.MethodDescriptor('/provenance.ibchooks.v1.Msg/EmitIBCAck', grpc.web.MethodType.UNARY, proto.provenance.ibchooks.v1.MsgEmitIBCAck, proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse, /** * @param {!proto.provenance.ibchooks.v1.MsgEmitIBCAck} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse.deserializeBinary); /** * @param {!proto.provenance.ibchooks.v1.MsgEmitIBCAck} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse>|undefined} * The XHR Node Readable Stream */ proto.provenance.ibchooks.v1.MsgClient.prototype.emitIBCAck = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/provenance.ibchooks.v1.Msg/EmitIBCAck', request, metadata || {}, methodDescriptor_Msg_EmitIBCAck, callback); }; /** * @param {!proto.provenance.ibchooks.v1.MsgEmitIBCAck} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.provenance.ibchooks.v1.MsgEmitIBCAckResponse>} * Promise that resolves to the response */ proto.provenance.ibchooks.v1.MsgPromiseClient.prototype.emitIBCAck = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/provenance.ibchooks.v1.Msg/EmitIBCAck', request, metadata || {}, methodDescriptor_Msg_EmitIBCAck); }; module.exports = proto.provenance.ibchooks.v1;