@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
206 lines (175 loc) • 8.46 kB
JavaScript
;
/**
* @fileoverview gRPC-Web generated client stub for cosmos.vesting.v1beta1
* @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_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
var cosmos_vesting_v1beta1_vesting_pb = require('../../../cosmos/vesting/v1beta1/vesting_pb.js');
var cosmos_msg_v1_msg_pb = require('../../../cosmos/msg/v1/msg_pb.js');
var proto = {};
proto.cosmos = {};
proto.cosmos.vesting = {};
proto.cosmos.vesting.v1beta1 = require('./tx_pb.js');
/**
* @param {string} hostname
* @param {?Object} credentials
* @param {?grpc.web.ClientOptions} options
* @constructor
* @struct
* @final
*/
proto.cosmos.vesting.v1beta1.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.vesting.v1beta1.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.vesting.v1beta1.MsgCreateVestingAccount,
* !proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse>}
*/
var methodDescriptor_Msg_CreateVestingAccount = new grpc.web.MethodDescriptor('/cosmos.vesting.v1beta1.Msg/CreateVestingAccount', grpc.web.MethodType.UNARY, proto.cosmos.vesting.v1beta1.MsgCreateVestingAccount, proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse,
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreateVestingAccount} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse.deserializeBinary);
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreateVestingAccount} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.vesting.v1beta1.MsgClient.prototype.createVestingAccount = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreateVestingAccount', request, metadata || {}, methodDescriptor_Msg_CreateVestingAccount, callback);
};
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreateVestingAccount} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse>}
* Promise that resolves to the response
*/
proto.cosmos.vesting.v1beta1.MsgPromiseClient.prototype.createVestingAccount = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreateVestingAccount', request, metadata || {}, methodDescriptor_Msg_CreateVestingAccount);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount,
* !proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse>}
*/
var methodDescriptor_Msg_CreatePermanentLockedAccount = new grpc.web.MethodDescriptor('/cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount', grpc.web.MethodType.UNARY, proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount, proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse,
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse.deserializeBinary);
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.vesting.v1beta1.MsgClient.prototype.createPermanentLockedAccount = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount', request, metadata || {}, methodDescriptor_Msg_CreatePermanentLockedAccount, callback);
};
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse>}
* Promise that resolves to the response
*/
proto.cosmos.vesting.v1beta1.MsgPromiseClient.prototype.createPermanentLockedAccount = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreatePermanentLockedAccount', request, metadata || {}, methodDescriptor_Msg_CreatePermanentLockedAccount);
};
/**
* @const
* @type {!grpc.web.MethodDescriptor<
* !proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount,
* !proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse>}
*/
var methodDescriptor_Msg_CreatePeriodicVestingAccount = new grpc.web.MethodDescriptor('/cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount', grpc.web.MethodType.UNARY, proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount, proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse,
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount} request
* @return {!Uint8Array}
*/
function (request) {
return request.serializeBinary();
}, proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse.deserializeBinary);
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount} request The
* request proto
* @param {?Object<string, string>} metadata User defined
* call metadata
* @param {function(?grpc.web.RpcError, ?proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse)}
* callback The callback function(error, response)
* @return {!grpc.web.ClientReadableStream<!proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse>|undefined}
* The XHR Node Readable Stream
*/
proto.cosmos.vesting.v1beta1.MsgClient.prototype.createPeriodicVestingAccount = function (request, metadata, callback) {
return this.client_.rpcCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount', request, metadata || {}, methodDescriptor_Msg_CreatePeriodicVestingAccount, callback);
};
/**
* @param {!proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount} request The
* request proto
* @param {?Object<string, string>=} metadata User defined
* call metadata
* @return {!Promise<!proto.cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse>}
* Promise that resolves to the response
*/
proto.cosmos.vesting.v1beta1.MsgPromiseClient.prototype.createPeriodicVestingAccount = function (request, metadata) {
return this.client_.unaryCall(this.hostname_ + '/cosmos.vesting.v1beta1.Msg/CreatePeriodicVestingAccount', request, metadata || {}, methodDescriptor_Msg_CreatePeriodicVestingAccount);
};
module.exports = proto.cosmos.vesting.v1beta1;