@provenanceio/wallet-utils
Version:
Typescript Utilities for Provenance Blockchain Wallet
62 lines (53 loc) • 5.6 kB
TypeScript
// package: cosmos.feegrant.v1beta1
// file: cosmos/feegrant/v1beta1/tx.proto
/* tslint:disable */
/* eslint-disable */
import * as grpc from "grpc";
import * as cosmos_feegrant_v1beta1_tx_pb from "../../../cosmos/feegrant/v1beta1/tx_pb";
import * as google_protobuf_any_pb from "google-protobuf/google/protobuf/any_pb";
import * as cosmos_proto_cosmos_pb from "../../../cosmos_proto/cosmos_pb";
import * as cosmos_msg_v1_msg_pb from "../../../cosmos/msg/v1/msg_pb";
interface IMsgService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
grantAllowance: IMsgService_IGrantAllowance;
revokeAllowance: IMsgService_IRevokeAllowance;
}
interface IMsgService_IGrantAllowance extends grpc.MethodDefinition<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse> {
path: "/cosmos.feegrant.v1beta1.Msg/GrantAllowance";
requestStream: false;
responseStream: false;
requestSerialize: grpc.serialize<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance>;
requestDeserialize: grpc.deserialize<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance>;
responseSerialize: grpc.serialize<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse>;
responseDeserialize: grpc.deserialize<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse>;
}
interface IMsgService_IRevokeAllowance extends grpc.MethodDefinition<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse> {
path: "/cosmos.feegrant.v1beta1.Msg/RevokeAllowance";
requestStream: false;
responseStream: false;
requestSerialize: grpc.serialize<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance>;
requestDeserialize: grpc.deserialize<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance>;
responseSerialize: grpc.serialize<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse>;
responseDeserialize: grpc.deserialize<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse>;
}
export const MsgService: IMsgService;
export interface IMsgServer {
grantAllowance: grpc.handleUnaryCall<cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse>;
revokeAllowance: grpc.handleUnaryCall<cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse>;
}
export interface IMsgClient {
grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
}
export class MsgClient extends grpc.Client implements IMsgClient {
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
public grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
public grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
public grantAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowance, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgGrantAllowanceResponse) => void): grpc.ClientUnaryCall;
public revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
public revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
public revokeAllowance(request: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowance, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: cosmos_feegrant_v1beta1_tx_pb.MsgRevokeAllowanceResponse) => void): grpc.ClientUnaryCall;
}