UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

118 lines (98 loc) 3.9 kB
"use strict"; /** * @fileoverview gRPC-Web generated client stub for provenance.ibcratelimit.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 cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js'); var cosmos_msg_v1_msg_pb = require('../../../cosmos/msg/v1/msg_pb.js'); var provenance_ibcratelimit_v1_params_pb = require('../../../provenance/ibcratelimit/v1/params_pb.js'); var proto = {}; proto.provenance = {}; proto.provenance.ibcratelimit = {}; proto.provenance.ibcratelimit.v1 = require('./tx_pb.js'); /** * @param {string} hostname * @param {?Object} credentials * @param {?grpc.web.ClientOptions} options * @constructor * @struct * @final */ proto.provenance.ibcratelimit.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.ibcratelimit.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.ibcratelimit.v1.MsgGovUpdateParamsRequest, * !proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse>} */ var methodDescriptor_Msg_GovUpdateParams = new grpc.web.MethodDescriptor('/provenance.ibcratelimit.v1.Msg/GovUpdateParams', grpc.web.MethodType.UNARY, proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsRequest, proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse, /** * @param {!proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsRequest} request * @return {!Uint8Array} */ function (request) { return request.serializeBinary(); }, proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse.deserializeBinary); /** * @param {!proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsRequest} request The * request proto * @param {?Object<string, string>} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream<!proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse>|undefined} * The XHR Node Readable Stream */ proto.provenance.ibcratelimit.v1.MsgClient.prototype.govUpdateParams = function (request, metadata, callback) { return this.client_.rpcCall(this.hostname_ + '/provenance.ibcratelimit.v1.Msg/GovUpdateParams', request, metadata || {}, methodDescriptor_Msg_GovUpdateParams, callback); }; /** * @param {!proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsRequest} request The * request proto * @param {?Object<string, string>=} metadata User defined * call metadata * @return {!Promise<!proto.provenance.ibcratelimit.v1.MsgGovUpdateParamsResponse>} * Promise that resolves to the response */ proto.provenance.ibcratelimit.v1.MsgPromiseClient.prototype.govUpdateParams = function (request, metadata) { return this.client_.unaryCall(this.hostname_ + '/provenance.ibcratelimit.v1.Msg/GovUpdateParams', request, metadata || {}, methodDescriptor_Msg_GovUpdateParams); }; module.exports = proto.provenance.ibcratelimit.v1;