@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
294 lines (252 loc) • 10.8 kB
JavaScript
;
/**
* @fileoverview gRPC-Web generated client stub for cosmos.gov.v1
* @enhanceable
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var grpc = {};
grpc.web = require('grpc-web');
var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
var cosmos_gov_v1_gov_pb = require('../../../cosmos/gov/v1/gov_pb.js');
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
var cosmos_msg_v1_msg_pb = require('../../../cosmos/msg/v1/msg_pb.js');
var proto = {};
proto.cosmos = {};
proto.cosmos.gov = {};
proto.cosmos.gov.v1 = require('./tx_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmos.gov.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.cosmos.gov.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.cosmos.gov.v1.MsgSubmitProposal,
* !proto.cosmos.gov.v1.MsgSubmitProposalResponse>}
*/
var methodDescriptor_Msg_SubmitProposal = new grpc.web.MethodDescriptor('/cosmos.gov.v1.Msg/SubmitProposal', grpc.web.MethodType.UNARY, proto.cosmos.gov.v1.MsgSubmitProposal, proto.cosmos.gov.v1.MsgSubmitProposalResponse,
/**
* @param {!proto.cosmos.gov.v1.MsgSubmitProposal} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.gov.v1.MsgSubmitProposalResponse.deserializeBinary);
/**
* @param {!proto.cosmos.gov.v1.MsgSubmitProposal} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.gov.v1.MsgSubmitProposalResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.gov.v1.MsgSubmitProposalResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.gov.v1.MsgClient.prototype.submitProposal = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.gov.v1.Msg/SubmitProposal', request, metadata || {}, methodDescriptor_Msg_SubmitProposal, callback);
};
/**
* @param {!proto.cosmos.gov.v1.MsgSubmitProposal} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.gov.v1.MsgSubmitProposalResponse>}
* Promise that resolves to the response
*/
proto.cosmos.gov.v1.MsgPromiseClient.prototype.submitProposal = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.gov.v1.Msg/SubmitProposal', request, metadata || {}, methodDescriptor_Msg_SubmitProposal);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.gov.v1.MsgExecLegacyContent,
* !proto.cosmos.gov.v1.MsgExecLegacyContentResponse>}
*/
var methodDescriptor_Msg_ExecLegacyContent = new grpc.web.MethodDescriptor('/cosmos.gov.v1.Msg/ExecLegacyContent', grpc.web.MethodType.UNARY, proto.cosmos.gov.v1.MsgExecLegacyContent, proto.cosmos.gov.v1.MsgExecLegacyContentResponse,
/**
* @param {!proto.cosmos.gov.v1.MsgExecLegacyContent} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.gov.v1.MsgExecLegacyContentResponse.deserializeBinary);
/**
* @param {!proto.cosmos.gov.v1.MsgExecLegacyContent} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.gov.v1.MsgExecLegacyContentResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.gov.v1.MsgExecLegacyContentResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.gov.v1.MsgClient.prototype.execLegacyContent = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.gov.v1.Msg/ExecLegacyContent', request, metadata || {}, methodDescriptor_Msg_ExecLegacyContent, callback);
};
/**
* @param {!proto.cosmos.gov.v1.MsgExecLegacyContent} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.gov.v1.MsgExecLegacyContentResponse>}
* Promise that resolves to the response
*/
proto.cosmos.gov.v1.MsgPromiseClient.prototype.execLegacyContent = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.gov.v1.Msg/ExecLegacyContent', request, metadata || {}, methodDescriptor_Msg_ExecLegacyContent);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.gov.v1.MsgVote,
* !proto.cosmos.gov.v1.MsgVoteResponse>}
*/
var methodDescriptor_Msg_Vote = new grpc.web.MethodDescriptor('/cosmos.gov.v1.Msg/Vote', grpc.web.MethodType.UNARY, proto.cosmos.gov.v1.MsgVote, proto.cosmos.gov.v1.MsgVoteResponse,
/**
* @param {!proto.cosmos.gov.v1.MsgVote} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.gov.v1.MsgVoteResponse.deserializeBinary);
/**
* @param {!proto.cosmos.gov.v1.MsgVote} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.gov.v1.MsgVoteResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.gov.v1.MsgVoteResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.gov.v1.MsgClient.prototype.vote = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.gov.v1.Msg/Vote', request, metadata || {}, methodDescriptor_Msg_Vote, callback);
};
/**
* @param {!proto.cosmos.gov.v1.MsgVote} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.gov.v1.MsgVoteResponse>}
* Promise that resolves to the response
*/
proto.cosmos.gov.v1.MsgPromiseClient.prototype.vote = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.gov.v1.Msg/Vote', request, metadata || {}, methodDescriptor_Msg_Vote);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.gov.v1.MsgVoteWeighted,
* !proto.cosmos.gov.v1.MsgVoteWeightedResponse>}
*/
var methodDescriptor_Msg_VoteWeighted = new grpc.web.MethodDescriptor('/cosmos.gov.v1.Msg/VoteWeighted', grpc.web.MethodType.UNARY, proto.cosmos.gov.v1.MsgVoteWeighted, proto.cosmos.gov.v1.MsgVoteWeightedResponse,
/**
* @param {!proto.cosmos.gov.v1.MsgVoteWeighted} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.gov.v1.MsgVoteWeightedResponse.deserializeBinary);
/**
* @param {!proto.cosmos.gov.v1.MsgVoteWeighted} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.gov.v1.MsgVoteWeightedResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.gov.v1.MsgVoteWeightedResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.gov.v1.MsgClient.prototype.voteWeighted = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.gov.v1.Msg/VoteWeighted', request, metadata || {}, methodDescriptor_Msg_VoteWeighted, callback);
};
/**
* @param {!proto.cosmos.gov.v1.MsgVoteWeighted} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.gov.v1.MsgVoteWeightedResponse>}
* Promise that resolves to the response
*/
proto.cosmos.gov.v1.MsgPromiseClient.prototype.voteWeighted = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.gov.v1.Msg/VoteWeighted', request, metadata || {}, methodDescriptor_Msg_VoteWeighted);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.gov.v1.MsgDeposit,
* !proto.cosmos.gov.v1.MsgDepositResponse>}
*/
var methodDescriptor_Msg_Deposit = new grpc.web.MethodDescriptor('/cosmos.gov.v1.Msg/Deposit', grpc.web.MethodType.UNARY, proto.cosmos.gov.v1.MsgDeposit, proto.cosmos.gov.v1.MsgDepositResponse,
/**
* @param {!proto.cosmos.gov.v1.MsgDeposit} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.gov.v1.MsgDepositResponse.deserializeBinary);
/**
* @param {!proto.cosmos.gov.v1.MsgDeposit} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.gov.v1.MsgDepositResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.gov.v1.MsgDepositResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.gov.v1.MsgClient.prototype.deposit = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.gov.v1.Msg/Deposit', request, metadata || {}, methodDescriptor_Msg_Deposit, callback);
};
/**
* @param {!proto.cosmos.gov.v1.MsgDeposit} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.gov.v1.MsgDepositResponse>}
* Promise that resolves to the response
*/
proto.cosmos.gov.v1.MsgPromiseClient.prototype.deposit = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.gov.v1.Msg/Deposit', request, metadata || {}, methodDescriptor_Msg_Deposit);
};
module.exports = proto.cosmos.gov.v1;