Socket
Socket
Sign inDemoInstall

@terra-money/terra.proto

Package Overview
Dependencies
2
Maintainers
7
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

65

cosmos/auth/v1beta1/query.d.ts

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -80,20 +82,57 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Accounts returns all the existing accounts */
Accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
readonly accounts: {
readonly path: "/cosmos.auth.v1beta1.Query/Accounts";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAccountsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAccountsRequest;
readonly responseSerialize: (value: QueryAccountsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAccountsResponse;
};
/** Account returns account details based on address. */
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
readonly account: {
readonly path: "/cosmos.auth.v1beta1.Query/Account";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAccountRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAccountRequest;
readonly responseSerialize: (value: QueryAccountResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAccountResponse;
};
/** Params queries all parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.auth.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Accounts returns all the existing accounts */
accounts: handleUnaryCall<QueryAccountsRequest, QueryAccountsResponse>;
/** Account returns account details based on address. */
account: handleUnaryCall<QueryAccountRequest, QueryAccountResponse>;
/** Params queries all parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Accounts(request: QueryAccountsRequest): Promise<QueryAccountsResponse>;
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** Accounts returns all the existing accounts */
accounts(request: QueryAccountsRequest, callback: (error: ServiceError | null, response: QueryAccountsResponse) => void): ClientUnaryCall;
accounts(request: QueryAccountsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAccountsResponse) => void): ClientUnaryCall;
accounts(request: QueryAccountsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAccountsResponse) => void): ClientUnaryCall;
/** Account returns account details based on address. */
account(request: QueryAccountRequest, callback: (error: ServiceError | null, response: QueryAccountResponse) => void): ClientUnaryCall;
account(request: QueryAccountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAccountResponse) => void): ClientUnaryCall;
account(request: QueryAccountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAccountResponse) => void): ClientUnaryCall;
/** Params queries all parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -100,0 +139,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

61

cosmos/auth/v1beta1/query.js

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAccountResponse = exports.QueryAccountRequest = exports.QueryAccountsResponse = exports.QueryAccountsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAccountResponse = exports.QueryAccountRequest = exports.QueryAccountsResponse = exports.QueryAccountsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -330,26 +331,36 @@ const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Accounts = this.Accounts.bind(this);
this.Account = this.Account.bind(this);
this.Params = this.Params.bind(this);
}
Accounts(request) {
const data = exports.QueryAccountsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Accounts", data);
return promise.then((data) => exports.QueryAccountsResponse.decode(new minimal_1.default.Reader(data)));
}
Account(request) {
const data = exports.QueryAccountRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data);
return promise.then((data) => exports.QueryAccountResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Accounts returns all the existing accounts */
accounts: {
path: "/cosmos.auth.v1beta1.Query/Accounts",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAccountsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAccountsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAccountsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAccountsResponse.decode(value),
},
/** Account returns account details based on address. */
account: {
path: "/cosmos.auth.v1beta1.Query/Account",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAccountRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAccountRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAccountResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAccountResponse.decode(value),
},
/** Params queries all parameters. */
params: {
path: "/cosmos.auth.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.auth.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -356,0 +367,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -37,14 +39,25 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Returns list of `Authorization`, granted to the grantee by the granter. */
Grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
readonly grants: {
readonly path: "/cosmos.authz.v1beta1.Query/Grants";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryGrantsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryGrantsRequest;
readonly responseSerialize: (value: QueryGrantsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryGrantsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Returns list of `Authorization`, granted to the grantee by the granter. */
grants: handleUnaryCall<QueryGrantsRequest, QueryGrantsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Grants(request: QueryGrantsRequest): Promise<QueryGrantsResponse>;
export interface QueryClient extends Client {
/** Returns list of `Authorization`, granted to the grantee by the granter. */
grants(request: QueryGrantsRequest, callback: (error: ServiceError | null, response: QueryGrantsResponse) => void): ClientUnaryCall;
grants(request: QueryGrantsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryGrantsResponse) => void): ClientUnaryCall;
grants(request: QueryGrantsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryGrantsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -51,0 +64,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryGrantsResponse = exports.QueryGrantsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryGrantsResponse = exports.QueryGrantsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -200,14 +201,16 @@ const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Grants = this.Grants.bind(this);
}
Grants(request) {
const data = exports.QueryGrantsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.authz.v1beta1.Query", "Grants", data);
return promise.then((data) => exports.QueryGrantsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Returns list of `Authorization`, granted to the grantee by the granter. */
grants: {
path: "/cosmos.authz.v1beta1.Query/Grants",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryGrantsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryGrantsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryGrantsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryGrantsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.authz.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -214,0 +217,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -91,3 +93,3 @@ import { Grant } from "../../../cosmos/authz/v1beta1/authz";

/** Msg defines the authz Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -99,3 +101,11 @@ * Grant grants the provided authorization to the grantee on the granter's

*/
Grant(request: MsgGrant): Promise<MsgGrantResponse>;
readonly grant: {
readonly path: "/cosmos.authz.v1beta1.Msg/Grant";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgGrant) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgGrant;
readonly responseSerialize: (value: MsgGrantResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgGrantResponse;
};
/**

@@ -106,3 +116,11 @@ * Exec attempts to execute the provided messages using

*/
Exec(request: MsgExec): Promise<MsgExecResponse>;
readonly exec: {
readonly path: "/cosmos.authz.v1beta1.Msg/Exec";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgExec) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgExec;
readonly responseSerialize: (value: MsgExecResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgExecResponse;
};
/**

@@ -112,14 +130,59 @@ * Revoke revokes any authorization corresponding to the provided method name on the

*/
Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
readonly revoke: {
readonly path: "/cosmos.authz.v1beta1.Msg/Revoke";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgRevoke) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgRevoke;
readonly responseSerialize: (value: MsgRevokeResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgRevokeResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* Grant grants the provided authorization to the grantee on the granter's
* account with the provided expiration time. If there is already a grant
* for the given (granter, grantee, Authorization) triple, then the grant
* will be overwritten.
*/
grant: handleUnaryCall<MsgGrant, MsgGrantResponse>;
/**
* Exec attempts to execute the provided messages using
* authorizations granted to the grantee. Each message should have only
* one signer corresponding to the granter of the authorization.
*/
exec: handleUnaryCall<MsgExec, MsgExecResponse>;
/**
* Revoke revokes any authorization corresponding to the provided method name on the
* granter's account that has been granted to the grantee.
*/
revoke: handleUnaryCall<MsgRevoke, MsgRevokeResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
Grant(request: MsgGrant): Promise<MsgGrantResponse>;
Exec(request: MsgExec): Promise<MsgExecResponse>;
Revoke(request: MsgRevoke): Promise<MsgRevokeResponse>;
export interface MsgClient extends Client {
/**
* Grant grants the provided authorization to the grantee on the granter's
* account with the provided expiration time. If there is already a grant
* for the given (granter, grantee, Authorization) triple, then the grant
* will be overwritten.
*/
grant(request: MsgGrant, callback: (error: ServiceError | null, response: MsgGrantResponse) => void): ClientUnaryCall;
grant(request: MsgGrant, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgGrantResponse) => void): ClientUnaryCall;
grant(request: MsgGrant, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgGrantResponse) => void): ClientUnaryCall;
/**
* Exec attempts to execute the provided messages using
* authorizations granted to the grantee. Each message should have only
* one signer corresponding to the granter of the authorization.
*/
exec(request: MsgExec, callback: (error: ServiceError | null, response: MsgExecResponse) => void): ClientUnaryCall;
exec(request: MsgExec, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgExecResponse) => void): ClientUnaryCall;
exec(request: MsgExec, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgExecResponse) => void): ClientUnaryCall;
/**
* Revoke revokes any authorization corresponding to the provided method name on the
* granter's account that has been granted to the grantee.
*/
revoke(request: MsgRevoke, callback: (error: ServiceError | null, response: MsgRevokeResponse) => void): ClientUnaryCall;
revoke(request: MsgRevoke, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgRevokeResponse) => void): ClientUnaryCall;
revoke(request: MsgRevoke, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgRevokeResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -126,0 +189,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgRevokeResponse = exports.MsgRevoke = exports.MsgGrantResponse = exports.MsgExec = exports.MsgExecResponse = exports.MsgGrant = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgRevokeResponse = exports.MsgRevoke = exports.MsgGrantResponse = exports.MsgExec = exports.MsgExecResponse = exports.MsgGrant = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -389,26 +390,48 @@ const authz_1 = require("../../../cosmos/authz/v1beta1/authz");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Grant = this.Grant.bind(this);
this.Exec = this.Exec.bind(this);
this.Revoke = this.Revoke.bind(this);
}
Grant(request) {
const data = exports.MsgGrant.encode(request).finish();
const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Grant", data);
return promise.then((data) => exports.MsgGrantResponse.decode(new minimal_1.default.Reader(data)));
}
Exec(request) {
const data = exports.MsgExec.encode(request).finish();
const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Exec", data);
return promise.then((data) => exports.MsgExecResponse.decode(new minimal_1.default.Reader(data)));
}
Revoke(request) {
const data = exports.MsgRevoke.encode(request).finish();
const promise = this.rpc.request("cosmos.authz.v1beta1.Msg", "Revoke", data);
return promise.then((data) => exports.MsgRevokeResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the authz Msg service. */
exports.MsgService = {
/**
* Grant grants the provided authorization to the grantee on the granter's
* account with the provided expiration time. If there is already a grant
* for the given (granter, grantee, Authorization) triple, then the grant
* will be overwritten.
*/
grant: {
path: "/cosmos.authz.v1beta1.Msg/Grant",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgGrant.encode(value).finish()),
requestDeserialize: (value) => exports.MsgGrant.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgGrantResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgGrantResponse.decode(value),
},
/**
* Exec attempts to execute the provided messages using
* authorizations granted to the grantee. Each message should have only
* one signer corresponding to the granter of the authorization.
*/
exec: {
path: "/cosmos.authz.v1beta1.Msg/Exec",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgExec.encode(value).finish()),
requestDeserialize: (value) => exports.MsgExec.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgExecResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgExecResponse.decode(value),
},
/**
* Revoke revokes any authorization corresponding to the provided method name on the
* granter's account that has been granted to the grantee.
*/
revoke: {
path: "/cosmos.authz.v1beta1.Msg/Revoke",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgRevoke.encode(value).finish()),
requestDeserialize: (value) => exports.MsgRevoke.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgRevokeResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgRevokeResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.authz.v1beta1.Msg");
var globalThis = (() => {

@@ -415,0 +438,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -198,32 +200,121 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Balance queries the balance of a single coin for a single account. */
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
readonly balance: {
readonly path: "/cosmos.bank.v1beta1.Query/Balance";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryBalanceRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryBalanceRequest;
readonly responseSerialize: (value: QueryBalanceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryBalanceResponse;
};
/** AllBalances queries the balance of all coins for a single account. */
AllBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
readonly allBalances: {
readonly path: "/cosmos.bank.v1beta1.Query/AllBalances";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAllBalancesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAllBalancesRequest;
readonly responseSerialize: (value: QueryAllBalancesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAllBalancesResponse;
};
/** TotalSupply queries the total supply of all coins. */
TotalSupply(request: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
readonly totalSupply: {
readonly path: "/cosmos.bank.v1beta1.Query/TotalSupply";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTotalSupplyRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTotalSupplyRequest;
readonly responseSerialize: (value: QueryTotalSupplyResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTotalSupplyResponse;
};
/** SupplyOf queries the supply of a single coin. */
SupplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
readonly supplyOf: {
readonly path: "/cosmos.bank.v1beta1.Query/SupplyOf";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QuerySupplyOfRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QuerySupplyOfRequest;
readonly responseSerialize: (value: QuerySupplyOfResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QuerySupplyOfResponse;
};
/** Params queries the parameters of x/bank module. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.bank.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
/** DenomsMetadata queries the client metadata of a given coin denomination. */
DenomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
readonly denomMetadata: {
readonly path: "/cosmos.bank.v1beta1.Query/DenomMetadata";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDenomMetadataRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDenomMetadataRequest;
readonly responseSerialize: (value: QueryDenomMetadataResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDenomMetadataResponse;
};
/** DenomsMetadata queries the client metadata for all registered coin denominations. */
DenomsMetadata(request: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
readonly denomsMetadata: {
readonly path: "/cosmos.bank.v1beta1.Query/DenomsMetadata";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDenomsMetadataRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDenomsMetadataRequest;
readonly responseSerialize: (value: QueryDenomsMetadataResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDenomsMetadataResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Balance queries the balance of a single coin for a single account. */
balance: handleUnaryCall<QueryBalanceRequest, QueryBalanceResponse>;
/** AllBalances queries the balance of all coins for a single account. */
allBalances: handleUnaryCall<QueryAllBalancesRequest, QueryAllBalancesResponse>;
/** TotalSupply queries the total supply of all coins. */
totalSupply: handleUnaryCall<QueryTotalSupplyRequest, QueryTotalSupplyResponse>;
/** SupplyOf queries the supply of a single coin. */
supplyOf: handleUnaryCall<QuerySupplyOfRequest, QuerySupplyOfResponse>;
/** Params queries the parameters of x/bank module. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
/** DenomsMetadata queries the client metadata of a given coin denomination. */
denomMetadata: handleUnaryCall<QueryDenomMetadataRequest, QueryDenomMetadataResponse>;
/** DenomsMetadata queries the client metadata for all registered coin denominations. */
denomsMetadata: handleUnaryCall<QueryDenomsMetadataRequest, QueryDenomsMetadataResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
AllBalances(request: QueryAllBalancesRequest): Promise<QueryAllBalancesResponse>;
TotalSupply(request: QueryTotalSupplyRequest): Promise<QueryTotalSupplyResponse>;
SupplyOf(request: QuerySupplyOfRequest): Promise<QuerySupplyOfResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
DenomMetadata(request: QueryDenomMetadataRequest): Promise<QueryDenomMetadataResponse>;
DenomsMetadata(request: QueryDenomsMetadataRequest): Promise<QueryDenomsMetadataResponse>;
export interface QueryClient extends Client {
/** Balance queries the balance of a single coin for a single account. */
balance(request: QueryBalanceRequest, callback: (error: ServiceError | null, response: QueryBalanceResponse) => void): ClientUnaryCall;
balance(request: QueryBalanceRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryBalanceResponse) => void): ClientUnaryCall;
balance(request: QueryBalanceRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryBalanceResponse) => void): ClientUnaryCall;
/** AllBalances queries the balance of all coins for a single account. */
allBalances(request: QueryAllBalancesRequest, callback: (error: ServiceError | null, response: QueryAllBalancesResponse) => void): ClientUnaryCall;
allBalances(request: QueryAllBalancesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryAllBalancesResponse) => void): ClientUnaryCall;
allBalances(request: QueryAllBalancesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAllBalancesResponse) => void): ClientUnaryCall;
/** TotalSupply queries the total supply of all coins. */
totalSupply(request: QueryTotalSupplyRequest, callback: (error: ServiceError | null, response: QueryTotalSupplyResponse) => void): ClientUnaryCall;
totalSupply(request: QueryTotalSupplyRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryTotalSupplyResponse) => void): ClientUnaryCall;
totalSupply(request: QueryTotalSupplyRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTotalSupplyResponse) => void): ClientUnaryCall;
/** SupplyOf queries the supply of a single coin. */
supplyOf(request: QuerySupplyOfRequest, callback: (error: ServiceError | null, response: QuerySupplyOfResponse) => void): ClientUnaryCall;
supplyOf(request: QuerySupplyOfRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QuerySupplyOfResponse) => void): ClientUnaryCall;
supplyOf(request: QuerySupplyOfRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySupplyOfResponse) => void): ClientUnaryCall;
/** Params queries the parameters of x/bank module. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
/** DenomsMetadata queries the client metadata of a given coin denomination. */
denomMetadata(request: QueryDenomMetadataRequest, callback: (error: ServiceError | null, response: QueryDenomMetadataResponse) => void): ClientUnaryCall;
denomMetadata(request: QueryDenomMetadataRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDenomMetadataResponse) => void): ClientUnaryCall;
denomMetadata(request: QueryDenomMetadataRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDenomMetadataResponse) => void): ClientUnaryCall;
/** DenomsMetadata queries the client metadata for all registered coin denominations. */
denomsMetadata(request: QueryDenomsMetadataRequest, callback: (error: ServiceError | null, response: QueryDenomsMetadataResponse) => void): ClientUnaryCall;
denomsMetadata(request: QueryDenomsMetadataRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDenomsMetadataResponse) => void): ClientUnaryCall;
denomsMetadata(request: QueryDenomsMetadataRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDenomsMetadataResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -230,0 +321,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryDenomMetadataResponse = exports.QueryDenomMetadataRequest = exports.QueryDenomsMetadataResponse = exports.QueryDenomsMetadataRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QuerySupplyOfResponse = exports.QuerySupplyOfRequest = exports.QueryTotalSupplyResponse = exports.QueryTotalSupplyRequest = exports.QueryAllBalancesResponse = exports.QueryAllBalancesRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -831,50 +832,76 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Balance = this.Balance.bind(this);
this.AllBalances = this.AllBalances.bind(this);
this.TotalSupply = this.TotalSupply.bind(this);
this.SupplyOf = this.SupplyOf.bind(this);
this.Params = this.Params.bind(this);
this.DenomMetadata = this.DenomMetadata.bind(this);
this.DenomsMetadata = this.DenomsMetadata.bind(this);
}
Balance(request) {
const data = exports.QueryBalanceRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Balance", data);
return promise.then((data) => exports.QueryBalanceResponse.decode(new minimal_1.default.Reader(data)));
}
AllBalances(request) {
const data = exports.QueryAllBalancesRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "AllBalances", data);
return promise.then((data) => exports.QueryAllBalancesResponse.decode(new minimal_1.default.Reader(data)));
}
TotalSupply(request) {
const data = exports.QueryTotalSupplyRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "TotalSupply", data);
return promise.then((data) => exports.QueryTotalSupplyResponse.decode(new minimal_1.default.Reader(data)));
}
SupplyOf(request) {
const data = exports.QuerySupplyOfRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "SupplyOf", data);
return promise.then((data) => exports.QuerySupplyOfResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
DenomMetadata(request) {
const data = exports.QueryDenomMetadataRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomMetadata", data);
return promise.then((data) => exports.QueryDenomMetadataResponse.decode(new minimal_1.default.Reader(data)));
}
DenomsMetadata(request) {
const data = exports.QueryDenomsMetadataRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Query", "DenomsMetadata", data);
return promise.then((data) => exports.QueryDenomsMetadataResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Balance queries the balance of a single coin for a single account. */
balance: {
path: "/cosmos.bank.v1beta1.Query/Balance",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryBalanceRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryBalanceRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryBalanceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryBalanceResponse.decode(value),
},
/** AllBalances queries the balance of all coins for a single account. */
allBalances: {
path: "/cosmos.bank.v1beta1.Query/AllBalances",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAllBalancesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAllBalancesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAllBalancesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAllBalancesResponse.decode(value),
},
/** TotalSupply queries the total supply of all coins. */
totalSupply: {
path: "/cosmos.bank.v1beta1.Query/TotalSupply",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTotalSupplyRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTotalSupplyRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTotalSupplyResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTotalSupplyResponse.decode(value),
},
/** SupplyOf queries the supply of a single coin. */
supplyOf: {
path: "/cosmos.bank.v1beta1.Query/SupplyOf",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QuerySupplyOfRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QuerySupplyOfRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QuerySupplyOfResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QuerySupplyOfResponse.decode(value),
},
/** Params queries the parameters of x/bank module. */
params: {
path: "/cosmos.bank.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
/** DenomsMetadata queries the client metadata of a given coin denomination. */
denomMetadata: {
path: "/cosmos.bank.v1beta1.Query/DenomMetadata",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDenomMetadataRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDenomMetadataRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDenomMetadataResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDenomMetadataResponse.decode(value),
},
/** DenomsMetadata queries the client metadata for all registered coin denominations. */
denomsMetadata: {
path: "/cosmos.bank.v1beta1.Query/DenomsMetadata",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDenomsMetadataRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDenomsMetadataRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDenomsMetadataResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDenomsMetadataResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.bank.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -881,0 +908,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -52,17 +54,41 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Msg defines the bank Msg service. */
export interface Msg {
export declare const MsgService: {
/** Send defines a method for sending coins from one account to another account. */
Send(request: MsgSend): Promise<MsgSendResponse>;
readonly send: {
readonly path: "/cosmos.bank.v1beta1.Msg/Send";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSend) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSend;
readonly responseSerialize: (value: MsgSendResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSendResponse;
};
/** MultiSend defines a method for sending coins from some accounts to other accounts. */
MultiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>;
readonly multiSend: {
readonly path: "/cosmos.bank.v1beta1.Msg/MultiSend";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgMultiSend) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgMultiSend;
readonly responseSerialize: (value: MsgMultiSendResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgMultiSendResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** Send defines a method for sending coins from one account to another account. */
send: handleUnaryCall<MsgSend, MsgSendResponse>;
/** MultiSend defines a method for sending coins from some accounts to other accounts. */
multiSend: handleUnaryCall<MsgMultiSend, MsgMultiSendResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
Send(request: MsgSend): Promise<MsgSendResponse>;
MultiSend(request: MsgMultiSend): Promise<MsgMultiSendResponse>;
export interface MsgClient extends Client {
/** Send defines a method for sending coins from one account to another account. */
send(request: MsgSend, callback: (error: ServiceError | null, response: MsgSendResponse) => void): ClientUnaryCall;
send(request: MsgSend, metadata: Metadata, callback: (error: ServiceError | null, response: MsgSendResponse) => void): ClientUnaryCall;
send(request: MsgSend, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSendResponse) => void): ClientUnaryCall;
/** MultiSend defines a method for sending coins from some accounts to other accounts. */
multiSend(request: MsgMultiSend, callback: (error: ServiceError | null, response: MsgMultiSendResponse) => void): ClientUnaryCall;
multiSend(request: MsgMultiSend, metadata: Metadata, callback: (error: ServiceError | null, response: MsgMultiSendResponse) => void): ClientUnaryCall;
multiSend(request: MsgMultiSend, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgMultiSendResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -69,0 +95,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgMultiSendResponse = exports.MsgMultiSend = exports.MsgSendResponse = exports.MsgSend = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -255,20 +256,26 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Send = this.Send.bind(this);
this.MultiSend = this.MultiSend.bind(this);
}
Send(request) {
const data = exports.MsgSend.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "Send", data);
return promise.then((data) => exports.MsgSendResponse.decode(new minimal_1.default.Reader(data)));
}
MultiSend(request) {
const data = exports.MsgMultiSend.encode(request).finish();
const promise = this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", data);
return promise.then((data) => exports.MsgMultiSendResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the bank Msg service. */
exports.MsgService = {
/** Send defines a method for sending coins from one account to another account. */
send: {
path: "/cosmos.bank.v1beta1.Msg/Send",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSend.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSend.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSendResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSendResponse.decode(value),
},
/** MultiSend defines a method for sending coins from some accounts to other accounts. */
multiSend: {
path: "/cosmos.bank.v1beta1.Msg/MultiSend",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgMultiSend.encode(value).finish()),
requestDeserialize: (value) => exports.MsgMultiSend.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgMultiSendResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgMultiSendResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.bank.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -275,0 +282,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -56,3 +58,3 @@ export declare const protobufPackage = "cosmos.base.reflection.v1beta1";

/** ReflectionService defines a service for interface reflection. */
export interface ReflectionService {
export declare const ReflectionServiceService: {
/**

@@ -62,3 +64,11 @@ * ListAllInterfaces lists all the interfaces registered in the interface

*/
ListAllInterfaces(request: ListAllInterfacesRequest): Promise<ListAllInterfacesResponse>;
readonly listAllInterfaces: {
readonly path: "/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ListAllInterfacesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ListAllInterfacesRequest;
readonly responseSerialize: (value: ListAllInterfacesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ListAllInterfacesResponse;
};
/**

@@ -68,13 +78,41 @@ * ListImplementations list all the concrete types that implement a given

*/
ListImplementations(request: ListImplementationsRequest): Promise<ListImplementationsResponse>;
readonly listImplementations: {
readonly path: "/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ListImplementationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ListImplementationsRequest;
readonly responseSerialize: (value: ListImplementationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ListImplementationsResponse;
};
};
export interface ReflectionServiceServer extends UntypedServiceImplementation {
/**
* ListAllInterfaces lists all the interfaces registered in the interface
* registry.
*/
listAllInterfaces: handleUnaryCall<ListAllInterfacesRequest, ListAllInterfacesResponse>;
/**
* ListImplementations list all the concrete types that implement a given
* interface.
*/
listImplementations: handleUnaryCall<ListImplementationsRequest, ListImplementationsResponse>;
}
export declare class ReflectionServiceClientImpl implements ReflectionService {
private readonly rpc;
constructor(rpc: Rpc);
ListAllInterfaces(request: ListAllInterfacesRequest): Promise<ListAllInterfacesResponse>;
ListImplementations(request: ListImplementationsRequest): Promise<ListImplementationsResponse>;
export interface ReflectionServiceClient extends Client {
/**
* ListAllInterfaces lists all the interfaces registered in the interface
* registry.
*/
listAllInterfaces(request: ListAllInterfacesRequest, callback: (error: ServiceError | null, response: ListAllInterfacesResponse) => void): ClientUnaryCall;
listAllInterfaces(request: ListAllInterfacesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: ListAllInterfacesResponse) => void): ClientUnaryCall;
listAllInterfaces(request: ListAllInterfacesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListAllInterfacesResponse) => void): ClientUnaryCall;
/**
* ListImplementations list all the concrete types that implement a given
* interface.
*/
listImplementations(request: ListImplementationsRequest, callback: (error: ServiceError | null, response: ListImplementationsResponse) => void): ClientUnaryCall;
listImplementations(request: ListImplementationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: ListImplementationsResponse) => void): ClientUnaryCall;
listImplementations(request: ListImplementationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListImplementationsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ReflectionServiceClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ReflectionServiceClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -81,0 +119,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ReflectionServiceClientImpl = exports.ListImplementationsResponse = exports.ListImplementationsRequest = exports.ListAllInterfacesResponse = exports.ListAllInterfacesRequest = exports.protobufPackage = void 0;
exports.ReflectionServiceClient = exports.ReflectionServiceService = exports.ListImplementationsResponse = exports.ListImplementationsRequest = exports.ListAllInterfacesResponse = exports.ListAllInterfacesRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -209,20 +210,32 @@ exports.protobufPackage = "cosmos.base.reflection.v1beta1";

};
class ReflectionServiceClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.ListAllInterfaces = this.ListAllInterfaces.bind(this);
this.ListImplementations = this.ListImplementations.bind(this);
}
ListAllInterfaces(request) {
const data = exports.ListAllInterfacesRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.reflection.v1beta1.ReflectionService", "ListAllInterfaces", data);
return promise.then((data) => exports.ListAllInterfacesResponse.decode(new minimal_1.default.Reader(data)));
}
ListImplementations(request) {
const data = exports.ListImplementationsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.reflection.v1beta1.ReflectionService", "ListImplementations", data);
return promise.then((data) => exports.ListImplementationsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.ReflectionServiceClientImpl = ReflectionServiceClientImpl;
/** ReflectionService defines a service for interface reflection. */
exports.ReflectionServiceService = {
/**
* ListAllInterfaces lists all the interfaces registered in the interface
* registry.
*/
listAllInterfaces: {
path: "/cosmos.base.reflection.v1beta1.ReflectionService/ListAllInterfaces",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.ListAllInterfacesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.ListAllInterfacesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.ListAllInterfacesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.ListAllInterfacesResponse.decode(value),
},
/**
* ListImplementations list all the concrete types that implement a given
* interface.
*/
listImplementations: {
path: "/cosmos.base.reflection.v1beta1.ReflectionService/ListImplementations",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.ListImplementationsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.ListImplementationsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.ListImplementationsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.ListImplementationsResponse.decode(value),
},
};
exports.ReflectionServiceClient = grpc_js_1.makeGenericClientConstructor(exports.ReflectionServiceService, "cosmos.base.reflection.v1beta1.ReflectionService");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -229,0 +242,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -378,3 +380,3 @@ export declare const protobufPackage = "cosmos.base.reflection.v2alpha1";

/** ReflectionService defines a service for application reflection. */
export interface ReflectionService {
export declare const ReflectionServiceService: {
/**

@@ -385,27 +387,111 @@ * GetAuthnDescriptor returns information on how to authenticate transactions in the application

*/
GetAuthnDescriptor(request: GetAuthnDescriptorRequest): Promise<GetAuthnDescriptorResponse>;
readonly getAuthnDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetAuthnDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetAuthnDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetAuthnDescriptorRequest;
readonly responseSerialize: (value: GetAuthnDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetAuthnDescriptorResponse;
};
/** GetChainDescriptor returns the description of the chain */
GetChainDescriptor(request: GetChainDescriptorRequest): Promise<GetChainDescriptorResponse>;
readonly getChainDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetChainDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetChainDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetChainDescriptorRequest;
readonly responseSerialize: (value: GetChainDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetChainDescriptorResponse;
};
/** GetCodecDescriptor returns the descriptor of the codec of the application */
GetCodecDescriptor(request: GetCodecDescriptorRequest): Promise<GetCodecDescriptorResponse>;
readonly getCodecDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetCodecDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetCodecDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetCodecDescriptorRequest;
readonly responseSerialize: (value: GetCodecDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetCodecDescriptorResponse;
};
/** GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application */
GetConfigurationDescriptor(request: GetConfigurationDescriptorRequest): Promise<GetConfigurationDescriptorResponse>;
readonly getConfigurationDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetConfigurationDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetConfigurationDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetConfigurationDescriptorRequest;
readonly responseSerialize: (value: GetConfigurationDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetConfigurationDescriptorResponse;
};
/** GetQueryServicesDescriptor returns the available gRPC queryable services of the application */
GetQueryServicesDescriptor(request: GetQueryServicesDescriptorRequest): Promise<GetQueryServicesDescriptorResponse>;
readonly getQueryServicesDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetQueryServicesDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetQueryServicesDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetQueryServicesDescriptorRequest;
readonly responseSerialize: (value: GetQueryServicesDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetQueryServicesDescriptorResponse;
};
/** GetTxDescriptor returns information on the used transaction object and available msgs that can be used */
GetTxDescriptor(request: GetTxDescriptorRequest): Promise<GetTxDescriptorResponse>;
readonly getTxDescriptor: {
readonly path: "/cosmos.base.reflection.v2alpha1.ReflectionService/GetTxDescriptor";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetTxDescriptorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetTxDescriptorRequest;
readonly responseSerialize: (value: GetTxDescriptorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetTxDescriptorResponse;
};
};
export interface ReflectionServiceServer extends UntypedServiceImplementation {
/**
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*/
getAuthnDescriptor: handleUnaryCall<GetAuthnDescriptorRequest, GetAuthnDescriptorResponse>;
/** GetChainDescriptor returns the description of the chain */
getChainDescriptor: handleUnaryCall<GetChainDescriptorRequest, GetChainDescriptorResponse>;
/** GetCodecDescriptor returns the descriptor of the codec of the application */
getCodecDescriptor: handleUnaryCall<GetCodecDescriptorRequest, GetCodecDescriptorResponse>;
/** GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application */
getConfigurationDescriptor: handleUnaryCall<GetConfigurationDescriptorRequest, GetConfigurationDescriptorResponse>;
/** GetQueryServicesDescriptor returns the available gRPC queryable services of the application */
getQueryServicesDescriptor: handleUnaryCall<GetQueryServicesDescriptorRequest, GetQueryServicesDescriptorResponse>;
/** GetTxDescriptor returns information on the used transaction object and available msgs that can be used */
getTxDescriptor: handleUnaryCall<GetTxDescriptorRequest, GetTxDescriptorResponse>;
}
export declare class ReflectionServiceClientImpl implements ReflectionService {
private readonly rpc;
constructor(rpc: Rpc);
GetAuthnDescriptor(request: GetAuthnDescriptorRequest): Promise<GetAuthnDescriptorResponse>;
GetChainDescriptor(request: GetChainDescriptorRequest): Promise<GetChainDescriptorResponse>;
GetCodecDescriptor(request: GetCodecDescriptorRequest): Promise<GetCodecDescriptorResponse>;
GetConfigurationDescriptor(request: GetConfigurationDescriptorRequest): Promise<GetConfigurationDescriptorResponse>;
GetQueryServicesDescriptor(request: GetQueryServicesDescriptorRequest): Promise<GetQueryServicesDescriptorResponse>;
GetTxDescriptor(request: GetTxDescriptorRequest): Promise<GetTxDescriptorResponse>;
export interface ReflectionServiceClient extends Client {
/**
* GetAuthnDescriptor returns information on how to authenticate transactions in the application
* NOTE: this RPC is still experimental and might be subject to breaking changes or removal in
* future releases of the cosmos-sdk.
*/
getAuthnDescriptor(request: GetAuthnDescriptorRequest, callback: (error: ServiceError | null, response: GetAuthnDescriptorResponse) => void): ClientUnaryCall;
getAuthnDescriptor(request: GetAuthnDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetAuthnDescriptorResponse) => void): ClientUnaryCall;
getAuthnDescriptor(request: GetAuthnDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAuthnDescriptorResponse) => void): ClientUnaryCall;
/** GetChainDescriptor returns the description of the chain */
getChainDescriptor(request: GetChainDescriptorRequest, callback: (error: ServiceError | null, response: GetChainDescriptorResponse) => void): ClientUnaryCall;
getChainDescriptor(request: GetChainDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetChainDescriptorResponse) => void): ClientUnaryCall;
getChainDescriptor(request: GetChainDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetChainDescriptorResponse) => void): ClientUnaryCall;
/** GetCodecDescriptor returns the descriptor of the codec of the application */
getCodecDescriptor(request: GetCodecDescriptorRequest, callback: (error: ServiceError | null, response: GetCodecDescriptorResponse) => void): ClientUnaryCall;
getCodecDescriptor(request: GetCodecDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetCodecDescriptorResponse) => void): ClientUnaryCall;
getCodecDescriptor(request: GetCodecDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCodecDescriptorResponse) => void): ClientUnaryCall;
/** GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application */
getConfigurationDescriptor(request: GetConfigurationDescriptorRequest, callback: (error: ServiceError | null, response: GetConfigurationDescriptorResponse) => void): ClientUnaryCall;
getConfigurationDescriptor(request: GetConfigurationDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetConfigurationDescriptorResponse) => void): ClientUnaryCall;
getConfigurationDescriptor(request: GetConfigurationDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetConfigurationDescriptorResponse) => void): ClientUnaryCall;
/** GetQueryServicesDescriptor returns the available gRPC queryable services of the application */
getQueryServicesDescriptor(request: GetQueryServicesDescriptorRequest, callback: (error: ServiceError | null, response: GetQueryServicesDescriptorResponse) => void): ClientUnaryCall;
getQueryServicesDescriptor(request: GetQueryServicesDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetQueryServicesDescriptorResponse) => void): ClientUnaryCall;
getQueryServicesDescriptor(request: GetQueryServicesDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetQueryServicesDescriptorResponse) => void): ClientUnaryCall;
/** GetTxDescriptor returns information on the used transaction object and available msgs that can be used */
getTxDescriptor(request: GetTxDescriptorRequest, callback: (error: ServiceError | null, response: GetTxDescriptorResponse) => void): ClientUnaryCall;
getTxDescriptor(request: GetTxDescriptorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetTxDescriptorResponse) => void): ClientUnaryCall;
getTxDescriptor(request: GetTxDescriptorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTxDescriptorResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ReflectionServiceClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ReflectionServiceClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -412,0 +498,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -199,29 +201,105 @@ import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination";

/** Service defines the gRPC querier service for tendermint queries. */
export interface Service {
export declare const ServiceService: {
/** GetNodeInfo queries the current node info. */
GetNodeInfo(request: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
readonly getNodeInfo: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetNodeInfoRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetNodeInfoRequest;
readonly responseSerialize: (value: GetNodeInfoResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetNodeInfoResponse;
};
/** GetSyncing queries node syncing. */
GetSyncing(request: GetSyncingRequest): Promise<GetSyncingResponse>;
readonly getSyncing: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetSyncing";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetSyncingRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetSyncingRequest;
readonly responseSerialize: (value: GetSyncingResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetSyncingResponse;
};
/** GetLatestBlock returns the latest block. */
GetLatestBlock(request: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
readonly getLatestBlock: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetLatestBlockRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetLatestBlockRequest;
readonly responseSerialize: (value: GetLatestBlockResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetLatestBlockResponse;
};
/** GetBlockByHeight queries block for given height. */
GetBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
readonly getBlockByHeight: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetBlockByHeightRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetBlockByHeightRequest;
readonly responseSerialize: (value: GetBlockByHeightResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetBlockByHeightResponse;
};
/** GetLatestValidatorSet queries latest validator-set. */
GetLatestValidatorSet(request: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
readonly getLatestValidatorSet: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetLatestValidatorSetRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetLatestValidatorSetRequest;
readonly responseSerialize: (value: GetLatestValidatorSetResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetLatestValidatorSetResponse;
};
/** GetValidatorSetByHeight queries validator-set at a given height. */
GetValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
readonly getValidatorSetByHeight: {
readonly path: "/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetValidatorSetByHeightRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetValidatorSetByHeightRequest;
readonly responseSerialize: (value: GetValidatorSetByHeightResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetValidatorSetByHeightResponse;
};
};
export interface ServiceServer extends UntypedServiceImplementation {
/** GetNodeInfo queries the current node info. */
getNodeInfo: handleUnaryCall<GetNodeInfoRequest, GetNodeInfoResponse>;
/** GetSyncing queries node syncing. */
getSyncing: handleUnaryCall<GetSyncingRequest, GetSyncingResponse>;
/** GetLatestBlock returns the latest block. */
getLatestBlock: handleUnaryCall<GetLatestBlockRequest, GetLatestBlockResponse>;
/** GetBlockByHeight queries block for given height. */
getBlockByHeight: handleUnaryCall<GetBlockByHeightRequest, GetBlockByHeightResponse>;
/** GetLatestValidatorSet queries latest validator-set. */
getLatestValidatorSet: handleUnaryCall<GetLatestValidatorSetRequest, GetLatestValidatorSetResponse>;
/** GetValidatorSetByHeight queries validator-set at a given height. */
getValidatorSetByHeight: handleUnaryCall<GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse>;
}
export declare class ServiceClientImpl implements Service {
private readonly rpc;
constructor(rpc: Rpc);
GetNodeInfo(request: GetNodeInfoRequest): Promise<GetNodeInfoResponse>;
GetSyncing(request: GetSyncingRequest): Promise<GetSyncingResponse>;
GetLatestBlock(request: GetLatestBlockRequest): Promise<GetLatestBlockResponse>;
GetBlockByHeight(request: GetBlockByHeightRequest): Promise<GetBlockByHeightResponse>;
GetLatestValidatorSet(request: GetLatestValidatorSetRequest): Promise<GetLatestValidatorSetResponse>;
GetValidatorSetByHeight(request: GetValidatorSetByHeightRequest): Promise<GetValidatorSetByHeightResponse>;
export interface ServiceClient extends Client {
/** GetNodeInfo queries the current node info. */
getNodeInfo(request: GetNodeInfoRequest, callback: (error: ServiceError | null, response: GetNodeInfoResponse) => void): ClientUnaryCall;
getNodeInfo(request: GetNodeInfoRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetNodeInfoResponse) => void): ClientUnaryCall;
getNodeInfo(request: GetNodeInfoRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetNodeInfoResponse) => void): ClientUnaryCall;
/** GetSyncing queries node syncing. */
getSyncing(request: GetSyncingRequest, callback: (error: ServiceError | null, response: GetSyncingResponse) => void): ClientUnaryCall;
getSyncing(request: GetSyncingRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetSyncingResponse) => void): ClientUnaryCall;
getSyncing(request: GetSyncingRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetSyncingResponse) => void): ClientUnaryCall;
/** GetLatestBlock returns the latest block. */
getLatestBlock(request: GetLatestBlockRequest, callback: (error: ServiceError | null, response: GetLatestBlockResponse) => void): ClientUnaryCall;
getLatestBlock(request: GetLatestBlockRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetLatestBlockResponse) => void): ClientUnaryCall;
getLatestBlock(request: GetLatestBlockRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLatestBlockResponse) => void): ClientUnaryCall;
/** GetBlockByHeight queries block for given height. */
getBlockByHeight(request: GetBlockByHeightRequest, callback: (error: ServiceError | null, response: GetBlockByHeightResponse) => void): ClientUnaryCall;
getBlockByHeight(request: GetBlockByHeightRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetBlockByHeightResponse) => void): ClientUnaryCall;
getBlockByHeight(request: GetBlockByHeightRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetBlockByHeightResponse) => void): ClientUnaryCall;
/** GetLatestValidatorSet queries latest validator-set. */
getLatestValidatorSet(request: GetLatestValidatorSetRequest, callback: (error: ServiceError | null, response: GetLatestValidatorSetResponse) => void): ClientUnaryCall;
getLatestValidatorSet(request: GetLatestValidatorSetRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetLatestValidatorSetResponse) => void): ClientUnaryCall;
getLatestValidatorSet(request: GetLatestValidatorSetRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetLatestValidatorSetResponse) => void): ClientUnaryCall;
/** GetValidatorSetByHeight queries validator-set at a given height. */
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest, callback: (error: ServiceError | null, response: GetValidatorSetByHeightResponse) => void): ClientUnaryCall;
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetValidatorSetByHeightResponse) => void): ClientUnaryCall;
getValidatorSetByHeight(request: GetValidatorSetByHeightRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetValidatorSetByHeightResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ServiceClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ServiceClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -228,0 +306,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceClientImpl = exports.Module = exports.VersionInfo = exports.GetNodeInfoResponse = exports.GetNodeInfoRequest = exports.GetSyncingResponse = exports.GetSyncingRequest = exports.GetLatestBlockResponse = exports.GetLatestBlockRequest = exports.GetBlockByHeightResponse = exports.GetBlockByHeightRequest = exports.Validator = exports.GetLatestValidatorSetResponse = exports.GetLatestValidatorSetRequest = exports.GetValidatorSetByHeightResponse = exports.GetValidatorSetByHeightRequest = exports.protobufPackage = void 0;
exports.ServiceClient = exports.ServiceService = exports.Module = exports.VersionInfo = exports.GetNodeInfoResponse = exports.GetNodeInfoRequest = exports.GetSyncingResponse = exports.GetSyncingRequest = exports.GetLatestBlockResponse = exports.GetLatestBlockRequest = exports.GetBlockByHeightResponse = exports.GetBlockByHeightRequest = exports.Validator = exports.GetLatestValidatorSetResponse = exports.GetLatestValidatorSetRequest = exports.GetValidatorSetByHeightResponse = exports.GetValidatorSetByHeightRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -1144,44 +1145,66 @@ const pagination_1 = require("../../../../cosmos/base/query/v1beta1/pagination");

};
class ServiceClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.GetNodeInfo = this.GetNodeInfo.bind(this);
this.GetSyncing = this.GetSyncing.bind(this);
this.GetLatestBlock = this.GetLatestBlock.bind(this);
this.GetBlockByHeight = this.GetBlockByHeight.bind(this);
this.GetLatestValidatorSet = this.GetLatestValidatorSet.bind(this);
this.GetValidatorSetByHeight = this.GetValidatorSetByHeight.bind(this);
}
GetNodeInfo(request) {
const data = exports.GetNodeInfoRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetNodeInfo", data);
return promise.then((data) => exports.GetNodeInfoResponse.decode(new minimal_1.default.Reader(data)));
}
GetSyncing(request) {
const data = exports.GetSyncingRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetSyncing", data);
return promise.then((data) => exports.GetSyncingResponse.decode(new minimal_1.default.Reader(data)));
}
GetLatestBlock(request) {
const data = exports.GetLatestBlockRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestBlock", data);
return promise.then((data) => exports.GetLatestBlockResponse.decode(new minimal_1.default.Reader(data)));
}
GetBlockByHeight(request) {
const data = exports.GetBlockByHeightRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetBlockByHeight", data);
return promise.then((data) => exports.GetBlockByHeightResponse.decode(new minimal_1.default.Reader(data)));
}
GetLatestValidatorSet(request) {
const data = exports.GetLatestValidatorSetRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetLatestValidatorSet", data);
return promise.then((data) => exports.GetLatestValidatorSetResponse.decode(new minimal_1.default.Reader(data)));
}
GetValidatorSetByHeight(request) {
const data = exports.GetValidatorSetByHeightRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.base.tendermint.v1beta1.Service", "GetValidatorSetByHeight", data);
return promise.then((data) => exports.GetValidatorSetByHeightResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.ServiceClientImpl = ServiceClientImpl;
/** Service defines the gRPC querier service for tendermint queries. */
exports.ServiceService = {
/** GetNodeInfo queries the current node info. */
getNodeInfo: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetNodeInfo",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetNodeInfoRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetNodeInfoRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetNodeInfoResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetNodeInfoResponse.decode(value),
},
/** GetSyncing queries node syncing. */
getSyncing: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetSyncing",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetSyncingRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetSyncingRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetSyncingResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetSyncingResponse.decode(value),
},
/** GetLatestBlock returns the latest block. */
getLatestBlock: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetLatestBlock",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetLatestBlockRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetLatestBlockRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetLatestBlockResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetLatestBlockResponse.decode(value),
},
/** GetBlockByHeight queries block for given height. */
getBlockByHeight: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetBlockByHeight",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetBlockByHeightRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetBlockByHeightRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetBlockByHeightResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetBlockByHeightResponse.decode(value),
},
/** GetLatestValidatorSet queries latest validator-set. */
getLatestValidatorSet: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetLatestValidatorSet",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetLatestValidatorSetRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetLatestValidatorSetRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetLatestValidatorSetResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetLatestValidatorSetResponse.decode(value),
},
/** GetValidatorSetByHeight queries validator-set at a given height. */
getValidatorSetByHeight: {
path: "/cosmos.base.tendermint.v1beta1.Service/GetValidatorSetByHeight",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetValidatorSetByHeightRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetValidatorSetByHeightRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetValidatorSetByHeightResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetValidatorSetByHeightResponse.decode(value),
},
};
exports.ServiceClient = grpc_js_1.makeGenericClientConstructor(exports.ServiceService, "cosmos.base.tendermint.v1beta1.Service");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -1188,0 +1211,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -28,14 +30,25 @@ export declare const protobufPackage = "cosmos.crisis.v1beta1";

/** Msg defines the bank Msg service. */
export interface Msg {
export declare const MsgService: {
/** VerifyInvariant defines a method to verify a particular invariance. */
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
readonly verifyInvariant: {
readonly path: "/cosmos.crisis.v1beta1.Msg/VerifyInvariant";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgVerifyInvariant) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgVerifyInvariant;
readonly responseSerialize: (value: MsgVerifyInvariantResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgVerifyInvariantResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** VerifyInvariant defines a method to verify a particular invariance. */
verifyInvariant: handleUnaryCall<MsgVerifyInvariant, MsgVerifyInvariantResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
VerifyInvariant(request: MsgVerifyInvariant): Promise<MsgVerifyInvariantResponse>;
export interface MsgClient extends Client {
/** VerifyInvariant defines a method to verify a particular invariance. */
verifyInvariant(request: MsgVerifyInvariant, callback: (error: ServiceError | null, response: MsgVerifyInvariantResponse) => void): ClientUnaryCall;
verifyInvariant(request: MsgVerifyInvariant, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgVerifyInvariantResponse) => void): ClientUnaryCall;
verifyInvariant(request: MsgVerifyInvariant, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgVerifyInvariantResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -42,0 +55,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgVerifyInvariantResponse = exports.MsgVerifyInvariant = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgVerifyInvariantResponse = exports.MsgVerifyInvariant = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -133,14 +134,16 @@ exports.protobufPackage = "cosmos.crisis.v1beta1";

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.VerifyInvariant = this.VerifyInvariant.bind(this);
}
VerifyInvariant(request) {
const data = exports.MsgVerifyInvariant.encode(request).finish();
const promise = this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", data);
return promise.then((data) => exports.MsgVerifyInvariantResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the bank Msg service. */
exports.MsgService = {
/** VerifyInvariant defines a method to verify a particular invariance. */
verifyInvariant: {
path: "/cosmos.crisis.v1beta1.Msg/VerifyInvariant",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgVerifyInvariant.encode(value).finish()),
requestDeserialize: (value) => exports.MsgVerifyInvariant.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgVerifyInvariantResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgVerifyInvariantResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.crisis.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -147,0 +150,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -279,13 +281,53 @@ import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "../../../cosmos/distribution/v1beta1/distribution";

/** Query defines the gRPC querier service for distribution module. */
export interface Query {
export declare const QueryService: {
/** Params queries params of the distribution module. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.distribution.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
/** ValidatorOutstandingRewards queries rewards of a validator address. */
ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
readonly validatorOutstandingRewards: {
readonly path: "/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorOutstandingRewardsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorOutstandingRewardsRequest;
readonly responseSerialize: (value: QueryValidatorOutstandingRewardsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorOutstandingRewardsResponse;
};
/** ValidatorCommission queries accumulated commission for a validator. */
ValidatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
readonly validatorCommission: {
readonly path: "/cosmos.distribution.v1beta1.Query/ValidatorCommission";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorCommissionRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorCommissionRequest;
readonly responseSerialize: (value: QueryValidatorCommissionResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorCommissionResponse;
};
/** ValidatorSlashes queries slash events of a validator. */
ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
readonly validatorSlashes: {
readonly path: "/cosmos.distribution.v1beta1.Query/ValidatorSlashes";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorSlashesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorSlashesRequest;
readonly responseSerialize: (value: QueryValidatorSlashesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorSlashesResponse;
};
/** DelegationRewards queries the total rewards accrued by a delegation. */
DelegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
readonly delegationRewards: {
readonly path: "/cosmos.distribution.v1beta1.Query/DelegationRewards";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegationRewardsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegationRewardsRequest;
readonly responseSerialize: (value: QueryDelegationRewardsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegationRewardsResponse;
};
/**

@@ -295,26 +337,107 @@ * DelegationTotalRewards queries the total rewards accrued by a each

*/
DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
readonly delegationTotalRewards: {
readonly path: "/cosmos.distribution.v1beta1.Query/DelegationTotalRewards";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegationTotalRewardsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegationTotalRewardsRequest;
readonly responseSerialize: (value: QueryDelegationTotalRewardsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegationTotalRewardsResponse;
};
/** DelegatorValidators queries the validators of a delegator. */
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
readonly delegatorValidators: {
readonly path: "/cosmos.distribution.v1beta1.Query/DelegatorValidators";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorValidatorsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorValidatorsRequest;
readonly responseSerialize: (value: QueryDelegatorValidatorsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorValidatorsResponse;
};
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
readonly delegatorWithdrawAddress: {
readonly path: "/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorWithdrawAddressRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorWithdrawAddressRequest;
readonly responseSerialize: (value: QueryDelegatorWithdrawAddressResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorWithdrawAddressResponse;
};
/** CommunityPool queries the community pool coins. */
CommunityPool(request: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
readonly communityPool: {
readonly path: "/cosmos.distribution.v1beta1.Query/CommunityPool";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryCommunityPoolRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryCommunityPoolRequest;
readonly responseSerialize: (value: QueryCommunityPoolResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryCommunityPoolResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Params queries params of the distribution module. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
/** ValidatorOutstandingRewards queries rewards of a validator address. */
validatorOutstandingRewards: handleUnaryCall<QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse>;
/** ValidatorCommission queries accumulated commission for a validator. */
validatorCommission: handleUnaryCall<QueryValidatorCommissionRequest, QueryValidatorCommissionResponse>;
/** ValidatorSlashes queries slash events of a validator. */
validatorSlashes: handleUnaryCall<QueryValidatorSlashesRequest, QueryValidatorSlashesResponse>;
/** DelegationRewards queries the total rewards accrued by a delegation. */
delegationRewards: handleUnaryCall<QueryDelegationRewardsRequest, QueryDelegationRewardsResponse>;
/**
* DelegationTotalRewards queries the total rewards accrued by a each
* validator.
*/
delegationTotalRewards: handleUnaryCall<QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse>;
/** DelegatorValidators queries the validators of a delegator. */
delegatorValidators: handleUnaryCall<QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse>;
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
delegatorWithdrawAddress: handleUnaryCall<QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse>;
/** CommunityPool queries the community pool coins. */
communityPool: handleUnaryCall<QueryCommunityPoolRequest, QueryCommunityPoolResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise<QueryValidatorOutstandingRewardsResponse>;
ValidatorCommission(request: QueryValidatorCommissionRequest): Promise<QueryValidatorCommissionResponse>;
ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise<QueryValidatorSlashesResponse>;
DelegationRewards(request: QueryDelegationRewardsRequest): Promise<QueryDelegationRewardsResponse>;
DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise<QueryDelegationTotalRewardsResponse>;
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise<QueryDelegatorWithdrawAddressResponse>;
CommunityPool(request: QueryCommunityPoolRequest): Promise<QueryCommunityPoolResponse>;
export interface QueryClient extends Client {
/** Params queries params of the distribution module. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
/** ValidatorOutstandingRewards queries rewards of a validator address. */
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest, callback: (error: ServiceError | null, response: QueryValidatorOutstandingRewardsResponse) => void): ClientUnaryCall;
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorOutstandingRewardsResponse) => void): ClientUnaryCall;
validatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorOutstandingRewardsResponse) => void): ClientUnaryCall;
/** ValidatorCommission queries accumulated commission for a validator. */
validatorCommission(request: QueryValidatorCommissionRequest, callback: (error: ServiceError | null, response: QueryValidatorCommissionResponse) => void): ClientUnaryCall;
validatorCommission(request: QueryValidatorCommissionRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorCommissionResponse) => void): ClientUnaryCall;
validatorCommission(request: QueryValidatorCommissionRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorCommissionResponse) => void): ClientUnaryCall;
/** ValidatorSlashes queries slash events of a validator. */
validatorSlashes(request: QueryValidatorSlashesRequest, callback: (error: ServiceError | null, response: QueryValidatorSlashesResponse) => void): ClientUnaryCall;
validatorSlashes(request: QueryValidatorSlashesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorSlashesResponse) => void): ClientUnaryCall;
validatorSlashes(request: QueryValidatorSlashesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorSlashesResponse) => void): ClientUnaryCall;
/** DelegationRewards queries the total rewards accrued by a delegation. */
delegationRewards(request: QueryDelegationRewardsRequest, callback: (error: ServiceError | null, response: QueryDelegationRewardsResponse) => void): ClientUnaryCall;
delegationRewards(request: QueryDelegationRewardsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegationRewardsResponse) => void): ClientUnaryCall;
delegationRewards(request: QueryDelegationRewardsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegationRewardsResponse) => void): ClientUnaryCall;
/**
* DelegationTotalRewards queries the total rewards accrued by a each
* validator.
*/
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest, callback: (error: ServiceError | null, response: QueryDelegationTotalRewardsResponse) => void): ClientUnaryCall;
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegationTotalRewardsResponse) => void): ClientUnaryCall;
delegationTotalRewards(request: QueryDelegationTotalRewardsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegationTotalRewardsResponse) => void): ClientUnaryCall;
/** DelegatorValidators queries the validators of a delegator. */
delegatorValidators(request: QueryDelegatorValidatorsRequest, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
delegatorValidators(request: QueryDelegatorValidatorsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
delegatorValidators(request: QueryDelegatorValidatorsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest, callback: (error: ServiceError | null, response: QueryDelegatorWithdrawAddressResponse) => void): ClientUnaryCall;
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorWithdrawAddressResponse) => void): ClientUnaryCall;
delegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorWithdrawAddressResponse) => void): ClientUnaryCall;
/** CommunityPool queries the community pool coins. */
communityPool(request: QueryCommunityPoolRequest, callback: (error: ServiceError | null, response: QueryCommunityPoolResponse) => void): ClientUnaryCall;
communityPool(request: QueryCommunityPoolRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryCommunityPoolResponse) => void): ClientUnaryCall;
communityPool(request: QueryCommunityPoolRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryCommunityPoolResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -321,0 +444,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryCommunityPoolResponse = exports.QueryCommunityPoolRequest = exports.QueryDelegatorWithdrawAddressResponse = exports.QueryDelegatorWithdrawAddressRequest = exports.QueryDelegatorValidatorsResponse = exports.QueryDelegatorValidatorsRequest = exports.QueryDelegationTotalRewardsResponse = exports.QueryDelegationTotalRewardsRequest = exports.QueryDelegationRewardsResponse = exports.QueryDelegationRewardsRequest = exports.QueryValidatorSlashesResponse = exports.QueryValidatorSlashesRequest = exports.QueryValidatorCommissionResponse = exports.QueryValidatorCommissionRequest = exports.QueryValidatorOutstandingRewardsResponse = exports.QueryValidatorOutstandingRewardsRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -1057,62 +1058,99 @@ const distribution_1 = require("../../../cosmos/distribution/v1beta1/distribution");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Params = this.Params.bind(this);
this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
this.ValidatorCommission = this.ValidatorCommission.bind(this);
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
this.DelegationRewards = this.DelegationRewards.bind(this);
this.DelegationTotalRewards = this.DelegationTotalRewards.bind(this);
this.DelegatorValidators = this.DelegatorValidators.bind(this);
this.DelegatorWithdrawAddress = this.DelegatorWithdrawAddress.bind(this);
this.CommunityPool = this.CommunityPool.bind(this);
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
ValidatorOutstandingRewards(request) {
const data = exports.QueryValidatorOutstandingRewardsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorOutstandingRewards", data);
return promise.then((data) => exports.QueryValidatorOutstandingRewardsResponse.decode(new minimal_1.default.Reader(data)));
}
ValidatorCommission(request) {
const data = exports.QueryValidatorCommissionRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorCommission", data);
return promise.then((data) => exports.QueryValidatorCommissionResponse.decode(new minimal_1.default.Reader(data)));
}
ValidatorSlashes(request) {
const data = exports.QueryValidatorSlashesRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorSlashes", data);
return promise.then((data) => exports.QueryValidatorSlashesResponse.decode(new minimal_1.default.Reader(data)));
}
DelegationRewards(request) {
const data = exports.QueryDelegationRewardsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationRewards", data);
return promise.then((data) => exports.QueryDelegationRewardsResponse.decode(new minimal_1.default.Reader(data)));
}
DelegationTotalRewards(request) {
const data = exports.QueryDelegationTotalRewardsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegationTotalRewards", data);
return promise.then((data) => exports.QueryDelegationTotalRewardsResponse.decode(new minimal_1.default.Reader(data)));
}
DelegatorValidators(request) {
const data = exports.QueryDelegatorValidatorsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorValidators", data);
return promise.then((data) => exports.QueryDelegatorValidatorsResponse.decode(new minimal_1.default.Reader(data)));
}
DelegatorWithdrawAddress(request) {
const data = exports.QueryDelegatorWithdrawAddressRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "DelegatorWithdrawAddress", data);
return promise.then((data) => exports.QueryDelegatorWithdrawAddressResponse.decode(new minimal_1.default.Reader(data)));
}
CommunityPool(request) {
const data = exports.QueryCommunityPoolRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "CommunityPool", data);
return promise.then((data) => exports.QueryCommunityPoolResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service for distribution module. */
exports.QueryService = {
/** Params queries params of the distribution module. */
params: {
path: "/cosmos.distribution.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
/** ValidatorOutstandingRewards queries rewards of a validator address. */
validatorOutstandingRewards: {
path: "/cosmos.distribution.v1beta1.Query/ValidatorOutstandingRewards",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryValidatorOutstandingRewardsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryValidatorOutstandingRewardsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryValidatorOutstandingRewardsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryValidatorOutstandingRewardsResponse.decode(value),
},
/** ValidatorCommission queries accumulated commission for a validator. */
validatorCommission: {
path: "/cosmos.distribution.v1beta1.Query/ValidatorCommission",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryValidatorCommissionRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryValidatorCommissionRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryValidatorCommissionResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryValidatorCommissionResponse.decode(value),
},
/** ValidatorSlashes queries slash events of a validator. */
validatorSlashes: {
path: "/cosmos.distribution.v1beta1.Query/ValidatorSlashes",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryValidatorSlashesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryValidatorSlashesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryValidatorSlashesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryValidatorSlashesResponse.decode(value),
},
/** DelegationRewards queries the total rewards accrued by a delegation. */
delegationRewards: {
path: "/cosmos.distribution.v1beta1.Query/DelegationRewards",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDelegationRewardsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDelegationRewardsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDelegationRewardsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDelegationRewardsResponse.decode(value),
},
/**
* DelegationTotalRewards queries the total rewards accrued by a each
* validator.
*/
delegationTotalRewards: {
path: "/cosmos.distribution.v1beta1.Query/DelegationTotalRewards",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDelegationTotalRewardsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDelegationTotalRewardsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDelegationTotalRewardsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDelegationTotalRewardsResponse.decode(value),
},
/** DelegatorValidators queries the validators of a delegator. */
delegatorValidators: {
path: "/cosmos.distribution.v1beta1.Query/DelegatorValidators",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDelegatorValidatorsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDelegatorValidatorsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDelegatorValidatorsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDelegatorValidatorsResponse.decode(value),
},
/** DelegatorWithdrawAddress queries withdraw address of a delegator. */
delegatorWithdrawAddress: {
path: "/cosmos.distribution.v1beta1.Query/DelegatorWithdrawAddress",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDelegatorWithdrawAddressRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDelegatorWithdrawAddressRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDelegatorWithdrawAddressResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDelegatorWithdrawAddressResponse.decode(value),
},
/** CommunityPool queries the community pool coins. */
communityPool: {
path: "/cosmos.distribution.v1beta1.Query/CommunityPool",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryCommunityPoolRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryCommunityPoolRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryCommunityPoolResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryCommunityPoolResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.distribution.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -1119,0 +1157,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -105,3 +107,3 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Msg defines the distribution Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -111,3 +113,11 @@ * SetWithdrawAddress defines a method to change the withdraw address

*/
SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
readonly setWithdrawAddress: {
readonly path: "/cosmos.distribution.v1beta1.Msg/SetWithdrawAddress";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSetWithdrawAddress) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSetWithdrawAddress;
readonly responseSerialize: (value: MsgSetWithdrawAddressResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSetWithdrawAddressResponse;
};
/**

@@ -117,3 +127,11 @@ * WithdrawDelegatorReward defines a method to withdraw rewards of delegator

*/
WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
readonly withdrawDelegatorReward: {
readonly path: "/cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgWithdrawDelegatorReward) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgWithdrawDelegatorReward;
readonly responseSerialize: (value: MsgWithdrawDelegatorRewardResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgWithdrawDelegatorRewardResponse;
};
/**

@@ -123,3 +141,11 @@ * WithdrawValidatorCommission defines a method to withdraw the

*/
WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
readonly withdrawValidatorCommission: {
readonly path: "/cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgWithdrawValidatorCommission) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgWithdrawValidatorCommission;
readonly responseSerialize: (value: MsgWithdrawValidatorCommissionResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgWithdrawValidatorCommissionResponse;
};
/**

@@ -129,15 +155,65 @@ * FundCommunityPool defines a method to allow an account to directly

*/
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
readonly fundCommunityPool: {
readonly path: "/cosmos.distribution.v1beta1.Msg/FundCommunityPool";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgFundCommunityPool) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgFundCommunityPool;
readonly responseSerialize: (value: MsgFundCommunityPoolResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgFundCommunityPoolResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* SetWithdrawAddress defines a method to change the withdraw address
* for a delegator (or validator self-delegation).
*/
setWithdrawAddress: handleUnaryCall<MsgSetWithdrawAddress, MsgSetWithdrawAddressResponse>;
/**
* WithdrawDelegatorReward defines a method to withdraw rewards of delegator
* from a single validator.
*/
withdrawDelegatorReward: handleUnaryCall<MsgWithdrawDelegatorReward, MsgWithdrawDelegatorRewardResponse>;
/**
* WithdrawValidatorCommission defines a method to withdraw the
* full commission to the validator address.
*/
withdrawValidatorCommission: handleUnaryCall<MsgWithdrawValidatorCommission, MsgWithdrawValidatorCommissionResponse>;
/**
* FundCommunityPool defines a method to allow an account to directly
* fund the community pool.
*/
fundCommunityPool: handleUnaryCall<MsgFundCommunityPool, MsgFundCommunityPoolResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse>;
WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise<MsgWithdrawDelegatorRewardResponse>;
WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise<MsgWithdrawValidatorCommissionResponse>;
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
export interface MsgClient extends Client {
/**
* SetWithdrawAddress defines a method to change the withdraw address
* for a delegator (or validator self-delegation).
*/
setWithdrawAddress(request: MsgSetWithdrawAddress, callback: (error: ServiceError | null, response: MsgSetWithdrawAddressResponse) => void): ClientUnaryCall;
setWithdrawAddress(request: MsgSetWithdrawAddress, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgSetWithdrawAddressResponse) => void): ClientUnaryCall;
setWithdrawAddress(request: MsgSetWithdrawAddress, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSetWithdrawAddressResponse) => void): ClientUnaryCall;
/**
* WithdrawDelegatorReward defines a method to withdraw rewards of delegator
* from a single validator.
*/
withdrawDelegatorReward(request: MsgWithdrawDelegatorReward, callback: (error: ServiceError | null, response: MsgWithdrawDelegatorRewardResponse) => void): ClientUnaryCall;
withdrawDelegatorReward(request: MsgWithdrawDelegatorReward, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgWithdrawDelegatorRewardResponse) => void): ClientUnaryCall;
withdrawDelegatorReward(request: MsgWithdrawDelegatorReward, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgWithdrawDelegatorRewardResponse) => void): ClientUnaryCall;
/**
* WithdrawValidatorCommission defines a method to withdraw the
* full commission to the validator address.
*/
withdrawValidatorCommission(request: MsgWithdrawValidatorCommission, callback: (error: ServiceError | null, response: MsgWithdrawValidatorCommissionResponse) => void): ClientUnaryCall;
withdrawValidatorCommission(request: MsgWithdrawValidatorCommission, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgWithdrawValidatorCommissionResponse) => void): ClientUnaryCall;
withdrawValidatorCommission(request: MsgWithdrawValidatorCommission, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgWithdrawValidatorCommissionResponse) => void): ClientUnaryCall;
/**
* FundCommunityPool defines a method to allow an account to directly
* fund the community pool.
*/
fundCommunityPool(request: MsgFundCommunityPool, callback: (error: ServiceError | null, response: MsgFundCommunityPoolResponse) => void): ClientUnaryCall;
fundCommunityPool(request: MsgFundCommunityPool, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgFundCommunityPoolResponse) => void): ClientUnaryCall;
fundCommunityPool(request: MsgFundCommunityPool, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgFundCommunityPoolResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -144,0 +220,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgFundCommunityPoolResponse = exports.MsgFundCommunityPool = exports.MsgWithdrawValidatorCommissionResponse = exports.MsgWithdrawValidatorCommission = exports.MsgWithdrawDelegatorRewardResponse = exports.MsgWithdrawDelegatorReward = exports.MsgSetWithdrawAddressResponse = exports.MsgSetWithdrawAddress = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -408,32 +409,58 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.SetWithdrawAddress = this.SetWithdrawAddress.bind(this);
this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this);
this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this);
this.FundCommunityPool = this.FundCommunityPool.bind(this);
}
SetWithdrawAddress(request) {
const data = exports.MsgSetWithdrawAddress.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetWithdrawAddress", data);
return promise.then((data) => exports.MsgSetWithdrawAddressResponse.decode(new minimal_1.default.Reader(data)));
}
WithdrawDelegatorReward(request) {
const data = exports.MsgWithdrawDelegatorReward.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawDelegatorReward", data);
return promise.then((data) => exports.MsgWithdrawDelegatorRewardResponse.decode(new minimal_1.default.Reader(data)));
}
WithdrawValidatorCommission(request) {
const data = exports.MsgWithdrawValidatorCommission.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "WithdrawValidatorCommission", data);
return promise.then((data) => exports.MsgWithdrawValidatorCommissionResponse.decode(new minimal_1.default.Reader(data)));
}
FundCommunityPool(request) {
const data = exports.MsgFundCommunityPool.encode(request).finish();
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data);
return promise.then((data) => exports.MsgFundCommunityPoolResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the distribution Msg service. */
exports.MsgService = {
/**
* SetWithdrawAddress defines a method to change the withdraw address
* for a delegator (or validator self-delegation).
*/
setWithdrawAddress: {
path: "/cosmos.distribution.v1beta1.Msg/SetWithdrawAddress",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSetWithdrawAddress.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSetWithdrawAddress.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSetWithdrawAddressResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSetWithdrawAddressResponse.decode(value),
},
/**
* WithdrawDelegatorReward defines a method to withdraw rewards of delegator
* from a single validator.
*/
withdrawDelegatorReward: {
path: "/cosmos.distribution.v1beta1.Msg/WithdrawDelegatorReward",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgWithdrawDelegatorReward.encode(value).finish()),
requestDeserialize: (value) => exports.MsgWithdrawDelegatorReward.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgWithdrawDelegatorRewardResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgWithdrawDelegatorRewardResponse.decode(value),
},
/**
* WithdrawValidatorCommission defines a method to withdraw the
* full commission to the validator address.
*/
withdrawValidatorCommission: {
path: "/cosmos.distribution.v1beta1.Msg/WithdrawValidatorCommission",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgWithdrawValidatorCommission.encode(value).finish()),
requestDeserialize: (value) => exports.MsgWithdrawValidatorCommission.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgWithdrawValidatorCommissionResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgWithdrawValidatorCommissionResponse.decode(value),
},
/**
* FundCommunityPool defines a method to allow an account to directly
* fund the community pool.
*/
fundCommunityPool: {
path: "/cosmos.distribution.v1beta1.Msg/FundCommunityPool",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgFundCommunityPool.encode(value).finish()),
requestDeserialize: (value) => exports.MsgFundCommunityPool.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgFundCommunityPoolResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgFundCommunityPoolResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.distribution.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -440,0 +467,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -63,17 +65,41 @@ import { Any } from "../../../google/protobuf/any";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Evidence queries evidence based on evidence hash. */
Evidence(request: QueryEvidenceRequest): Promise<QueryEvidenceResponse>;
readonly evidence: {
readonly path: "/cosmos.evidence.v1beta1.Query/Evidence";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryEvidenceRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryEvidenceRequest;
readonly responseSerialize: (value: QueryEvidenceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryEvidenceResponse;
};
/** AllEvidence queries all evidence. */
AllEvidence(request: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponse>;
readonly allEvidence: {
readonly path: "/cosmos.evidence.v1beta1.Query/AllEvidence";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAllEvidenceRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAllEvidenceRequest;
readonly responseSerialize: (value: QueryAllEvidenceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAllEvidenceResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Evidence queries evidence based on evidence hash. */
evidence: handleUnaryCall<QueryEvidenceRequest, QueryEvidenceResponse>;
/** AllEvidence queries all evidence. */
allEvidence: handleUnaryCall<QueryAllEvidenceRequest, QueryAllEvidenceResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Evidence(request: QueryEvidenceRequest): Promise<QueryEvidenceResponse>;
AllEvidence(request: QueryAllEvidenceRequest): Promise<QueryAllEvidenceResponse>;
export interface QueryClient extends Client {
/** Evidence queries evidence based on evidence hash. */
evidence(request: QueryEvidenceRequest, callback: (error: ServiceError | null, response: QueryEvidenceResponse) => void): ClientUnaryCall;
evidence(request: QueryEvidenceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryEvidenceResponse) => void): ClientUnaryCall;
evidence(request: QueryEvidenceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryEvidenceResponse) => void): ClientUnaryCall;
/** AllEvidence queries all evidence. */
allEvidence(request: QueryAllEvidenceRequest, callback: (error: ServiceError | null, response: QueryAllEvidenceResponse) => void): ClientUnaryCall;
allEvidence(request: QueryAllEvidenceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAllEvidenceResponse) => void): ClientUnaryCall;
allEvidence(request: QueryAllEvidenceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAllEvidenceResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -80,0 +106,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryAllEvidenceResponse = exports.QueryAllEvidenceRequest = exports.QueryEvidenceResponse = exports.QueryEvidenceRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryAllEvidenceResponse = exports.QueryAllEvidenceRequest = exports.QueryEvidenceResponse = exports.QueryEvidenceRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -246,20 +247,26 @@ const any_1 = require("../../../google/protobuf/any");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Evidence = this.Evidence.bind(this);
this.AllEvidence = this.AllEvidence.bind(this);
}
Evidence(request) {
const data = exports.QueryEvidenceRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.evidence.v1beta1.Query", "Evidence", data);
return promise.then((data) => exports.QueryEvidenceResponse.decode(new minimal_1.default.Reader(data)));
}
AllEvidence(request) {
const data = exports.QueryAllEvidenceRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.evidence.v1beta1.Query", "AllEvidence", data);
return promise.then((data) => exports.QueryAllEvidenceResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Evidence queries evidence based on evidence hash. */
evidence: {
path: "/cosmos.evidence.v1beta1.Query/Evidence",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryEvidenceRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryEvidenceRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryEvidenceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryEvidenceResponse.decode(value),
},
/** AllEvidence queries all evidence. */
allEvidence: {
path: "/cosmos.evidence.v1beta1.Query/AllEvidence",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAllEvidenceRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAllEvidenceRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAllEvidenceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAllEvidenceResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.evidence.v1beta1.Query");
var globalThis = (() => {

@@ -266,0 +273,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -33,3 +35,3 @@ import { Any } from "../../../google/protobuf/any";

/** Msg defines the evidence Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -39,12 +41,29 @@ * SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or

*/
SubmitEvidence(request: MsgSubmitEvidence): Promise<MsgSubmitEvidenceResponse>;
readonly submitEvidence: {
readonly path: "/cosmos.evidence.v1beta1.Msg/SubmitEvidence";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSubmitEvidence) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSubmitEvidence;
readonly responseSerialize: (value: MsgSubmitEvidenceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSubmitEvidenceResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
* counterfactual signing.
*/
submitEvidence: handleUnaryCall<MsgSubmitEvidence, MsgSubmitEvidenceResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
SubmitEvidence(request: MsgSubmitEvidence): Promise<MsgSubmitEvidenceResponse>;
export interface MsgClient extends Client {
/**
* SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
* counterfactual signing.
*/
submitEvidence(request: MsgSubmitEvidence, callback: (error: ServiceError | null, response: MsgSubmitEvidenceResponse) => void): ClientUnaryCall;
submitEvidence(request: MsgSubmitEvidence, metadata: Metadata, callback: (error: ServiceError | null, response: MsgSubmitEvidenceResponse) => void): ClientUnaryCall;
submitEvidence(request: MsgSubmitEvidence, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSubmitEvidenceResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -51,0 +70,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgSubmitEvidenceResponse = exports.MsgSubmitEvidence = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgSubmitEvidenceResponse = exports.MsgSubmitEvidence = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -135,14 +136,19 @@ const any_1 = require("../../../google/protobuf/any");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.SubmitEvidence = this.SubmitEvidence.bind(this);
}
SubmitEvidence(request) {
const data = exports.MsgSubmitEvidence.encode(request).finish();
const promise = this.rpc.request("cosmos.evidence.v1beta1.Msg", "SubmitEvidence", data);
return promise.then((data) => exports.MsgSubmitEvidenceResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the evidence Msg service. */
exports.MsgService = {
/**
* SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or
* counterfactual signing.
*/
submitEvidence: {
path: "/cosmos.evidence.v1beta1.Msg/SubmitEvidence",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSubmitEvidence.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSubmitEvidence.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSubmitEvidenceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSubmitEvidenceResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.evidence.v1beta1.Msg");
var globalThis = (() => {

@@ -149,0 +155,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -60,17 +62,41 @@ import { Grant } from "../../../cosmos/feegrant/v1beta1/feegrant";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Allowance returns fee granted to the grantee by the granter. */
Allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
readonly allowance: {
readonly path: "/cosmos.feegrant.v1beta1.Query/Allowance";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAllowanceRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAllowanceRequest;
readonly responseSerialize: (value: QueryAllowanceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAllowanceResponse;
};
/** Allowances returns all the grants for address. */
Allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
readonly allowances: {
readonly path: "/cosmos.feegrant.v1beta1.Query/Allowances";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAllowancesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAllowancesRequest;
readonly responseSerialize: (value: QueryAllowancesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAllowancesResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Allowance returns fee granted to the grantee by the granter. */
allowance: handleUnaryCall<QueryAllowanceRequest, QueryAllowanceResponse>;
/** Allowances returns all the grants for address. */
allowances: handleUnaryCall<QueryAllowancesRequest, QueryAllowancesResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Allowance(request: QueryAllowanceRequest): Promise<QueryAllowanceResponse>;
Allowances(request: QueryAllowancesRequest): Promise<QueryAllowancesResponse>;
export interface QueryClient extends Client {
/** Allowance returns fee granted to the grantee by the granter. */
allowance(request: QueryAllowanceRequest, callback: (error: ServiceError | null, response: QueryAllowanceResponse) => void): ClientUnaryCall;
allowance(request: QueryAllowanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAllowanceResponse) => void): ClientUnaryCall;
allowance(request: QueryAllowanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAllowanceResponse) => void): ClientUnaryCall;
/** Allowances returns all the grants for address. */
allowances(request: QueryAllowancesRequest, callback: (error: ServiceError | null, response: QueryAllowancesResponse) => void): ClientUnaryCall;
allowances(request: QueryAllowancesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAllowancesResponse) => void): ClientUnaryCall;
allowances(request: QueryAllowancesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAllowancesResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -77,0 +103,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryAllowancesResponse = exports.QueryAllowancesRequest = exports.QueryAllowanceResponse = exports.QueryAllowanceRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -284,20 +285,26 @@ const feegrant_1 = require("../../../cosmos/feegrant/v1beta1/feegrant");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Allowance = this.Allowance.bind(this);
this.Allowances = this.Allowances.bind(this);
}
Allowance(request) {
const data = exports.QueryAllowanceRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowance", data);
return promise.then((data) => exports.QueryAllowanceResponse.decode(new minimal_1.default.Reader(data)));
}
Allowances(request) {
const data = exports.QueryAllowancesRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Query", "Allowances", data);
return promise.then((data) => exports.QueryAllowancesResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Allowance returns fee granted to the grantee by the granter. */
allowance: {
path: "/cosmos.feegrant.v1beta1.Query/Allowance",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAllowanceRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAllowanceRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAllowanceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAllowanceResponse.decode(value),
},
/** Allowances returns all the grants for address. */
allowances: {
path: "/cosmos.feegrant.v1beta1.Query/Allowances",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAllowancesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAllowancesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAllowancesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAllowancesResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.feegrant.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -304,0 +311,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -59,3 +61,3 @@ import { Any } from "../../../google/protobuf/any";

/** Msg defines the feegrant msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -65,3 +67,11 @@ * GrantAllowance grants fee allowance to the grantee on the granter's

*/
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
readonly grantAllowance: {
readonly path: "/cosmos.feegrant.v1beta1.Msg/GrantAllowance";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgGrantAllowance) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgGrantAllowance;
readonly responseSerialize: (value: MsgGrantAllowanceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgGrantAllowanceResponse;
};
/**

@@ -71,13 +81,41 @@ * RevokeAllowance revokes any fee allowance of granter's account that

*/
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
readonly revokeAllowance: {
readonly path: "/cosmos.feegrant.v1beta1.Msg/RevokeAllowance";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgRevokeAllowance) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgRevokeAllowance;
readonly responseSerialize: (value: MsgRevokeAllowanceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgRevokeAllowanceResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* GrantAllowance grants fee allowance to the grantee on the granter's
* account with the provided expiration time.
*/
grantAllowance: handleUnaryCall<MsgGrantAllowance, MsgGrantAllowanceResponse>;
/**
* RevokeAllowance revokes any fee allowance of granter's account that
* has been granted to the grantee.
*/
revokeAllowance: handleUnaryCall<MsgRevokeAllowance, MsgRevokeAllowanceResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
GrantAllowance(request: MsgGrantAllowance): Promise<MsgGrantAllowanceResponse>;
RevokeAllowance(request: MsgRevokeAllowance): Promise<MsgRevokeAllowanceResponse>;
export interface MsgClient extends Client {
/**
* GrantAllowance grants fee allowance to the grantee on the granter's
* account with the provided expiration time.
*/
grantAllowance(request: MsgGrantAllowance, callback: (error: ServiceError | null, response: MsgGrantAllowanceResponse) => void): ClientUnaryCall;
grantAllowance(request: MsgGrantAllowance, metadata: Metadata, callback: (error: ServiceError | null, response: MsgGrantAllowanceResponse) => void): ClientUnaryCall;
grantAllowance(request: MsgGrantAllowance, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgGrantAllowanceResponse) => void): ClientUnaryCall;
/**
* RevokeAllowance revokes any fee allowance of granter's account that
* has been granted to the grantee.
*/
revokeAllowance(request: MsgRevokeAllowance, callback: (error: ServiceError | null, response: MsgRevokeAllowanceResponse) => void): ClientUnaryCall;
revokeAllowance(request: MsgRevokeAllowance, metadata: Metadata, callback: (error: ServiceError | null, response: MsgRevokeAllowanceResponse) => void): ClientUnaryCall;
revokeAllowance(request: MsgRevokeAllowance, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgRevokeAllowanceResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -84,0 +122,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgRevokeAllowanceResponse = exports.MsgRevokeAllowance = exports.MsgGrantAllowanceResponse = exports.MsgGrantAllowance = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgRevokeAllowanceResponse = exports.MsgRevokeAllowance = exports.MsgGrantAllowanceResponse = exports.MsgGrantAllowance = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -237,20 +238,32 @@ const any_1 = require("../../../google/protobuf/any");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.GrantAllowance = this.GrantAllowance.bind(this);
this.RevokeAllowance = this.RevokeAllowance.bind(this);
}
GrantAllowance(request) {
const data = exports.MsgGrantAllowance.encode(request).finish();
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "GrantAllowance", data);
return promise.then((data) => exports.MsgGrantAllowanceResponse.decode(new minimal_1.default.Reader(data)));
}
RevokeAllowance(request) {
const data = exports.MsgRevokeAllowance.encode(request).finish();
const promise = this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", data);
return promise.then((data) => exports.MsgRevokeAllowanceResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the feegrant msg service. */
exports.MsgService = {
/**
* GrantAllowance grants fee allowance to the grantee on the granter's
* account with the provided expiration time.
*/
grantAllowance: {
path: "/cosmos.feegrant.v1beta1.Msg/GrantAllowance",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgGrantAllowance.encode(value).finish()),
requestDeserialize: (value) => exports.MsgGrantAllowance.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgGrantAllowanceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgGrantAllowanceResponse.decode(value),
},
/**
* RevokeAllowance revokes any fee allowance of granter's account that
* has been granted to the grantee.
*/
revokeAllowance: {
path: "/cosmos.feegrant.v1beta1.Msg/RevokeAllowance",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgRevokeAllowance.encode(value).finish()),
requestDeserialize: (value) => exports.MsgRevokeAllowance.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgRevokeAllowanceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgRevokeAllowanceResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.feegrant.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -257,0 +270,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -226,35 +228,137 @@ import { Proposal, ProposalStatus, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "../../../cosmos/gov/v1beta1/gov";

/** Query defines the gRPC querier service for gov module */
export interface Query {
export declare const QueryService: {
/** Proposal queries proposal details based on ProposalID. */
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
readonly proposal: {
readonly path: "/cosmos.gov.v1beta1.Query/Proposal";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryProposalRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryProposalRequest;
readonly responseSerialize: (value: QueryProposalResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryProposalResponse;
};
/** Proposals queries all proposals based on given status. */
Proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
readonly proposals: {
readonly path: "/cosmos.gov.v1beta1.Query/Proposals";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryProposalsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryProposalsRequest;
readonly responseSerialize: (value: QueryProposalsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryProposalsResponse;
};
/** Vote queries voted information based on proposalID, voterAddr. */
Vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
readonly vote: {
readonly path: "/cosmos.gov.v1beta1.Query/Vote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryVoteRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryVoteRequest;
readonly responseSerialize: (value: QueryVoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryVoteResponse;
};
/** Votes queries votes of a given proposal. */
Votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
readonly votes: {
readonly path: "/cosmos.gov.v1beta1.Query/Votes";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryVotesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryVotesRequest;
readonly responseSerialize: (value: QueryVotesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryVotesResponse;
};
/** Params queries all parameters of the gov module. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.gov.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
/** Deposit queries single deposit information based proposalID, depositAddr. */
Deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
readonly deposit: {
readonly path: "/cosmos.gov.v1beta1.Query/Deposit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDepositRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDepositRequest;
readonly responseSerialize: (value: QueryDepositResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDepositResponse;
};
/** Deposits queries all deposits of a single proposal. */
Deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
readonly deposits: {
readonly path: "/cosmos.gov.v1beta1.Query/Deposits";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDepositsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDepositsRequest;
readonly responseSerialize: (value: QueryDepositsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDepositsResponse;
};
/** TallyResult queries the tally of a proposal vote. */
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
readonly tallyResult: {
readonly path: "/cosmos.gov.v1beta1.Query/TallyResult";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTallyResultRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTallyResultRequest;
readonly responseSerialize: (value: QueryTallyResultResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTallyResultResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Proposal queries proposal details based on ProposalID. */
proposal: handleUnaryCall<QueryProposalRequest, QueryProposalResponse>;
/** Proposals queries all proposals based on given status. */
proposals: handleUnaryCall<QueryProposalsRequest, QueryProposalsResponse>;
/** Vote queries voted information based on proposalID, voterAddr. */
vote: handleUnaryCall<QueryVoteRequest, QueryVoteResponse>;
/** Votes queries votes of a given proposal. */
votes: handleUnaryCall<QueryVotesRequest, QueryVotesResponse>;
/** Params queries all parameters of the gov module. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
/** Deposit queries single deposit information based proposalID, depositAddr. */
deposit: handleUnaryCall<QueryDepositRequest, QueryDepositResponse>;
/** Deposits queries all deposits of a single proposal. */
deposits: handleUnaryCall<QueryDepositsRequest, QueryDepositsResponse>;
/** TallyResult queries the tally of a proposal vote. */
tallyResult: handleUnaryCall<QueryTallyResultRequest, QueryTallyResultResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Proposal(request: QueryProposalRequest): Promise<QueryProposalResponse>;
Proposals(request: QueryProposalsRequest): Promise<QueryProposalsResponse>;
Vote(request: QueryVoteRequest): Promise<QueryVoteResponse>;
Votes(request: QueryVotesRequest): Promise<QueryVotesResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
Deposit(request: QueryDepositRequest): Promise<QueryDepositResponse>;
Deposits(request: QueryDepositsRequest): Promise<QueryDepositsResponse>;
TallyResult(request: QueryTallyResultRequest): Promise<QueryTallyResultResponse>;
export interface QueryClient extends Client {
/** Proposal queries proposal details based on ProposalID. */
proposal(request: QueryProposalRequest, callback: (error: ServiceError | null, response: QueryProposalResponse) => void): ClientUnaryCall;
proposal(request: QueryProposalRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryProposalResponse) => void): ClientUnaryCall;
proposal(request: QueryProposalRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryProposalResponse) => void): ClientUnaryCall;
/** Proposals queries all proposals based on given status. */
proposals(request: QueryProposalsRequest, callback: (error: ServiceError | null, response: QueryProposalsResponse) => void): ClientUnaryCall;
proposals(request: QueryProposalsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryProposalsResponse) => void): ClientUnaryCall;
proposals(request: QueryProposalsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryProposalsResponse) => void): ClientUnaryCall;
/** Vote queries voted information based on proposalID, voterAddr. */
vote(request: QueryVoteRequest, callback: (error: ServiceError | null, response: QueryVoteResponse) => void): ClientUnaryCall;
vote(request: QueryVoteRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryVoteResponse) => void): ClientUnaryCall;
vote(request: QueryVoteRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryVoteResponse) => void): ClientUnaryCall;
/** Votes queries votes of a given proposal. */
votes(request: QueryVotesRequest, callback: (error: ServiceError | null, response: QueryVotesResponse) => void): ClientUnaryCall;
votes(request: QueryVotesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryVotesResponse) => void): ClientUnaryCall;
votes(request: QueryVotesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryVotesResponse) => void): ClientUnaryCall;
/** Params queries all parameters of the gov module. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
/** Deposit queries single deposit information based proposalID, depositAddr. */
deposit(request: QueryDepositRequest, callback: (error: ServiceError | null, response: QueryDepositResponse) => void): ClientUnaryCall;
deposit(request: QueryDepositRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDepositResponse) => void): ClientUnaryCall;
deposit(request: QueryDepositRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDepositResponse) => void): ClientUnaryCall;
/** Deposits queries all deposits of a single proposal. */
deposits(request: QueryDepositsRequest, callback: (error: ServiceError | null, response: QueryDepositsResponse) => void): ClientUnaryCall;
deposits(request: QueryDepositsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDepositsResponse) => void): ClientUnaryCall;
deposits(request: QueryDepositsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDepositsResponse) => void): ClientUnaryCall;
/** TallyResult queries the tally of a proposal vote. */
tallyResult(request: QueryTallyResultRequest, callback: (error: ServiceError | null, response: QueryTallyResultResponse) => void): ClientUnaryCall;
tallyResult(request: QueryTallyResultRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryTallyResultResponse) => void): ClientUnaryCall;
tallyResult(request: QueryTallyResultRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTallyResultResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -261,0 +365,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryTallyResultResponse = exports.QueryTallyResultRequest = exports.QueryDepositsResponse = exports.QueryDepositsRequest = exports.QueryDepositResponse = exports.QueryDepositRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryVotesResponse = exports.QueryVotesRequest = exports.QueryVoteResponse = exports.QueryVoteRequest = exports.QueryProposalsResponse = exports.QueryProposalsRequest = exports.QueryProposalResponse = exports.QueryProposalRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -1089,56 +1090,86 @@ const gov_1 = require("../../../cosmos/gov/v1beta1/gov");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Proposal = this.Proposal.bind(this);
this.Proposals = this.Proposals.bind(this);
this.Vote = this.Vote.bind(this);
this.Votes = this.Votes.bind(this);
this.Params = this.Params.bind(this);
this.Deposit = this.Deposit.bind(this);
this.Deposits = this.Deposits.bind(this);
this.TallyResult = this.TallyResult.bind(this);
}
Proposal(request) {
const data = exports.QueryProposalRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposal", data);
return promise.then((data) => exports.QueryProposalResponse.decode(new minimal_1.default.Reader(data)));
}
Proposals(request) {
const data = exports.QueryProposalsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Proposals", data);
return promise.then((data) => exports.QueryProposalsResponse.decode(new minimal_1.default.Reader(data)));
}
Vote(request) {
const data = exports.QueryVoteRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Vote", data);
return promise.then((data) => exports.QueryVoteResponse.decode(new minimal_1.default.Reader(data)));
}
Votes(request) {
const data = exports.QueryVotesRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Votes", data);
return promise.then((data) => exports.QueryVotesResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
Deposit(request) {
const data = exports.QueryDepositRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposit", data);
return promise.then((data) => exports.QueryDepositResponse.decode(new minimal_1.default.Reader(data)));
}
Deposits(request) {
const data = exports.QueryDepositsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "Deposits", data);
return promise.then((data) => exports.QueryDepositsResponse.decode(new minimal_1.default.Reader(data)));
}
TallyResult(request) {
const data = exports.QueryTallyResultRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Query", "TallyResult", data);
return promise.then((data) => exports.QueryTallyResultResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service for gov module */
exports.QueryService = {
/** Proposal queries proposal details based on ProposalID. */
proposal: {
path: "/cosmos.gov.v1beta1.Query/Proposal",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryProposalRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryProposalRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryProposalResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryProposalResponse.decode(value),
},
/** Proposals queries all proposals based on given status. */
proposals: {
path: "/cosmos.gov.v1beta1.Query/Proposals",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryProposalsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryProposalsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryProposalsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryProposalsResponse.decode(value),
},
/** Vote queries voted information based on proposalID, voterAddr. */
vote: {
path: "/cosmos.gov.v1beta1.Query/Vote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryVoteRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryVoteRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryVoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryVoteResponse.decode(value),
},
/** Votes queries votes of a given proposal. */
votes: {
path: "/cosmos.gov.v1beta1.Query/Votes",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryVotesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryVotesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryVotesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryVotesResponse.decode(value),
},
/** Params queries all parameters of the gov module. */
params: {
path: "/cosmos.gov.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
/** Deposit queries single deposit information based proposalID, depositAddr. */
deposit: {
path: "/cosmos.gov.v1beta1.Query/Deposit",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDepositRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDepositRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDepositResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDepositResponse.decode(value),
},
/** Deposits queries all deposits of a single proposal. */
deposits: {
path: "/cosmos.gov.v1beta1.Query/Deposits",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDepositsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDepositsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDepositsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDepositsResponse.decode(value),
},
/** TallyResult queries the tally of a proposal vote. */
tallyResult: {
path: "/cosmos.gov.v1beta1.Query/TallyResult",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTallyResultRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTallyResultRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTallyResultResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTallyResultResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.gov.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -1145,0 +1176,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -104,23 +106,73 @@ import { Any } from "../../../google/protobuf/any";

/** Msg defines the bank Msg service. */
export interface Msg {
export declare const MsgService: {
/** SubmitProposal defines a method to create new proposal given a content. */
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
readonly submitProposal: {
readonly path: "/cosmos.gov.v1beta1.Msg/SubmitProposal";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSubmitProposal) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSubmitProposal;
readonly responseSerialize: (value: MsgSubmitProposalResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSubmitProposalResponse;
};
/** Vote defines a method to add a vote on a specific proposal. */
Vote(request: MsgVote): Promise<MsgVoteResponse>;
readonly vote: {
readonly path: "/cosmos.gov.v1beta1.Msg/Vote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgVote) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgVote;
readonly responseSerialize: (value: MsgVoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgVoteResponse;
};
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
readonly voteWeighted: {
readonly path: "/cosmos.gov.v1beta1.Msg/VoteWeighted";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgVoteWeighted) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgVoteWeighted;
readonly responseSerialize: (value: MsgVoteWeightedResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgVoteWeightedResponse;
};
/** Deposit defines a method to add deposit on a specific proposal. */
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
readonly deposit: {
readonly path: "/cosmos.gov.v1beta1.Msg/Deposit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgDeposit) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgDeposit;
readonly responseSerialize: (value: MsgDepositResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgDepositResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** SubmitProposal defines a method to create new proposal given a content. */
submitProposal: handleUnaryCall<MsgSubmitProposal, MsgSubmitProposalResponse>;
/** Vote defines a method to add a vote on a specific proposal. */
vote: handleUnaryCall<MsgVote, MsgVoteResponse>;
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
voteWeighted: handleUnaryCall<MsgVoteWeighted, MsgVoteWeightedResponse>;
/** Deposit defines a method to add deposit on a specific proposal. */
deposit: handleUnaryCall<MsgDeposit, MsgDepositResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
Vote(request: MsgVote): Promise<MsgVoteResponse>;
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
export interface MsgClient extends Client {
/** SubmitProposal defines a method to create new proposal given a content. */
submitProposal(request: MsgSubmitProposal, callback: (error: ServiceError | null, response: MsgSubmitProposalResponse) => void): ClientUnaryCall;
submitProposal(request: MsgSubmitProposal, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgSubmitProposalResponse) => void): ClientUnaryCall;
submitProposal(request: MsgSubmitProposal, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSubmitProposalResponse) => void): ClientUnaryCall;
/** Vote defines a method to add a vote on a specific proposal. */
vote(request: MsgVote, callback: (error: ServiceError | null, response: MsgVoteResponse) => void): ClientUnaryCall;
vote(request: MsgVote, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgVoteResponse) => void): ClientUnaryCall;
vote(request: MsgVote, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgVoteResponse) => void): ClientUnaryCall;
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
voteWeighted(request: MsgVoteWeighted, callback: (error: ServiceError | null, response: MsgVoteWeightedResponse) => void): ClientUnaryCall;
voteWeighted(request: MsgVoteWeighted, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgVoteWeightedResponse) => void): ClientUnaryCall;
voteWeighted(request: MsgVoteWeighted, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgVoteWeightedResponse) => void): ClientUnaryCall;
/** Deposit defines a method to add deposit on a specific proposal. */
deposit(request: MsgDeposit, callback: (error: ServiceError | null, response: MsgDepositResponse) => void): ClientUnaryCall;
deposit(request: MsgDeposit, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgDepositResponse) => void): ClientUnaryCall;
deposit(request: MsgDeposit, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgDepositResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -127,0 +179,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgDepositResponse = exports.MsgDeposit = exports.MsgVoteWeightedResponse = exports.MsgVoteWeighted = exports.MsgVoteResponse = exports.MsgVote = exports.MsgSubmitProposalResponse = exports.MsgSubmitProposal = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -537,32 +538,46 @@ const any_1 = require("../../../google/protobuf/any");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.SubmitProposal = this.SubmitProposal.bind(this);
this.Vote = this.Vote.bind(this);
this.VoteWeighted = this.VoteWeighted.bind(this);
this.Deposit = this.Deposit.bind(this);
}
SubmitProposal(request) {
const data = exports.MsgSubmitProposal.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "SubmitProposal", data);
return promise.then((data) => exports.MsgSubmitProposalResponse.decode(new minimal_1.default.Reader(data)));
}
Vote(request) {
const data = exports.MsgVote.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Vote", data);
return promise.then((data) => exports.MsgVoteResponse.decode(new minimal_1.default.Reader(data)));
}
VoteWeighted(request) {
const data = exports.MsgVoteWeighted.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "VoteWeighted", data);
return promise.then((data) => exports.MsgVoteWeightedResponse.decode(new minimal_1.default.Reader(data)));
}
Deposit(request) {
const data = exports.MsgDeposit.encode(request).finish();
const promise = this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", data);
return promise.then((data) => exports.MsgDepositResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the bank Msg service. */
exports.MsgService = {
/** SubmitProposal defines a method to create new proposal given a content. */
submitProposal: {
path: "/cosmos.gov.v1beta1.Msg/SubmitProposal",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSubmitProposal.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSubmitProposal.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSubmitProposalResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSubmitProposalResponse.decode(value),
},
/** Vote defines a method to add a vote on a specific proposal. */
vote: {
path: "/cosmos.gov.v1beta1.Msg/Vote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgVote.encode(value).finish()),
requestDeserialize: (value) => exports.MsgVote.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgVoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgVoteResponse.decode(value),
},
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
voteWeighted: {
path: "/cosmos.gov.v1beta1.Msg/VoteWeighted",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgVoteWeighted.encode(value).finish()),
requestDeserialize: (value) => exports.MsgVoteWeighted.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgVoteWeightedResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgVoteWeightedResponse.decode(value),
},
/** Deposit defines a method to add deposit on a specific proposal. */
deposit: {
path: "/cosmos.gov.v1beta1.Msg/Deposit",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgDeposit.encode(value).finish()),
requestDeserialize: (value) => exports.MsgDeposit.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgDepositResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgDepositResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.gov.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -569,0 +584,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -81,20 +83,57 @@ import { Params } from "../../../cosmos/mint/v1beta1/mint";

/** Query provides defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Params returns the total set of minting parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.mint.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
/** Inflation returns the current minting inflation value. */
Inflation(request: QueryInflationRequest): Promise<QueryInflationResponse>;
readonly inflation: {
readonly path: "/cosmos.mint.v1beta1.Query/Inflation";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryInflationRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryInflationRequest;
readonly responseSerialize: (value: QueryInflationResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryInflationResponse;
};
/** AnnualProvisions current minting annual provisions value. */
AnnualProvisions(request: QueryAnnualProvisionsRequest): Promise<QueryAnnualProvisionsResponse>;
readonly annualProvisions: {
readonly path: "/cosmos.mint.v1beta1.Query/AnnualProvisions";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAnnualProvisionsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAnnualProvisionsRequest;
readonly responseSerialize: (value: QueryAnnualProvisionsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAnnualProvisionsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Params returns the total set of minting parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
/** Inflation returns the current minting inflation value. */
inflation: handleUnaryCall<QueryInflationRequest, QueryInflationResponse>;
/** AnnualProvisions current minting annual provisions value. */
annualProvisions: handleUnaryCall<QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
Inflation(request: QueryInflationRequest): Promise<QueryInflationResponse>;
AnnualProvisions(request: QueryAnnualProvisionsRequest): Promise<QueryAnnualProvisionsResponse>;
export interface QueryClient extends Client {
/** Params returns the total set of minting parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
/** Inflation returns the current minting inflation value. */
inflation(request: QueryInflationRequest, callback: (error: ServiceError | null, response: QueryInflationResponse) => void): ClientUnaryCall;
inflation(request: QueryInflationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryInflationResponse) => void): ClientUnaryCall;
inflation(request: QueryInflationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryInflationResponse) => void): ClientUnaryCall;
/** AnnualProvisions current minting annual provisions value. */
annualProvisions(request: QueryAnnualProvisionsRequest, callback: (error: ServiceError | null, response: QueryAnnualProvisionsResponse) => void): ClientUnaryCall;
annualProvisions(request: QueryAnnualProvisionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAnnualProvisionsResponse) => void): ClientUnaryCall;
annualProvisions(request: QueryAnnualProvisionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAnnualProvisionsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -101,0 +140,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryAnnualProvisionsResponse = exports.QueryAnnualProvisionsRequest = exports.QueryInflationResponse = exports.QueryInflationRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryAnnualProvisionsResponse = exports.QueryAnnualProvisionsRequest = exports.QueryInflationResponse = exports.QueryInflationRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -262,26 +263,36 @@ const mint_1 = require("../../../cosmos/mint/v1beta1/mint");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Params = this.Params.bind(this);
this.Inflation = this.Inflation.bind(this);
this.AnnualProvisions = this.AnnualProvisions.bind(this);
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
Inflation(request) {
const data = exports.QueryInflationRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "Inflation", data);
return promise.then((data) => exports.QueryInflationResponse.decode(new minimal_1.default.Reader(data)));
}
AnnualProvisions(request) {
const data = exports.QueryAnnualProvisionsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.mint.v1beta1.Query", "AnnualProvisions", data);
return promise.then((data) => exports.QueryAnnualProvisionsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query provides defines the gRPC querier service. */
exports.QueryService = {
/** Params returns the total set of minting parameters. */
params: {
path: "/cosmos.mint.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
/** Inflation returns the current minting inflation value. */
inflation: {
path: "/cosmos.mint.v1beta1.Query/Inflation",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryInflationRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryInflationRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryInflationResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryInflationResponse.decode(value),
},
/** AnnualProvisions current minting annual provisions value. */
annualProvisions: {
path: "/cosmos.mint.v1beta1.Query/AnnualProvisions",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAnnualProvisionsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAnnualProvisionsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAnnualProvisionsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAnnualProvisionsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.mint.v1beta1.Query");
var globalThis = (() => {

@@ -288,0 +299,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -32,3 +34,3 @@ import { ParamChange } from "../../../cosmos/params/v1beta1/params";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/**

@@ -38,12 +40,29 @@ * Params queries a specific parameter of a module, given its subspace and

*/
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.params.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/**
* Params queries a specific parameter of a module, given its subspace and
* key.
*/
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/**
* Params queries a specific parameter of a module, given its subspace and
* key.
*/
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -50,0 +69,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -135,14 +136,19 @@ const params_1 = require("../../../cosmos/params/v1beta1/params");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Params = this.Params.bind(this);
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.params.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/**
* Params queries a specific parameter of a module, given its subspace and
* key.
*/
params: {
path: "/cosmos.params.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.params.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -149,0 +155,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -88,20 +90,57 @@ import { Params, ValidatorSigningInfo } from "../../../cosmos/slashing/v1beta1/slashing";

/** Query provides defines the gRPC querier service */
export interface Query {
export declare const QueryService: {
/** Params queries the parameters of slashing module */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.slashing.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
/** SigningInfo queries the signing info of given cons address */
SigningInfo(request: QuerySigningInfoRequest): Promise<QuerySigningInfoResponse>;
readonly signingInfo: {
readonly path: "/cosmos.slashing.v1beta1.Query/SigningInfo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QuerySigningInfoRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QuerySigningInfoRequest;
readonly responseSerialize: (value: QuerySigningInfoResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QuerySigningInfoResponse;
};
/** SigningInfos queries signing info of all validators */
SigningInfos(request: QuerySigningInfosRequest): Promise<QuerySigningInfosResponse>;
readonly signingInfos: {
readonly path: "/cosmos.slashing.v1beta1.Query/SigningInfos";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QuerySigningInfosRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QuerySigningInfosRequest;
readonly responseSerialize: (value: QuerySigningInfosResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QuerySigningInfosResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Params queries the parameters of slashing module */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
/** SigningInfo queries the signing info of given cons address */
signingInfo: handleUnaryCall<QuerySigningInfoRequest, QuerySigningInfoResponse>;
/** SigningInfos queries signing info of all validators */
signingInfos: handleUnaryCall<QuerySigningInfosRequest, QuerySigningInfosResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
SigningInfo(request: QuerySigningInfoRequest): Promise<QuerySigningInfoResponse>;
SigningInfos(request: QuerySigningInfosRequest): Promise<QuerySigningInfosResponse>;
export interface QueryClient extends Client {
/** Params queries the parameters of slashing module */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
/** SigningInfo queries the signing info of given cons address */
signingInfo(request: QuerySigningInfoRequest, callback: (error: ServiceError | null, response: QuerySigningInfoResponse) => void): ClientUnaryCall;
signingInfo(request: QuerySigningInfoRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QuerySigningInfoResponse) => void): ClientUnaryCall;
signingInfo(request: QuerySigningInfoRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySigningInfoResponse) => void): ClientUnaryCall;
/** SigningInfos queries signing info of all validators */
signingInfos(request: QuerySigningInfosRequest, callback: (error: ServiceError | null, response: QuerySigningInfosResponse) => void): ClientUnaryCall;
signingInfos(request: QuerySigningInfosRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QuerySigningInfosResponse) => void): ClientUnaryCall;
signingInfos(request: QuerySigningInfosRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySigningInfosResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -108,0 +147,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QuerySigningInfosResponse = exports.QuerySigningInfosRequest = exports.QuerySigningInfoResponse = exports.QuerySigningInfoRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QuerySigningInfosResponse = exports.QuerySigningInfosRequest = exports.QuerySigningInfoResponse = exports.QuerySigningInfoRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -331,26 +332,36 @@ const slashing_1 = require("../../../cosmos/slashing/v1beta1/slashing");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Params = this.Params.bind(this);
this.SigningInfo = this.SigningInfo.bind(this);
this.SigningInfos = this.SigningInfos.bind(this);
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
SigningInfo(request) {
const data = exports.QuerySigningInfoRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "SigningInfo", data);
return promise.then((data) => exports.QuerySigningInfoResponse.decode(new minimal_1.default.Reader(data)));
}
SigningInfos(request) {
const data = exports.QuerySigningInfosRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.slashing.v1beta1.Query", "SigningInfos", data);
return promise.then((data) => exports.QuerySigningInfosResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query provides defines the gRPC querier service */
exports.QueryService = {
/** Params queries the parameters of slashing module */
params: {
path: "/cosmos.slashing.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
/** SigningInfo queries the signing info of given cons address */
signingInfo: {
path: "/cosmos.slashing.v1beta1.Query/SigningInfo",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QuerySigningInfoRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QuerySigningInfoRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QuerySigningInfoResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QuerySigningInfoResponse.decode(value),
},
/** SigningInfos queries signing info of all validators */
signingInfos: {
path: "/cosmos.slashing.v1beta1.Query/SigningInfos",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QuerySigningInfosRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QuerySigningInfosRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QuerySigningInfosResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QuerySigningInfosResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.slashing.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -357,0 +368,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -26,3 +28,3 @@ export declare const protobufPackage = "cosmos.slashing.v1beta1";

/** Msg defines the slashing Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -33,12 +35,31 @@ * Unjail defines a method for unjailing a jailed validator, thus returning

*/
Unjail(request: MsgUnjail): Promise<MsgUnjailResponse>;
readonly unjail: {
readonly path: "/cosmos.slashing.v1beta1.Msg/Unjail";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgUnjail) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgUnjail;
readonly responseSerialize: (value: MsgUnjailResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgUnjailResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* Unjail defines a method for unjailing a jailed validator, thus returning
* them into the bonded validator set, so they can begin receiving provisions
* and rewards again.
*/
unjail: handleUnaryCall<MsgUnjail, MsgUnjailResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
Unjail(request: MsgUnjail): Promise<MsgUnjailResponse>;
export interface MsgClient extends Client {
/**
* Unjail defines a method for unjailing a jailed validator, thus returning
* them into the bonded validator set, so they can begin receiving provisions
* and rewards again.
*/
unjail(request: MsgUnjail, callback: (error: ServiceError | null, response: MsgUnjailResponse) => void): ClientUnaryCall;
unjail(request: MsgUnjail, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgUnjailResponse) => void): ClientUnaryCall;
unjail(request: MsgUnjail, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgUnjailResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -45,0 +66,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgUnjailResponse = exports.MsgUnjail = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgUnjailResponse = exports.MsgUnjail = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -95,14 +96,20 @@ exports.protobufPackage = "cosmos.slashing.v1beta1";

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Unjail = this.Unjail.bind(this);
}
Unjail(request) {
const data = exports.MsgUnjail.encode(request).finish();
const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data);
return promise.then((data) => exports.MsgUnjailResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the slashing Msg service. */
exports.MsgService = {
/**
* Unjail defines a method for unjailing a jailed validator, thus returning
* them into the bonded validator set, so they can begin receiving provisions
* and rewards again.
*/
unjail: {
path: "/cosmos.slashing.v1beta1.Msg/Unjail",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgUnjail.encode(value).finish()),
requestDeserialize: (value) => exports.MsgUnjail.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgUnjailResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgUnjailResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.slashing.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -109,0 +116,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -427,13 +429,53 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Validators queries all validators that match the given status. */
Validators(request: QueryValidatorsRequest): Promise<QueryValidatorsResponse>;
readonly validators: {
readonly path: "/cosmos.staking.v1beta1.Query/Validators";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorsRequest;
readonly responseSerialize: (value: QueryValidatorsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorsResponse;
};
/** Validator queries validator info for given validator address. */
Validator(request: QueryValidatorRequest): Promise<QueryValidatorResponse>;
readonly validator: {
readonly path: "/cosmos.staking.v1beta1.Query/Validator";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorRequest;
readonly responseSerialize: (value: QueryValidatorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorResponse;
};
/** ValidatorDelegations queries delegate info for given validator. */
ValidatorDelegations(request: QueryValidatorDelegationsRequest): Promise<QueryValidatorDelegationsResponse>;
readonly validatorDelegations: {
readonly path: "/cosmos.staking.v1beta1.Query/ValidatorDelegations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorDelegationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorDelegationsRequest;
readonly responseSerialize: (value: QueryValidatorDelegationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorDelegationsResponse;
};
/** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */
ValidatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise<QueryValidatorUnbondingDelegationsResponse>;
readonly validatorUnbondingDelegations: {
readonly path: "/cosmos.staking.v1beta1.Query/ValidatorUnbondingDelegations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryValidatorUnbondingDelegationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryValidatorUnbondingDelegationsRequest;
readonly responseSerialize: (value: QueryValidatorUnbondingDelegationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryValidatorUnbondingDelegationsResponse;
};
/** Delegation queries delegate info for given validator delegator pair. */
Delegation(request: QueryDelegationRequest): Promise<QueryDelegationResponse>;
readonly delegation: {
readonly path: "/cosmos.staking.v1beta1.Query/Delegation";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegationRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegationRequest;
readonly responseSerialize: (value: QueryDelegationResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegationResponse;
};
/**

@@ -443,5 +485,21 @@ * UnbondingDelegation queries unbonding info for given validator delegator

*/
UnbondingDelegation(request: QueryUnbondingDelegationRequest): Promise<QueryUnbondingDelegationResponse>;
readonly unbondingDelegation: {
readonly path: "/cosmos.staking.v1beta1.Query/UnbondingDelegation";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUnbondingDelegationRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUnbondingDelegationRequest;
readonly responseSerialize: (value: QueryUnbondingDelegationResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUnbondingDelegationResponse;
};
/** DelegatorDelegations queries all delegations of a given delegator address. */
DelegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise<QueryDelegatorDelegationsResponse>;
readonly delegatorDelegations: {
readonly path: "/cosmos.staking.v1beta1.Query/DelegatorDelegations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorDelegationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorDelegationsRequest;
readonly responseSerialize: (value: QueryDelegatorDelegationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorDelegationsResponse;
};
/**

@@ -451,5 +509,21 @@ * DelegatorUnbondingDelegations queries all unbonding delegations of a given

*/
DelegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise<QueryDelegatorUnbondingDelegationsResponse>;
readonly delegatorUnbondingDelegations: {
readonly path: "/cosmos.staking.v1beta1.Query/DelegatorUnbondingDelegations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorUnbondingDelegationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorUnbondingDelegationsRequest;
readonly responseSerialize: (value: QueryDelegatorUnbondingDelegationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorUnbondingDelegationsResponse;
};
/** Redelegations queries redelegations of given address. */
Redelegations(request: QueryRedelegationsRequest): Promise<QueryRedelegationsResponse>;
readonly redelegations: {
readonly path: "/cosmos.staking.v1beta1.Query/Redelegations";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryRedelegationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryRedelegationsRequest;
readonly responseSerialize: (value: QueryRedelegationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryRedelegationsResponse;
};
/**

@@ -459,3 +533,11 @@ * DelegatorValidators queries all validators info for given delegator

*/
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
readonly delegatorValidators: {
readonly path: "/cosmos.staking.v1beta1.Query/DelegatorValidators";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorValidatorsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorValidatorsRequest;
readonly responseSerialize: (value: QueryDelegatorValidatorsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorValidatorsResponse;
};
/**

@@ -465,31 +547,155 @@ * DelegatorValidator queries validator info for given delegator validator

*/
DelegatorValidator(request: QueryDelegatorValidatorRequest): Promise<QueryDelegatorValidatorResponse>;
readonly delegatorValidator: {
readonly path: "/cosmos.staking.v1beta1.Query/DelegatorValidator";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDelegatorValidatorRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDelegatorValidatorRequest;
readonly responseSerialize: (value: QueryDelegatorValidatorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDelegatorValidatorResponse;
};
/** HistoricalInfo queries the historical info for given height. */
HistoricalInfo(request: QueryHistoricalInfoRequest): Promise<QueryHistoricalInfoResponse>;
readonly historicalInfo: {
readonly path: "/cosmos.staking.v1beta1.Query/HistoricalInfo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryHistoricalInfoRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryHistoricalInfoRequest;
readonly responseSerialize: (value: QueryHistoricalInfoResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryHistoricalInfoResponse;
};
/** Pool queries the pool info. */
Pool(request: QueryPoolRequest): Promise<QueryPoolResponse>;
readonly pool: {
readonly path: "/cosmos.staking.v1beta1.Query/Pool";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPoolRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPoolRequest;
readonly responseSerialize: (value: QueryPoolResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPoolResponse;
};
/** Parameters queries the staking parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/cosmos.staking.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Validators queries all validators that match the given status. */
validators: handleUnaryCall<QueryValidatorsRequest, QueryValidatorsResponse>;
/** Validator queries validator info for given validator address. */
validator: handleUnaryCall<QueryValidatorRequest, QueryValidatorResponse>;
/** ValidatorDelegations queries delegate info for given validator. */
validatorDelegations: handleUnaryCall<QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse>;
/** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */
validatorUnbondingDelegations: handleUnaryCall<QueryValidatorUnbondingDelegationsRequest, QueryValidatorUnbondingDelegationsResponse>;
/** Delegation queries delegate info for given validator delegator pair. */
delegation: handleUnaryCall<QueryDelegationRequest, QueryDelegationResponse>;
/**
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*/
unbondingDelegation: handleUnaryCall<QueryUnbondingDelegationRequest, QueryUnbondingDelegationResponse>;
/** DelegatorDelegations queries all delegations of a given delegator address. */
delegatorDelegations: handleUnaryCall<QueryDelegatorDelegationsRequest, QueryDelegatorDelegationsResponse>;
/**
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*/
delegatorUnbondingDelegations: handleUnaryCall<QueryDelegatorUnbondingDelegationsRequest, QueryDelegatorUnbondingDelegationsResponse>;
/** Redelegations queries redelegations of given address. */
redelegations: handleUnaryCall<QueryRedelegationsRequest, QueryRedelegationsResponse>;
/**
* DelegatorValidators queries all validators info for given delegator
* address.
*/
delegatorValidators: handleUnaryCall<QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse>;
/**
* DelegatorValidator queries validator info for given delegator validator
* pair.
*/
delegatorValidator: handleUnaryCall<QueryDelegatorValidatorRequest, QueryDelegatorValidatorResponse>;
/** HistoricalInfo queries the historical info for given height. */
historicalInfo: handleUnaryCall<QueryHistoricalInfoRequest, QueryHistoricalInfoResponse>;
/** Pool queries the pool info. */
pool: handleUnaryCall<QueryPoolRequest, QueryPoolResponse>;
/** Parameters queries the staking parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Validators(request: QueryValidatorsRequest): Promise<QueryValidatorsResponse>;
Validator(request: QueryValidatorRequest): Promise<QueryValidatorResponse>;
ValidatorDelegations(request: QueryValidatorDelegationsRequest): Promise<QueryValidatorDelegationsResponse>;
ValidatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest): Promise<QueryValidatorUnbondingDelegationsResponse>;
Delegation(request: QueryDelegationRequest): Promise<QueryDelegationResponse>;
UnbondingDelegation(request: QueryUnbondingDelegationRequest): Promise<QueryUnbondingDelegationResponse>;
DelegatorDelegations(request: QueryDelegatorDelegationsRequest): Promise<QueryDelegatorDelegationsResponse>;
DelegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest): Promise<QueryDelegatorUnbondingDelegationsResponse>;
Redelegations(request: QueryRedelegationsRequest): Promise<QueryRedelegationsResponse>;
DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise<QueryDelegatorValidatorsResponse>;
DelegatorValidator(request: QueryDelegatorValidatorRequest): Promise<QueryDelegatorValidatorResponse>;
HistoricalInfo(request: QueryHistoricalInfoRequest): Promise<QueryHistoricalInfoResponse>;
Pool(request: QueryPoolRequest): Promise<QueryPoolResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** Validators queries all validators that match the given status. */
validators(request: QueryValidatorsRequest, callback: (error: ServiceError | null, response: QueryValidatorsResponse) => void): ClientUnaryCall;
validators(request: QueryValidatorsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorsResponse) => void): ClientUnaryCall;
validators(request: QueryValidatorsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorsResponse) => void): ClientUnaryCall;
/** Validator queries validator info for given validator address. */
validator(request: QueryValidatorRequest, callback: (error: ServiceError | null, response: QueryValidatorResponse) => void): ClientUnaryCall;
validator(request: QueryValidatorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorResponse) => void): ClientUnaryCall;
validator(request: QueryValidatorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorResponse) => void): ClientUnaryCall;
/** ValidatorDelegations queries delegate info for given validator. */
validatorDelegations(request: QueryValidatorDelegationsRequest, callback: (error: ServiceError | null, response: QueryValidatorDelegationsResponse) => void): ClientUnaryCall;
validatorDelegations(request: QueryValidatorDelegationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorDelegationsResponse) => void): ClientUnaryCall;
validatorDelegations(request: QueryValidatorDelegationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorDelegationsResponse) => void): ClientUnaryCall;
/** ValidatorUnbondingDelegations queries unbonding delegations of a validator. */
validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest, callback: (error: ServiceError | null, response: QueryValidatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryValidatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
validatorUnbondingDelegations(request: QueryValidatorUnbondingDelegationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryValidatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
/** Delegation queries delegate info for given validator delegator pair. */
delegation(request: QueryDelegationRequest, callback: (error: ServiceError | null, response: QueryDelegationResponse) => void): ClientUnaryCall;
delegation(request: QueryDelegationRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegationResponse) => void): ClientUnaryCall;
delegation(request: QueryDelegationRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegationResponse) => void): ClientUnaryCall;
/**
* UnbondingDelegation queries unbonding info for given validator delegator
* pair.
*/
unbondingDelegation(request: QueryUnbondingDelegationRequest, callback: (error: ServiceError | null, response: QueryUnbondingDelegationResponse) => void): ClientUnaryCall;
unbondingDelegation(request: QueryUnbondingDelegationRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryUnbondingDelegationResponse) => void): ClientUnaryCall;
unbondingDelegation(request: QueryUnbondingDelegationRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUnbondingDelegationResponse) => void): ClientUnaryCall;
/** DelegatorDelegations queries all delegations of a given delegator address. */
delegatorDelegations(request: QueryDelegatorDelegationsRequest, callback: (error: ServiceError | null, response: QueryDelegatorDelegationsResponse) => void): ClientUnaryCall;
delegatorDelegations(request: QueryDelegatorDelegationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorDelegationsResponse) => void): ClientUnaryCall;
delegatorDelegations(request: QueryDelegatorDelegationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorDelegationsResponse) => void): ClientUnaryCall;
/**
* DelegatorUnbondingDelegations queries all unbonding delegations of a given
* delegator address.
*/
delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest, callback: (error: ServiceError | null, response: QueryDelegatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
delegatorUnbondingDelegations(request: QueryDelegatorUnbondingDelegationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorUnbondingDelegationsResponse) => void): ClientUnaryCall;
/** Redelegations queries redelegations of given address. */
redelegations(request: QueryRedelegationsRequest, callback: (error: ServiceError | null, response: QueryRedelegationsResponse) => void): ClientUnaryCall;
redelegations(request: QueryRedelegationsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryRedelegationsResponse) => void): ClientUnaryCall;
redelegations(request: QueryRedelegationsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryRedelegationsResponse) => void): ClientUnaryCall;
/**
* DelegatorValidators queries all validators info for given delegator
* address.
*/
delegatorValidators(request: QueryDelegatorValidatorsRequest, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
delegatorValidators(request: QueryDelegatorValidatorsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
delegatorValidators(request: QueryDelegatorValidatorsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorValidatorsResponse) => void): ClientUnaryCall;
/**
* DelegatorValidator queries validator info for given delegator validator
* pair.
*/
delegatorValidator(request: QueryDelegatorValidatorRequest, callback: (error: ServiceError | null, response: QueryDelegatorValidatorResponse) => void): ClientUnaryCall;
delegatorValidator(request: QueryDelegatorValidatorRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDelegatorValidatorResponse) => void): ClientUnaryCall;
delegatorValidator(request: QueryDelegatorValidatorRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDelegatorValidatorResponse) => void): ClientUnaryCall;
/** HistoricalInfo queries the historical info for given height. */
historicalInfo(request: QueryHistoricalInfoRequest, callback: (error: ServiceError | null, response: QueryHistoricalInfoResponse) => void): ClientUnaryCall;
historicalInfo(request: QueryHistoricalInfoRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryHistoricalInfoResponse) => void): ClientUnaryCall;
historicalInfo(request: QueryHistoricalInfoRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryHistoricalInfoResponse) => void): ClientUnaryCall;
/** Pool queries the pool info. */
pool(request: QueryPoolRequest, callback: (error: ServiceError | null, response: QueryPoolResponse) => void): ClientUnaryCall;
pool(request: QueryPoolRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPoolResponse) => void): ClientUnaryCall;
pool(request: QueryPoolRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPoolResponse) => void): ClientUnaryCall;
/** Parameters queries the staking parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -496,0 +702,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -146,7 +148,23 @@ import { Description, CommissionRates } from "../../../cosmos/staking/v1beta1/staking";

/** Msg defines the staking Msg service. */
export interface Msg {
export declare const MsgService: {
/** CreateValidator defines a method for creating a new validator. */
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
readonly createValidator: {
readonly path: "/cosmos.staking.v1beta1.Msg/CreateValidator";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgCreateValidator) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgCreateValidator;
readonly responseSerialize: (value: MsgCreateValidatorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgCreateValidatorResponse;
};
/** EditValidator defines a method for editing an existing validator. */
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
readonly editValidator: {
readonly path: "/cosmos.staking.v1beta1.Msg/EditValidator";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgEditValidator) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgEditValidator;
readonly responseSerialize: (value: MsgEditValidatorResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgEditValidatorResponse;
};
/**

@@ -156,3 +174,11 @@ * Delegate defines a method for performing a delegation of coins

*/
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
readonly delegate: {
readonly path: "/cosmos.staking.v1beta1.Msg/Delegate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgDelegate) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgDelegate;
readonly responseSerialize: (value: MsgDelegateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgDelegateResponse;
};
/**

@@ -162,3 +188,11 @@ * BeginRedelegate defines a method for performing a redelegation

*/
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
readonly beginRedelegate: {
readonly path: "/cosmos.staking.v1beta1.Msg/BeginRedelegate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgBeginRedelegate) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgBeginRedelegate;
readonly responseSerialize: (value: MsgBeginRedelegateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgBeginRedelegateResponse;
};
/**

@@ -168,16 +202,65 @@ * Undelegate defines a method for performing an undelegation from a

*/
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
readonly undelegate: {
readonly path: "/cosmos.staking.v1beta1.Msg/Undelegate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgUndelegate) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgUndelegate;
readonly responseSerialize: (value: MsgUndelegateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgUndelegateResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** CreateValidator defines a method for creating a new validator. */
createValidator: handleUnaryCall<MsgCreateValidator, MsgCreateValidatorResponse>;
/** EditValidator defines a method for editing an existing validator. */
editValidator: handleUnaryCall<MsgEditValidator, MsgEditValidatorResponse>;
/**
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*/
delegate: handleUnaryCall<MsgDelegate, MsgDelegateResponse>;
/**
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*/
beginRedelegate: handleUnaryCall<MsgBeginRedelegate, MsgBeginRedelegateResponse>;
/**
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*/
undelegate: handleUnaryCall<MsgUndelegate, MsgUndelegateResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
CreateValidator(request: MsgCreateValidator): Promise<MsgCreateValidatorResponse>;
EditValidator(request: MsgEditValidator): Promise<MsgEditValidatorResponse>;
Delegate(request: MsgDelegate): Promise<MsgDelegateResponse>;
BeginRedelegate(request: MsgBeginRedelegate): Promise<MsgBeginRedelegateResponse>;
Undelegate(request: MsgUndelegate): Promise<MsgUndelegateResponse>;
export interface MsgClient extends Client {
/** CreateValidator defines a method for creating a new validator. */
createValidator(request: MsgCreateValidator, callback: (error: ServiceError | null, response: MsgCreateValidatorResponse) => void): ClientUnaryCall;
createValidator(request: MsgCreateValidator, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgCreateValidatorResponse) => void): ClientUnaryCall;
createValidator(request: MsgCreateValidator, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgCreateValidatorResponse) => void): ClientUnaryCall;
/** EditValidator defines a method for editing an existing validator. */
editValidator(request: MsgEditValidator, callback: (error: ServiceError | null, response: MsgEditValidatorResponse) => void): ClientUnaryCall;
editValidator(request: MsgEditValidator, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgEditValidatorResponse) => void): ClientUnaryCall;
editValidator(request: MsgEditValidator, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgEditValidatorResponse) => void): ClientUnaryCall;
/**
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*/
delegate(request: MsgDelegate, callback: (error: ServiceError | null, response: MsgDelegateResponse) => void): ClientUnaryCall;
delegate(request: MsgDelegate, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgDelegateResponse) => void): ClientUnaryCall;
delegate(request: MsgDelegate, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgDelegateResponse) => void): ClientUnaryCall;
/**
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*/
beginRedelegate(request: MsgBeginRedelegate, callback: (error: ServiceError | null, response: MsgBeginRedelegateResponse) => void): ClientUnaryCall;
beginRedelegate(request: MsgBeginRedelegate, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgBeginRedelegateResponse) => void): ClientUnaryCall;
beginRedelegate(request: MsgBeginRedelegate, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgBeginRedelegateResponse) => void): ClientUnaryCall;
/**
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*/
undelegate(request: MsgUndelegate, callback: (error: ServiceError | null, response: MsgUndelegateResponse) => void): ClientUnaryCall;
undelegate(request: MsgUndelegate, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgUndelegateResponse) => void): ClientUnaryCall;
undelegate(request: MsgUndelegate, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgUndelegateResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -184,0 +267,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgUndelegateResponse = exports.MsgUndelegate = exports.MsgBeginRedelegateResponse = exports.MsgBeginRedelegate = exports.MsgDelegateResponse = exports.MsgDelegate = exports.MsgEditValidatorResponse = exports.MsgEditValidator = exports.MsgCreateValidatorResponse = exports.MsgCreateValidator = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -780,38 +781,65 @@ const staking_1 = require("../../../cosmos/staking/v1beta1/staking");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.CreateValidator = this.CreateValidator.bind(this);
this.EditValidator = this.EditValidator.bind(this);
this.Delegate = this.Delegate.bind(this);
this.BeginRedelegate = this.BeginRedelegate.bind(this);
this.Undelegate = this.Undelegate.bind(this);
}
CreateValidator(request) {
const data = exports.MsgCreateValidator.encode(request).finish();
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", data);
return promise.then((data) => exports.MsgCreateValidatorResponse.decode(new minimal_1.default.Reader(data)));
}
EditValidator(request) {
const data = exports.MsgEditValidator.encode(request).finish();
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", data);
return promise.then((data) => exports.MsgEditValidatorResponse.decode(new minimal_1.default.Reader(data)));
}
Delegate(request) {
const data = exports.MsgDelegate.encode(request).finish();
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", data);
return promise.then((data) => exports.MsgDelegateResponse.decode(new minimal_1.default.Reader(data)));
}
BeginRedelegate(request) {
const data = exports.MsgBeginRedelegate.encode(request).finish();
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", data);
return promise.then((data) => exports.MsgBeginRedelegateResponse.decode(new minimal_1.default.Reader(data)));
}
Undelegate(request) {
const data = exports.MsgUndelegate.encode(request).finish();
const promise = this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", data);
return promise.then((data) => exports.MsgUndelegateResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the staking Msg service. */
exports.MsgService = {
/** CreateValidator defines a method for creating a new validator. */
createValidator: {
path: "/cosmos.staking.v1beta1.Msg/CreateValidator",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgCreateValidator.encode(value).finish()),
requestDeserialize: (value) => exports.MsgCreateValidator.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgCreateValidatorResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgCreateValidatorResponse.decode(value),
},
/** EditValidator defines a method for editing an existing validator. */
editValidator: {
path: "/cosmos.staking.v1beta1.Msg/EditValidator",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgEditValidator.encode(value).finish()),
requestDeserialize: (value) => exports.MsgEditValidator.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgEditValidatorResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgEditValidatorResponse.decode(value),
},
/**
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*/
delegate: {
path: "/cosmos.staking.v1beta1.Msg/Delegate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgDelegate.encode(value).finish()),
requestDeserialize: (value) => exports.MsgDelegate.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgDelegateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgDelegateResponse.decode(value),
},
/**
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*/
beginRedelegate: {
path: "/cosmos.staking.v1beta1.Msg/BeginRedelegate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgBeginRedelegate.encode(value).finish()),
requestDeserialize: (value) => exports.MsgBeginRedelegate.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgBeginRedelegateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgBeginRedelegateResponse.decode(value),
},
/**
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*/
undelegate: {
path: "/cosmos.staking.v1beta1.Msg/Undelegate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgUndelegate.encode(value).finish()),
requestDeserialize: (value) => exports.MsgUndelegate.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgUndelegateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgUndelegateResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "cosmos.staking.v1beta1.Msg");
function toTimestamp(date) {

@@ -818,0 +846,0 @@ const seconds = numberToLong(date.getTime() / 1000);

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -179,23 +181,73 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";

/** Service defines a gRPC service for interacting with transactions. */
export interface Service {
export declare const ServiceService: {
/** Simulate simulates executing a transaction for estimating gas usage. */
Simulate(request: SimulateRequest): Promise<SimulateResponse>;
readonly simulate: {
readonly path: "/cosmos.tx.v1beta1.Service/Simulate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: SimulateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => SimulateRequest;
readonly responseSerialize: (value: SimulateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => SimulateResponse;
};
/** GetTx fetches a tx by hash. */
GetTx(request: GetTxRequest): Promise<GetTxResponse>;
readonly getTx: {
readonly path: "/cosmos.tx.v1beta1.Service/GetTx";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetTxRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetTxRequest;
readonly responseSerialize: (value: GetTxResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetTxResponse;
};
/** BroadcastTx broadcast transaction. */
BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
readonly broadcastTx: {
readonly path: "/cosmos.tx.v1beta1.Service/BroadcastTx";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: BroadcastTxRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => BroadcastTxRequest;
readonly responseSerialize: (value: BroadcastTxResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => BroadcastTxResponse;
};
/** GetTxsEvent fetches txs by event. */
GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
readonly getTxsEvent: {
readonly path: "/cosmos.tx.v1beta1.Service/GetTxsEvent";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetTxsEventRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetTxsEventRequest;
readonly responseSerialize: (value: GetTxsEventResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => GetTxsEventResponse;
};
};
export interface ServiceServer extends UntypedServiceImplementation {
/** Simulate simulates executing a transaction for estimating gas usage. */
simulate: handleUnaryCall<SimulateRequest, SimulateResponse>;
/** GetTx fetches a tx by hash. */
getTx: handleUnaryCall<GetTxRequest, GetTxResponse>;
/** BroadcastTx broadcast transaction. */
broadcastTx: handleUnaryCall<BroadcastTxRequest, BroadcastTxResponse>;
/** GetTxsEvent fetches txs by event. */
getTxsEvent: handleUnaryCall<GetTxsEventRequest, GetTxsEventResponse>;
}
export declare class ServiceClientImpl implements Service {
private readonly rpc;
constructor(rpc: Rpc);
Simulate(request: SimulateRequest): Promise<SimulateResponse>;
GetTx(request: GetTxRequest): Promise<GetTxResponse>;
BroadcastTx(request: BroadcastTxRequest): Promise<BroadcastTxResponse>;
GetTxsEvent(request: GetTxsEventRequest): Promise<GetTxsEventResponse>;
export interface ServiceClient extends Client {
/** Simulate simulates executing a transaction for estimating gas usage. */
simulate(request: SimulateRequest, callback: (error: ServiceError | null, response: SimulateResponse) => void): ClientUnaryCall;
simulate(request: SimulateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: SimulateResponse) => void): ClientUnaryCall;
simulate(request: SimulateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: SimulateResponse) => void): ClientUnaryCall;
/** GetTx fetches a tx by hash. */
getTx(request: GetTxRequest, callback: (error: ServiceError | null, response: GetTxResponse) => void): ClientUnaryCall;
getTx(request: GetTxRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetTxResponse) => void): ClientUnaryCall;
getTx(request: GetTxRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTxResponse) => void): ClientUnaryCall;
/** BroadcastTx broadcast transaction. */
broadcastTx(request: BroadcastTxRequest, callback: (error: ServiceError | null, response: BroadcastTxResponse) => void): ClientUnaryCall;
broadcastTx(request: BroadcastTxRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: BroadcastTxResponse) => void): ClientUnaryCall;
broadcastTx(request: BroadcastTxRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BroadcastTxResponse) => void): ClientUnaryCall;
/** GetTxsEvent fetches txs by event. */
getTxsEvent(request: GetTxsEventRequest, callback: (error: ServiceError | null, response: GetTxsEventResponse) => void): ClientUnaryCall;
getTxsEvent(request: GetTxsEventRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: GetTxsEventResponse) => void): ClientUnaryCall;
getTxsEvent(request: GetTxsEventRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetTxsEventResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ServiceClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ServiceClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -202,0 +254,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceClientImpl = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = exports.protobufPackage = void 0;
exports.ServiceClient = exports.ServiceService = exports.GetTxResponse = exports.GetTxRequest = exports.SimulateResponse = exports.SimulateRequest = exports.BroadcastTxResponse = exports.BroadcastTxRequest = exports.GetTxsEventResponse = exports.GetTxsEventRequest = exports.broadcastModeToJSON = exports.broadcastModeFromJSON = exports.BroadcastMode = exports.orderByToJSON = exports.orderByFromJSON = exports.OrderBy = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -698,32 +699,46 @@ const pagination_1 = require("../../../cosmos/base/query/v1beta1/pagination");

};
class ServiceClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Simulate = this.Simulate.bind(this);
this.GetTx = this.GetTx.bind(this);
this.BroadcastTx = this.BroadcastTx.bind(this);
this.GetTxsEvent = this.GetTxsEvent.bind(this);
}
Simulate(request) {
const data = exports.SimulateRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "Simulate", data);
return promise.then((data) => exports.SimulateResponse.decode(new minimal_1.default.Reader(data)));
}
GetTx(request) {
const data = exports.GetTxRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTx", data);
return promise.then((data) => exports.GetTxResponse.decode(new minimal_1.default.Reader(data)));
}
BroadcastTx(request) {
const data = exports.BroadcastTxRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "BroadcastTx", data);
return promise.then((data) => exports.BroadcastTxResponse.decode(new minimal_1.default.Reader(data)));
}
GetTxsEvent(request) {
const data = exports.GetTxsEventRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetTxsEvent", data);
return promise.then((data) => exports.GetTxsEventResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.ServiceClientImpl = ServiceClientImpl;
/** Service defines a gRPC service for interacting with transactions. */
exports.ServiceService = {
/** Simulate simulates executing a transaction for estimating gas usage. */
simulate: {
path: "/cosmos.tx.v1beta1.Service/Simulate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.SimulateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.SimulateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.SimulateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.SimulateResponse.decode(value),
},
/** GetTx fetches a tx by hash. */
getTx: {
path: "/cosmos.tx.v1beta1.Service/GetTx",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetTxRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetTxRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetTxResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetTxResponse.decode(value),
},
/** BroadcastTx broadcast transaction. */
broadcastTx: {
path: "/cosmos.tx.v1beta1.Service/BroadcastTx",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.BroadcastTxRequest.encode(value).finish()),
requestDeserialize: (value) => exports.BroadcastTxRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.BroadcastTxResponse.encode(value).finish()),
responseDeserialize: (value) => exports.BroadcastTxResponse.decode(value),
},
/** GetTxsEvent fetches txs by event. */
getTxsEvent: {
path: "/cosmos.tx.v1beta1.Service/GetTxsEvent",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.GetTxsEventRequest.encode(value).finish()),
requestDeserialize: (value) => exports.GetTxsEventRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.GetTxsEventResponse.encode(value).finish()),
responseDeserialize: (value) => exports.GetTxsEventResponse.decode(value),
},
};
exports.ServiceClient = grpc_js_1.makeGenericClientConstructor(exports.ServiceService, "cosmos.tx.v1beta1.Service");
var globalThis = (() => {

@@ -730,0 +745,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -130,7 +132,23 @@ import { Plan, ModuleVersion } from "../../../cosmos/upgrade/v1beta1/upgrade";

/** Query defines the gRPC upgrade querier service. */
export interface Query {
export declare const QueryService: {
/** CurrentPlan queries the current upgrade plan. */
CurrentPlan(request: QueryCurrentPlanRequest): Promise<QueryCurrentPlanResponse>;
readonly currentPlan: {
readonly path: "/cosmos.upgrade.v1beta1.Query/CurrentPlan";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryCurrentPlanRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryCurrentPlanRequest;
readonly responseSerialize: (value: QueryCurrentPlanResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryCurrentPlanResponse;
};
/** AppliedPlan queries a previously applied upgrade plan by its name. */
AppliedPlan(request: QueryAppliedPlanRequest): Promise<QueryAppliedPlanResponse>;
readonly appliedPlan: {
readonly path: "/cosmos.upgrade.v1beta1.Query/AppliedPlan";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAppliedPlanRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAppliedPlanRequest;
readonly responseSerialize: (value: QueryAppliedPlanResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAppliedPlanResponse;
};
/**

@@ -142,17 +160,61 @@ * UpgradedConsensusState queries the consensus state that will serve

*/
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
readonly upgradedConsensusState: {
readonly path: "/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUpgradedConsensusStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUpgradedConsensusStateRequest;
readonly responseSerialize: (value: QueryUpgradedConsensusStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUpgradedConsensusStateResponse;
};
/** ModuleVersions queries the list of module versions from state. */
ModuleVersions(request: QueryModuleVersionsRequest): Promise<QueryModuleVersionsResponse>;
readonly moduleVersions: {
readonly path: "/cosmos.upgrade.v1beta1.Query/ModuleVersions";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryModuleVersionsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryModuleVersionsRequest;
readonly responseSerialize: (value: QueryModuleVersionsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryModuleVersionsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** CurrentPlan queries the current upgrade plan. */
currentPlan: handleUnaryCall<QueryCurrentPlanRequest, QueryCurrentPlanResponse>;
/** AppliedPlan queries a previously applied upgrade plan by its name. */
appliedPlan: handleUnaryCall<QueryAppliedPlanRequest, QueryAppliedPlanResponse>;
/**
* UpgradedConsensusState queries the consensus state that will serve
* as a trusted kernel for the next version of this chain. It will only be
* stored at the last height of this chain.
* UpgradedConsensusState RPC not supported with legacy querier
*/
upgradedConsensusState: handleUnaryCall<QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse>;
/** ModuleVersions queries the list of module versions from state. */
moduleVersions: handleUnaryCall<QueryModuleVersionsRequest, QueryModuleVersionsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
CurrentPlan(request: QueryCurrentPlanRequest): Promise<QueryCurrentPlanResponse>;
AppliedPlan(request: QueryAppliedPlanRequest): Promise<QueryAppliedPlanResponse>;
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
ModuleVersions(request: QueryModuleVersionsRequest): Promise<QueryModuleVersionsResponse>;
export interface QueryClient extends Client {
/** CurrentPlan queries the current upgrade plan. */
currentPlan(request: QueryCurrentPlanRequest, callback: (error: ServiceError | null, response: QueryCurrentPlanResponse) => void): ClientUnaryCall;
currentPlan(request: QueryCurrentPlanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryCurrentPlanResponse) => void): ClientUnaryCall;
currentPlan(request: QueryCurrentPlanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryCurrentPlanResponse) => void): ClientUnaryCall;
/** AppliedPlan queries a previously applied upgrade plan by its name. */
appliedPlan(request: QueryAppliedPlanRequest, callback: (error: ServiceError | null, response: QueryAppliedPlanResponse) => void): ClientUnaryCall;
appliedPlan(request: QueryAppliedPlanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAppliedPlanResponse) => void): ClientUnaryCall;
appliedPlan(request: QueryAppliedPlanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAppliedPlanResponse) => void): ClientUnaryCall;
/**
* UpgradedConsensusState queries the consensus state that will serve
* as a trusted kernel for the next version of this chain. It will only be
* stored at the last height of this chain.
* UpgradedConsensusState RPC not supported with legacy querier
*/
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
/** ModuleVersions queries the list of module versions from state. */
moduleVersions(request: QueryModuleVersionsRequest, callback: (error: ServiceError | null, response: QueryModuleVersionsResponse) => void): ClientUnaryCall;
moduleVersions(request: QueryModuleVersionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryModuleVersionsResponse) => void): ClientUnaryCall;
moduleVersions(request: QueryModuleVersionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryModuleVersionsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -159,0 +221,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryModuleVersionsResponse = exports.QueryModuleVersionsRequest = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryAppliedPlanResponse = exports.QueryAppliedPlanRequest = exports.QueryCurrentPlanResponse = exports.QueryCurrentPlanRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryModuleVersionsResponse = exports.QueryModuleVersionsRequest = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryAppliedPlanResponse = exports.QueryAppliedPlanRequest = exports.QueryCurrentPlanResponse = exports.QueryCurrentPlanRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -408,32 +409,51 @@ const upgrade_1 = require("../../../cosmos/upgrade/v1beta1/upgrade");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.CurrentPlan = this.CurrentPlan.bind(this);
this.AppliedPlan = this.AppliedPlan.bind(this);
this.UpgradedConsensusState = this.UpgradedConsensusState.bind(this);
this.ModuleVersions = this.ModuleVersions.bind(this);
}
CurrentPlan(request) {
const data = exports.QueryCurrentPlanRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "CurrentPlan", data);
return promise.then((data) => exports.QueryCurrentPlanResponse.decode(new minimal_1.default.Reader(data)));
}
AppliedPlan(request) {
const data = exports.QueryAppliedPlanRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "AppliedPlan", data);
return promise.then((data) => exports.QueryAppliedPlanResponse.decode(new minimal_1.default.Reader(data)));
}
UpgradedConsensusState(request) {
const data = exports.QueryUpgradedConsensusStateRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "UpgradedConsensusState", data);
return promise.then((data) => exports.QueryUpgradedConsensusStateResponse.decode(new minimal_1.default.Reader(data)));
}
ModuleVersions(request) {
const data = exports.QueryModuleVersionsRequest.encode(request).finish();
const promise = this.rpc.request("cosmos.upgrade.v1beta1.Query", "ModuleVersions", data);
return promise.then((data) => exports.QueryModuleVersionsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC upgrade querier service. */
exports.QueryService = {
/** CurrentPlan queries the current upgrade plan. */
currentPlan: {
path: "/cosmos.upgrade.v1beta1.Query/CurrentPlan",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryCurrentPlanRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryCurrentPlanRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryCurrentPlanResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryCurrentPlanResponse.decode(value),
},
/** AppliedPlan queries a previously applied upgrade plan by its name. */
appliedPlan: {
path: "/cosmos.upgrade.v1beta1.Query/AppliedPlan",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAppliedPlanRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAppliedPlanRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAppliedPlanResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAppliedPlanResponse.decode(value),
},
/**
* UpgradedConsensusState queries the consensus state that will serve
* as a trusted kernel for the next version of this chain. It will only be
* stored at the last height of this chain.
* UpgradedConsensusState RPC not supported with legacy querier
*/
upgradedConsensusState: {
path: "/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryUpgradedConsensusStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryUpgradedConsensusStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryUpgradedConsensusStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryUpgradedConsensusStateResponse.decode(value),
},
/** ModuleVersions queries the list of module versions from state. */
moduleVersions: {
path: "/cosmos.upgrade.v1beta1.Query/ModuleVersions",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryModuleVersionsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryModuleVersionsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryModuleVersionsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryModuleVersionsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "cosmos.upgrade.v1beta1.Query");
var globalThis = (() => {

@@ -440,0 +460,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -91,20 +93,57 @@ import { DenomTrace, Params } from "../../../../ibc/applications/transfer/v1/transfer";

/** Query provides defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** DenomTrace queries a denomination trace information. */
DenomTrace(request: QueryDenomTraceRequest): Promise<QueryDenomTraceResponse>;
readonly denomTrace: {
readonly path: "/ibc.applications.transfer.v1.Query/DenomTrace";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDenomTraceRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDenomTraceRequest;
readonly responseSerialize: (value: QueryDenomTraceResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDenomTraceResponse;
};
/** DenomTraces queries all denomination traces. */
DenomTraces(request: QueryDenomTracesRequest): Promise<QueryDenomTracesResponse>;
readonly denomTraces: {
readonly path: "/ibc.applications.transfer.v1.Query/DenomTraces";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryDenomTracesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryDenomTracesRequest;
readonly responseSerialize: (value: QueryDenomTracesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryDenomTracesResponse;
};
/** Params queries all parameters of the ibc-transfer module. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/ibc.applications.transfer.v1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** DenomTrace queries a denomination trace information. */
denomTrace: handleUnaryCall<QueryDenomTraceRequest, QueryDenomTraceResponse>;
/** DenomTraces queries all denomination traces. */
denomTraces: handleUnaryCall<QueryDenomTracesRequest, QueryDenomTracesResponse>;
/** Params queries all parameters of the ibc-transfer module. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
DenomTrace(request: QueryDenomTraceRequest): Promise<QueryDenomTraceResponse>;
DenomTraces(request: QueryDenomTracesRequest): Promise<QueryDenomTracesResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** DenomTrace queries a denomination trace information. */
denomTrace(request: QueryDenomTraceRequest, callback: (error: ServiceError | null, response: QueryDenomTraceResponse) => void): ClientUnaryCall;
denomTrace(request: QueryDenomTraceRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDenomTraceResponse) => void): ClientUnaryCall;
denomTrace(request: QueryDenomTraceRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDenomTraceResponse) => void): ClientUnaryCall;
/** DenomTraces queries all denomination traces. */
denomTraces(request: QueryDenomTracesRequest, callback: (error: ServiceError | null, response: QueryDenomTracesResponse) => void): ClientUnaryCall;
denomTraces(request: QueryDenomTracesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryDenomTracesResponse) => void): ClientUnaryCall;
denomTraces(request: QueryDenomTracesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryDenomTracesResponse) => void): ClientUnaryCall;
/** Params queries all parameters of the ibc-transfer module. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -111,0 +150,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryDenomTracesResponse = exports.QueryDenomTracesRequest = exports.QueryDenomTraceResponse = exports.QueryDenomTraceRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -329,26 +330,36 @@ const transfer_1 = require("../../../../ibc/applications/transfer/v1/transfer");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.DenomTrace = this.DenomTrace.bind(this);
this.DenomTraces = this.DenomTraces.bind(this);
this.Params = this.Params.bind(this);
}
DenomTrace(request) {
const data = exports.QueryDenomTraceRequest.encode(request).finish();
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTrace", data);
return promise.then((data) => exports.QueryDenomTraceResponse.decode(new minimal_1.default.Reader(data)));
}
DenomTraces(request) {
const data = exports.QueryDenomTracesRequest.encode(request).finish();
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "DenomTraces", data);
return promise.then((data) => exports.QueryDenomTracesResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("ibc.applications.transfer.v1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query provides defines the gRPC querier service. */
exports.QueryService = {
/** DenomTrace queries a denomination trace information. */
denomTrace: {
path: "/ibc.applications.transfer.v1.Query/DenomTrace",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDenomTraceRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDenomTraceRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDenomTraceResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDenomTraceResponse.decode(value),
},
/** DenomTraces queries all denomination traces. */
denomTraces: {
path: "/ibc.applications.transfer.v1.Query/DenomTraces",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryDenomTracesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryDenomTracesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryDenomTracesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryDenomTracesResponse.decode(value),
},
/** Params queries all parameters of the ibc-transfer module. */
params: {
path: "/ibc.applications.transfer.v1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "ibc.applications.transfer.v1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -355,0 +366,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -51,14 +53,25 @@ import { Coin } from "../../../../cosmos/base/v1beta1/coin";

/** Msg defines the ibc/transfer Msg service. */
export interface Msg {
export declare const MsgService: {
/** Transfer defines a rpc handler method for MsgTransfer. */
Transfer(request: MsgTransfer): Promise<MsgTransferResponse>;
readonly transfer: {
readonly path: "/ibc.applications.transfer.v1.Msg/Transfer";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgTransfer) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgTransfer;
readonly responseSerialize: (value: MsgTransferResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgTransferResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** Transfer defines a rpc handler method for MsgTransfer. */
transfer: handleUnaryCall<MsgTransfer, MsgTransferResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
Transfer(request: MsgTransfer): Promise<MsgTransferResponse>;
export interface MsgClient extends Client {
/** Transfer defines a rpc handler method for MsgTransfer. */
transfer(request: MsgTransfer, callback: (error: ServiceError | null, response: MsgTransferResponse) => void): ClientUnaryCall;
transfer(request: MsgTransfer, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgTransferResponse) => void): ClientUnaryCall;
transfer(request: MsgTransfer, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgTransferResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -65,0 +78,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgTransferResponse = exports.MsgTransfer = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgTransferResponse = exports.MsgTransfer = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -219,14 +220,16 @@ const coin_1 = require("../../../../cosmos/base/v1beta1/coin");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Transfer = this.Transfer.bind(this);
}
Transfer(request) {
const data = exports.MsgTransfer.encode(request).finish();
const promise = this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", data);
return promise.then((data) => exports.MsgTransferResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the ibc/transfer Msg service. */
exports.MsgService = {
/** Transfer defines a rpc handler method for MsgTransfer. */
transfer: {
path: "/ibc.applications.transfer.v1.Msg/Transfer",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgTransfer.encode(value).finish()),
requestDeserialize: (value) => exports.MsgTransfer.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgTransferResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgTransferResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "ibc.applications.transfer.v1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -233,0 +236,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -484,7 +486,23 @@ import { Channel, IdentifiedChannel, PacketState } from "../../../../ibc/core/channel/v1/channel";

/** Query provides defines the gRPC querier service */
export interface Query {
export declare const QueryService: {
/** Channel queries an IBC Channel. */
Channel(request: QueryChannelRequest): Promise<QueryChannelResponse>;
readonly channel: {
readonly path: "/ibc.core.channel.v1.Query/Channel";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryChannelRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryChannelRequest;
readonly responseSerialize: (value: QueryChannelResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryChannelResponse;
};
/** Channels queries all the IBC channels of a chain. */
Channels(request: QueryChannelsRequest): Promise<QueryChannelsResponse>;
readonly channels: {
readonly path: "/ibc.core.channel.v1.Query/Channels";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryChannelsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryChannelsRequest;
readonly responseSerialize: (value: QueryChannelsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryChannelsResponse;
};
/**

@@ -494,3 +512,11 @@ * ConnectionChannels queries all the channels associated with a connection

*/
ConnectionChannels(request: QueryConnectionChannelsRequest): Promise<QueryConnectionChannelsResponse>;
readonly connectionChannels: {
readonly path: "/ibc.core.channel.v1.Query/ConnectionChannels";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConnectionChannelsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConnectionChannelsRequest;
readonly responseSerialize: (value: QueryConnectionChannelsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConnectionChannelsResponse;
};
/**

@@ -500,3 +526,11 @@ * ChannelClientState queries for the client state for the channel associated

*/
ChannelClientState(request: QueryChannelClientStateRequest): Promise<QueryChannelClientStateResponse>;
readonly channelClientState: {
readonly path: "/ibc.core.channel.v1.Query/ChannelClientState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryChannelClientStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryChannelClientStateRequest;
readonly responseSerialize: (value: QueryChannelClientStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryChannelClientStateResponse;
};
/**

@@ -506,5 +540,21 @@ * ChannelConsensusState queries for the consensus state for the channel

*/
ChannelConsensusState(request: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponse>;
readonly channelConsensusState: {
readonly path: "/ibc.core.channel.v1.Query/ChannelConsensusState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryChannelConsensusStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryChannelConsensusStateRequest;
readonly responseSerialize: (value: QueryChannelConsensusStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryChannelConsensusStateResponse;
};
/** PacketCommitment queries a stored packet commitment hash. */
PacketCommitment(request: QueryPacketCommitmentRequest): Promise<QueryPacketCommitmentResponse>;
readonly packetCommitment: {
readonly path: "/ibc.core.channel.v1.Query/PacketCommitment";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPacketCommitmentRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPacketCommitmentRequest;
readonly responseSerialize: (value: QueryPacketCommitmentResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPacketCommitmentResponse;
};
/**

@@ -514,3 +564,11 @@ * PacketCommitments returns all the packet commitments hashes associated

*/
PacketCommitments(request: QueryPacketCommitmentsRequest): Promise<QueryPacketCommitmentsResponse>;
readonly packetCommitments: {
readonly path: "/ibc.core.channel.v1.Query/PacketCommitments";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPacketCommitmentsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPacketCommitmentsRequest;
readonly responseSerialize: (value: QueryPacketCommitmentsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPacketCommitmentsResponse;
};
/**

@@ -520,5 +578,21 @@ * PacketReceipt queries if a given packet sequence has been received on the

*/
PacketReceipt(request: QueryPacketReceiptRequest): Promise<QueryPacketReceiptResponse>;
readonly packetReceipt: {
readonly path: "/ibc.core.channel.v1.Query/PacketReceipt";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPacketReceiptRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPacketReceiptRequest;
readonly responseSerialize: (value: QueryPacketReceiptResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPacketReceiptResponse;
};
/** PacketAcknowledgement queries a stored packet acknowledgement hash. */
PacketAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise<QueryPacketAcknowledgementResponse>;
readonly packetAcknowledgement: {
readonly path: "/ibc.core.channel.v1.Query/PacketAcknowledgement";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPacketAcknowledgementRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPacketAcknowledgementRequest;
readonly responseSerialize: (value: QueryPacketAcknowledgementResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPacketAcknowledgementResponse;
};
/**

@@ -528,3 +602,11 @@ * PacketAcknowledgements returns all the packet acknowledgements associated

*/
PacketAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise<QueryPacketAcknowledgementsResponse>;
readonly packetAcknowledgements: {
readonly path: "/ibc.core.channel.v1.Query/PacketAcknowledgements";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryPacketAcknowledgementsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryPacketAcknowledgementsRequest;
readonly responseSerialize: (value: QueryPacketAcknowledgementsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryPacketAcknowledgementsResponse;
};
/**

@@ -534,3 +616,11 @@ * UnreceivedPackets returns all the unreceived IBC packets associated with a

*/
UnreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise<QueryUnreceivedPacketsResponse>;
readonly unreceivedPackets: {
readonly path: "/ibc.core.channel.v1.Query/UnreceivedPackets";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUnreceivedPacketsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUnreceivedPacketsRequest;
readonly responseSerialize: (value: QueryUnreceivedPacketsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUnreceivedPacketsResponse;
};
/**

@@ -540,26 +630,153 @@ * UnreceivedAcks returns all the unreceived IBC acknowledgements associated

*/
UnreceivedAcks(request: QueryUnreceivedAcksRequest): Promise<QueryUnreceivedAcksResponse>;
readonly unreceivedAcks: {
readonly path: "/ibc.core.channel.v1.Query/UnreceivedAcks";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUnreceivedAcksRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUnreceivedAcksRequest;
readonly responseSerialize: (value: QueryUnreceivedAcksResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUnreceivedAcksResponse;
};
/** NextSequenceReceive returns the next receive sequence for a given channel. */
NextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise<QueryNextSequenceReceiveResponse>;
readonly nextSequenceReceive: {
readonly path: "/ibc.core.channel.v1.Query/NextSequenceReceive";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryNextSequenceReceiveRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryNextSequenceReceiveRequest;
readonly responseSerialize: (value: QueryNextSequenceReceiveResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryNextSequenceReceiveResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Channel queries an IBC Channel. */
channel: handleUnaryCall<QueryChannelRequest, QueryChannelResponse>;
/** Channels queries all the IBC channels of a chain. */
channels: handleUnaryCall<QueryChannelsRequest, QueryChannelsResponse>;
/**
* ConnectionChannels queries all the channels associated with a connection
* end.
*/
connectionChannels: handleUnaryCall<QueryConnectionChannelsRequest, QueryConnectionChannelsResponse>;
/**
* ChannelClientState queries for the client state for the channel associated
* with the provided channel identifiers.
*/
channelClientState: handleUnaryCall<QueryChannelClientStateRequest, QueryChannelClientStateResponse>;
/**
* ChannelConsensusState queries for the consensus state for the channel
* associated with the provided channel identifiers.
*/
channelConsensusState: handleUnaryCall<QueryChannelConsensusStateRequest, QueryChannelConsensusStateResponse>;
/** PacketCommitment queries a stored packet commitment hash. */
packetCommitment: handleUnaryCall<QueryPacketCommitmentRequest, QueryPacketCommitmentResponse>;
/**
* PacketCommitments returns all the packet commitments hashes associated
* with a channel.
*/
packetCommitments: handleUnaryCall<QueryPacketCommitmentsRequest, QueryPacketCommitmentsResponse>;
/**
* PacketReceipt queries if a given packet sequence has been received on the
* queried chain
*/
packetReceipt: handleUnaryCall<QueryPacketReceiptRequest, QueryPacketReceiptResponse>;
/** PacketAcknowledgement queries a stored packet acknowledgement hash. */
packetAcknowledgement: handleUnaryCall<QueryPacketAcknowledgementRequest, QueryPacketAcknowledgementResponse>;
/**
* PacketAcknowledgements returns all the packet acknowledgements associated
* with a channel.
*/
packetAcknowledgements: handleUnaryCall<QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse>;
/**
* UnreceivedPackets returns all the unreceived IBC packets associated with a
* channel and sequences.
*/
unreceivedPackets: handleUnaryCall<QueryUnreceivedPacketsRequest, QueryUnreceivedPacketsResponse>;
/**
* UnreceivedAcks returns all the unreceived IBC acknowledgements associated
* with a channel and sequences.
*/
unreceivedAcks: handleUnaryCall<QueryUnreceivedAcksRequest, QueryUnreceivedAcksResponse>;
/** NextSequenceReceive returns the next receive sequence for a given channel. */
nextSequenceReceive: handleUnaryCall<QueryNextSequenceReceiveRequest, QueryNextSequenceReceiveResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Channel(request: QueryChannelRequest): Promise<QueryChannelResponse>;
Channels(request: QueryChannelsRequest): Promise<QueryChannelsResponse>;
ConnectionChannels(request: QueryConnectionChannelsRequest): Promise<QueryConnectionChannelsResponse>;
ChannelClientState(request: QueryChannelClientStateRequest): Promise<QueryChannelClientStateResponse>;
ChannelConsensusState(request: QueryChannelConsensusStateRequest): Promise<QueryChannelConsensusStateResponse>;
PacketCommitment(request: QueryPacketCommitmentRequest): Promise<QueryPacketCommitmentResponse>;
PacketCommitments(request: QueryPacketCommitmentsRequest): Promise<QueryPacketCommitmentsResponse>;
PacketReceipt(request: QueryPacketReceiptRequest): Promise<QueryPacketReceiptResponse>;
PacketAcknowledgement(request: QueryPacketAcknowledgementRequest): Promise<QueryPacketAcknowledgementResponse>;
PacketAcknowledgements(request: QueryPacketAcknowledgementsRequest): Promise<QueryPacketAcknowledgementsResponse>;
UnreceivedPackets(request: QueryUnreceivedPacketsRequest): Promise<QueryUnreceivedPacketsResponse>;
UnreceivedAcks(request: QueryUnreceivedAcksRequest): Promise<QueryUnreceivedAcksResponse>;
NextSequenceReceive(request: QueryNextSequenceReceiveRequest): Promise<QueryNextSequenceReceiveResponse>;
export interface QueryClient extends Client {
/** Channel queries an IBC Channel. */
channel(request: QueryChannelRequest, callback: (error: ServiceError | null, response: QueryChannelResponse) => void): ClientUnaryCall;
channel(request: QueryChannelRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryChannelResponse) => void): ClientUnaryCall;
channel(request: QueryChannelRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryChannelResponse) => void): ClientUnaryCall;
/** Channels queries all the IBC channels of a chain. */
channels(request: QueryChannelsRequest, callback: (error: ServiceError | null, response: QueryChannelsResponse) => void): ClientUnaryCall;
channels(request: QueryChannelsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryChannelsResponse) => void): ClientUnaryCall;
channels(request: QueryChannelsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryChannelsResponse) => void): ClientUnaryCall;
/**
* ConnectionChannels queries all the channels associated with a connection
* end.
*/
connectionChannels(request: QueryConnectionChannelsRequest, callback: (error: ServiceError | null, response: QueryConnectionChannelsResponse) => void): ClientUnaryCall;
connectionChannels(request: QueryConnectionChannelsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConnectionChannelsResponse) => void): ClientUnaryCall;
connectionChannels(request: QueryConnectionChannelsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConnectionChannelsResponse) => void): ClientUnaryCall;
/**
* ChannelClientState queries for the client state for the channel associated
* with the provided channel identifiers.
*/
channelClientState(request: QueryChannelClientStateRequest, callback: (error: ServiceError | null, response: QueryChannelClientStateResponse) => void): ClientUnaryCall;
channelClientState(request: QueryChannelClientStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryChannelClientStateResponse) => void): ClientUnaryCall;
channelClientState(request: QueryChannelClientStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryChannelClientStateResponse) => void): ClientUnaryCall;
/**
* ChannelConsensusState queries for the consensus state for the channel
* associated with the provided channel identifiers.
*/
channelConsensusState(request: QueryChannelConsensusStateRequest, callback: (error: ServiceError | null, response: QueryChannelConsensusStateResponse) => void): ClientUnaryCall;
channelConsensusState(request: QueryChannelConsensusStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryChannelConsensusStateResponse) => void): ClientUnaryCall;
channelConsensusState(request: QueryChannelConsensusStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryChannelConsensusStateResponse) => void): ClientUnaryCall;
/** PacketCommitment queries a stored packet commitment hash. */
packetCommitment(request: QueryPacketCommitmentRequest, callback: (error: ServiceError | null, response: QueryPacketCommitmentResponse) => void): ClientUnaryCall;
packetCommitment(request: QueryPacketCommitmentRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPacketCommitmentResponse) => void): ClientUnaryCall;
packetCommitment(request: QueryPacketCommitmentRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPacketCommitmentResponse) => void): ClientUnaryCall;
/**
* PacketCommitments returns all the packet commitments hashes associated
* with a channel.
*/
packetCommitments(request: QueryPacketCommitmentsRequest, callback: (error: ServiceError | null, response: QueryPacketCommitmentsResponse) => void): ClientUnaryCall;
packetCommitments(request: QueryPacketCommitmentsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPacketCommitmentsResponse) => void): ClientUnaryCall;
packetCommitments(request: QueryPacketCommitmentsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPacketCommitmentsResponse) => void): ClientUnaryCall;
/**
* PacketReceipt queries if a given packet sequence has been received on the
* queried chain
*/
packetReceipt(request: QueryPacketReceiptRequest, callback: (error: ServiceError | null, response: QueryPacketReceiptResponse) => void): ClientUnaryCall;
packetReceipt(request: QueryPacketReceiptRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPacketReceiptResponse) => void): ClientUnaryCall;
packetReceipt(request: QueryPacketReceiptRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPacketReceiptResponse) => void): ClientUnaryCall;
/** PacketAcknowledgement queries a stored packet acknowledgement hash. */
packetAcknowledgement(request: QueryPacketAcknowledgementRequest, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementResponse) => void): ClientUnaryCall;
packetAcknowledgement(request: QueryPacketAcknowledgementRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementResponse) => void): ClientUnaryCall;
packetAcknowledgement(request: QueryPacketAcknowledgementRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementResponse) => void): ClientUnaryCall;
/**
* PacketAcknowledgements returns all the packet acknowledgements associated
* with a channel.
*/
packetAcknowledgements(request: QueryPacketAcknowledgementsRequest, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementsResponse) => void): ClientUnaryCall;
packetAcknowledgements(request: QueryPacketAcknowledgementsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementsResponse) => void): ClientUnaryCall;
packetAcknowledgements(request: QueryPacketAcknowledgementsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryPacketAcknowledgementsResponse) => void): ClientUnaryCall;
/**
* UnreceivedPackets returns all the unreceived IBC packets associated with a
* channel and sequences.
*/
unreceivedPackets(request: QueryUnreceivedPacketsRequest, callback: (error: ServiceError | null, response: QueryUnreceivedPacketsResponse) => void): ClientUnaryCall;
unreceivedPackets(request: QueryUnreceivedPacketsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryUnreceivedPacketsResponse) => void): ClientUnaryCall;
unreceivedPackets(request: QueryUnreceivedPacketsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUnreceivedPacketsResponse) => void): ClientUnaryCall;
/**
* UnreceivedAcks returns all the unreceived IBC acknowledgements associated
* with a channel and sequences.
*/
unreceivedAcks(request: QueryUnreceivedAcksRequest, callback: (error: ServiceError | null, response: QueryUnreceivedAcksResponse) => void): ClientUnaryCall;
unreceivedAcks(request: QueryUnreceivedAcksRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryUnreceivedAcksResponse) => void): ClientUnaryCall;
unreceivedAcks(request: QueryUnreceivedAcksRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUnreceivedAcksResponse) => void): ClientUnaryCall;
/** NextSequenceReceive returns the next receive sequence for a given channel. */
nextSequenceReceive(request: QueryNextSequenceReceiveRequest, callback: (error: ServiceError | null, response: QueryNextSequenceReceiveResponse) => void): ClientUnaryCall;
nextSequenceReceive(request: QueryNextSequenceReceiveRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryNextSequenceReceiveResponse) => void): ClientUnaryCall;
nextSequenceReceive(request: QueryNextSequenceReceiveRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryNextSequenceReceiveResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -566,0 +783,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -285,13 +287,53 @@ import { Channel, Packet } from "../../../../ibc/core/channel/v1/channel";

/** Msg defines the ibc/channel Msg service. */
export interface Msg {
export declare const MsgService: {
/** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */
ChannelOpenInit(request: MsgChannelOpenInit): Promise<MsgChannelOpenInitResponse>;
readonly channelOpenInit: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelOpenInit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelOpenInit) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelOpenInit;
readonly responseSerialize: (value: MsgChannelOpenInitResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelOpenInitResponse;
};
/** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */
ChannelOpenTry(request: MsgChannelOpenTry): Promise<MsgChannelOpenTryResponse>;
readonly channelOpenTry: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelOpenTry";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelOpenTry) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelOpenTry;
readonly responseSerialize: (value: MsgChannelOpenTryResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelOpenTryResponse;
};
/** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */
ChannelOpenAck(request: MsgChannelOpenAck): Promise<MsgChannelOpenAckResponse>;
readonly channelOpenAck: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelOpenAck";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelOpenAck) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelOpenAck;
readonly responseSerialize: (value: MsgChannelOpenAckResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelOpenAckResponse;
};
/** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */
ChannelOpenConfirm(request: MsgChannelOpenConfirm): Promise<MsgChannelOpenConfirmResponse>;
readonly channelOpenConfirm: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelOpenConfirm";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelOpenConfirm) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelOpenConfirm;
readonly responseSerialize: (value: MsgChannelOpenConfirmResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelOpenConfirmResponse;
};
/** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */
ChannelCloseInit(request: MsgChannelCloseInit): Promise<MsgChannelCloseInitResponse>;
readonly channelCloseInit: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelCloseInit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelCloseInit) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelCloseInit;
readonly responseSerialize: (value: MsgChannelCloseInitResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelCloseInitResponse;
};
/**

@@ -301,29 +343,123 @@ * ChannelCloseConfirm defines a rpc handler method for

*/
ChannelCloseConfirm(request: MsgChannelCloseConfirm): Promise<MsgChannelCloseConfirmResponse>;
readonly channelCloseConfirm: {
readonly path: "/ibc.core.channel.v1.Msg/ChannelCloseConfirm";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgChannelCloseConfirm) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgChannelCloseConfirm;
readonly responseSerialize: (value: MsgChannelCloseConfirmResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgChannelCloseConfirmResponse;
};
/** RecvPacket defines a rpc handler method for MsgRecvPacket. */
RecvPacket(request: MsgRecvPacket): Promise<MsgRecvPacketResponse>;
readonly recvPacket: {
readonly path: "/ibc.core.channel.v1.Msg/RecvPacket";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgRecvPacket) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgRecvPacket;
readonly responseSerialize: (value: MsgRecvPacketResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgRecvPacketResponse;
};
/** Timeout defines a rpc handler method for MsgTimeout. */
Timeout(request: MsgTimeout): Promise<MsgTimeoutResponse>;
readonly timeout: {
readonly path: "/ibc.core.channel.v1.Msg/Timeout";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgTimeout) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgTimeout;
readonly responseSerialize: (value: MsgTimeoutResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgTimeoutResponse;
};
/** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */
TimeoutOnClose(request: MsgTimeoutOnClose): Promise<MsgTimeoutOnCloseResponse>;
readonly timeoutOnClose: {
readonly path: "/ibc.core.channel.v1.Msg/TimeoutOnClose";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgTimeoutOnClose) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgTimeoutOnClose;
readonly responseSerialize: (value: MsgTimeoutOnCloseResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgTimeoutOnCloseResponse;
};
/** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */
Acknowledgement(request: MsgAcknowledgement): Promise<MsgAcknowledgementResponse>;
readonly acknowledgement: {
readonly path: "/ibc.core.channel.v1.Msg/Acknowledgement";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgAcknowledgement) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgAcknowledgement;
readonly responseSerialize: (value: MsgAcknowledgementResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgAcknowledgementResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */
channelOpenInit: handleUnaryCall<MsgChannelOpenInit, MsgChannelOpenInitResponse>;
/** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */
channelOpenTry: handleUnaryCall<MsgChannelOpenTry, MsgChannelOpenTryResponse>;
/** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */
channelOpenAck: handleUnaryCall<MsgChannelOpenAck, MsgChannelOpenAckResponse>;
/** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */
channelOpenConfirm: handleUnaryCall<MsgChannelOpenConfirm, MsgChannelOpenConfirmResponse>;
/** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */
channelCloseInit: handleUnaryCall<MsgChannelCloseInit, MsgChannelCloseInitResponse>;
/**
* ChannelCloseConfirm defines a rpc handler method for
* MsgChannelCloseConfirm.
*/
channelCloseConfirm: handleUnaryCall<MsgChannelCloseConfirm, MsgChannelCloseConfirmResponse>;
/** RecvPacket defines a rpc handler method for MsgRecvPacket. */
recvPacket: handleUnaryCall<MsgRecvPacket, MsgRecvPacketResponse>;
/** Timeout defines a rpc handler method for MsgTimeout. */
timeout: handleUnaryCall<MsgTimeout, MsgTimeoutResponse>;
/** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */
timeoutOnClose: handleUnaryCall<MsgTimeoutOnClose, MsgTimeoutOnCloseResponse>;
/** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */
acknowledgement: handleUnaryCall<MsgAcknowledgement, MsgAcknowledgementResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
ChannelOpenInit(request: MsgChannelOpenInit): Promise<MsgChannelOpenInitResponse>;
ChannelOpenTry(request: MsgChannelOpenTry): Promise<MsgChannelOpenTryResponse>;
ChannelOpenAck(request: MsgChannelOpenAck): Promise<MsgChannelOpenAckResponse>;
ChannelOpenConfirm(request: MsgChannelOpenConfirm): Promise<MsgChannelOpenConfirmResponse>;
ChannelCloseInit(request: MsgChannelCloseInit): Promise<MsgChannelCloseInitResponse>;
ChannelCloseConfirm(request: MsgChannelCloseConfirm): Promise<MsgChannelCloseConfirmResponse>;
RecvPacket(request: MsgRecvPacket): Promise<MsgRecvPacketResponse>;
Timeout(request: MsgTimeout): Promise<MsgTimeoutResponse>;
TimeoutOnClose(request: MsgTimeoutOnClose): Promise<MsgTimeoutOnCloseResponse>;
Acknowledgement(request: MsgAcknowledgement): Promise<MsgAcknowledgementResponse>;
export interface MsgClient extends Client {
/** ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. */
channelOpenInit(request: MsgChannelOpenInit, callback: (error: ServiceError | null, response: MsgChannelOpenInitResponse) => void): ClientUnaryCall;
channelOpenInit(request: MsgChannelOpenInit, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelOpenInitResponse) => void): ClientUnaryCall;
channelOpenInit(request: MsgChannelOpenInit, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelOpenInitResponse) => void): ClientUnaryCall;
/** ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. */
channelOpenTry(request: MsgChannelOpenTry, callback: (error: ServiceError | null, response: MsgChannelOpenTryResponse) => void): ClientUnaryCall;
channelOpenTry(request: MsgChannelOpenTry, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelOpenTryResponse) => void): ClientUnaryCall;
channelOpenTry(request: MsgChannelOpenTry, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelOpenTryResponse) => void): ClientUnaryCall;
/** ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. */
channelOpenAck(request: MsgChannelOpenAck, callback: (error: ServiceError | null, response: MsgChannelOpenAckResponse) => void): ClientUnaryCall;
channelOpenAck(request: MsgChannelOpenAck, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelOpenAckResponse) => void): ClientUnaryCall;
channelOpenAck(request: MsgChannelOpenAck, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelOpenAckResponse) => void): ClientUnaryCall;
/** ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. */
channelOpenConfirm(request: MsgChannelOpenConfirm, callback: (error: ServiceError | null, response: MsgChannelOpenConfirmResponse) => void): ClientUnaryCall;
channelOpenConfirm(request: MsgChannelOpenConfirm, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelOpenConfirmResponse) => void): ClientUnaryCall;
channelOpenConfirm(request: MsgChannelOpenConfirm, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelOpenConfirmResponse) => void): ClientUnaryCall;
/** ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. */
channelCloseInit(request: MsgChannelCloseInit, callback: (error: ServiceError | null, response: MsgChannelCloseInitResponse) => void): ClientUnaryCall;
channelCloseInit(request: MsgChannelCloseInit, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelCloseInitResponse) => void): ClientUnaryCall;
channelCloseInit(request: MsgChannelCloseInit, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelCloseInitResponse) => void): ClientUnaryCall;
/**
* ChannelCloseConfirm defines a rpc handler method for
* MsgChannelCloseConfirm.
*/
channelCloseConfirm(request: MsgChannelCloseConfirm, callback: (error: ServiceError | null, response: MsgChannelCloseConfirmResponse) => void): ClientUnaryCall;
channelCloseConfirm(request: MsgChannelCloseConfirm, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgChannelCloseConfirmResponse) => void): ClientUnaryCall;
channelCloseConfirm(request: MsgChannelCloseConfirm, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgChannelCloseConfirmResponse) => void): ClientUnaryCall;
/** RecvPacket defines a rpc handler method for MsgRecvPacket. */
recvPacket(request: MsgRecvPacket, callback: (error: ServiceError | null, response: MsgRecvPacketResponse) => void): ClientUnaryCall;
recvPacket(request: MsgRecvPacket, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgRecvPacketResponse) => void): ClientUnaryCall;
recvPacket(request: MsgRecvPacket, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgRecvPacketResponse) => void): ClientUnaryCall;
/** Timeout defines a rpc handler method for MsgTimeout. */
timeout(request: MsgTimeout, callback: (error: ServiceError | null, response: MsgTimeoutResponse) => void): ClientUnaryCall;
timeout(request: MsgTimeout, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgTimeoutResponse) => void): ClientUnaryCall;
timeout(request: MsgTimeout, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgTimeoutResponse) => void): ClientUnaryCall;
/** TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. */
timeoutOnClose(request: MsgTimeoutOnClose, callback: (error: ServiceError | null, response: MsgTimeoutOnCloseResponse) => void): ClientUnaryCall;
timeoutOnClose(request: MsgTimeoutOnClose, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgTimeoutOnCloseResponse) => void): ClientUnaryCall;
timeoutOnClose(request: MsgTimeoutOnClose, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgTimeoutOnCloseResponse) => void): ClientUnaryCall;
/** Acknowledgement defines a rpc handler method for MsgAcknowledgement. */
acknowledgement(request: MsgAcknowledgement, callback: (error: ServiceError | null, response: MsgAcknowledgementResponse) => void): ClientUnaryCall;
acknowledgement(request: MsgAcknowledgement, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgAcknowledgementResponse) => void): ClientUnaryCall;
acknowledgement(request: MsgAcknowledgement, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgAcknowledgementResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -330,0 +466,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -266,7 +268,23 @@ import { Any } from "../../../../google/protobuf/any";

/** Query provides defines the gRPC querier service */
export interface Query {
export declare const QueryService: {
/** ClientState queries an IBC light client. */
ClientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
readonly clientState: {
readonly path: "/ibc.core.client.v1.Query/ClientState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryClientStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryClientStateRequest;
readonly responseSerialize: (value: QueryClientStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryClientStateResponse;
};
/** ClientStates queries all the IBC light clients of a chain. */
ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
readonly clientStates: {
readonly path: "/ibc.core.client.v1.Query/ClientStates";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryClientStatesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryClientStatesRequest;
readonly responseSerialize: (value: QueryClientStatesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryClientStatesResponse;
};
/**

@@ -276,3 +294,11 @@ * ConsensusState queries a consensus state associated with a client state at

*/
ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
readonly consensusState: {
readonly path: "/ibc.core.client.v1.Query/ConsensusState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConsensusStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConsensusStateRequest;
readonly responseSerialize: (value: QueryConsensusStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConsensusStateResponse;
};
/**

@@ -282,27 +308,117 @@ * ConsensusStates queries all the consensus state associated with a given

*/
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
readonly consensusStates: {
readonly path: "/ibc.core.client.v1.Query/ConsensusStates";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConsensusStatesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConsensusStatesRequest;
readonly responseSerialize: (value: QueryConsensusStatesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConsensusStatesResponse;
};
/** Status queries the status of an IBC client. */
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
readonly clientStatus: {
readonly path: "/ibc.core.client.v1.Query/ClientStatus";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryClientStatusRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryClientStatusRequest;
readonly responseSerialize: (value: QueryClientStatusResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryClientStatusResponse;
};
/** ClientParams queries all parameters of the ibc client. */
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
readonly clientParams: {
readonly path: "/ibc.core.client.v1.Query/ClientParams";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryClientParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryClientParamsRequest;
readonly responseSerialize: (value: QueryClientParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryClientParamsResponse;
};
/** UpgradedClientState queries an Upgraded IBC light client. */
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
readonly upgradedClientState: {
readonly path: "/ibc.core.client.v1.Query/UpgradedClientState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUpgradedClientStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUpgradedClientStateRequest;
readonly responseSerialize: (value: QueryUpgradedClientStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUpgradedClientStateResponse;
};
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
readonly upgradedConsensusState: {
readonly path: "/ibc.core.client.v1.Query/UpgradedConsensusState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryUpgradedConsensusStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryUpgradedConsensusStateRequest;
readonly responseSerialize: (value: QueryUpgradedConsensusStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryUpgradedConsensusStateResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** ClientState queries an IBC light client. */
clientState: handleUnaryCall<QueryClientStateRequest, QueryClientStateResponse>;
/** ClientStates queries all the IBC light clients of a chain. */
clientStates: handleUnaryCall<QueryClientStatesRequest, QueryClientStatesResponse>;
/**
* ConsensusState queries a consensus state associated with a client state at
* a given height.
*/
consensusState: handleUnaryCall<QueryConsensusStateRequest, QueryConsensusStateResponse>;
/**
* ConsensusStates queries all the consensus state associated with a given
* client.
*/
consensusStates: handleUnaryCall<QueryConsensusStatesRequest, QueryConsensusStatesResponse>;
/** Status queries the status of an IBC client. */
clientStatus: handleUnaryCall<QueryClientStatusRequest, QueryClientStatusResponse>;
/** ClientParams queries all parameters of the ibc client. */
clientParams: handleUnaryCall<QueryClientParamsRequest, QueryClientParamsResponse>;
/** UpgradedClientState queries an Upgraded IBC light client. */
upgradedClientState: handleUnaryCall<QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse>;
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
upgradedConsensusState: handleUnaryCall<QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
ClientState(request: QueryClientStateRequest): Promise<QueryClientStateResponse>;
ClientStates(request: QueryClientStatesRequest): Promise<QueryClientStatesResponse>;
ConsensusState(request: QueryConsensusStateRequest): Promise<QueryConsensusStateResponse>;
ConsensusStates(request: QueryConsensusStatesRequest): Promise<QueryConsensusStatesResponse>;
ClientStatus(request: QueryClientStatusRequest): Promise<QueryClientStatusResponse>;
ClientParams(request: QueryClientParamsRequest): Promise<QueryClientParamsResponse>;
UpgradedClientState(request: QueryUpgradedClientStateRequest): Promise<QueryUpgradedClientStateResponse>;
UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
export interface QueryClient extends Client {
/** ClientState queries an IBC light client. */
clientState(request: QueryClientStateRequest, callback: (error: ServiceError | null, response: QueryClientStateResponse) => void): ClientUnaryCall;
clientState(request: QueryClientStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryClientStateResponse) => void): ClientUnaryCall;
clientState(request: QueryClientStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryClientStateResponse) => void): ClientUnaryCall;
/** ClientStates queries all the IBC light clients of a chain. */
clientStates(request: QueryClientStatesRequest, callback: (error: ServiceError | null, response: QueryClientStatesResponse) => void): ClientUnaryCall;
clientStates(request: QueryClientStatesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryClientStatesResponse) => void): ClientUnaryCall;
clientStates(request: QueryClientStatesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryClientStatesResponse) => void): ClientUnaryCall;
/**
* ConsensusState queries a consensus state associated with a client state at
* a given height.
*/
consensusState(request: QueryConsensusStateRequest, callback: (error: ServiceError | null, response: QueryConsensusStateResponse) => void): ClientUnaryCall;
consensusState(request: QueryConsensusStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConsensusStateResponse) => void): ClientUnaryCall;
consensusState(request: QueryConsensusStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConsensusStateResponse) => void): ClientUnaryCall;
/**
* ConsensusStates queries all the consensus state associated with a given
* client.
*/
consensusStates(request: QueryConsensusStatesRequest, callback: (error: ServiceError | null, response: QueryConsensusStatesResponse) => void): ClientUnaryCall;
consensusStates(request: QueryConsensusStatesRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConsensusStatesResponse) => void): ClientUnaryCall;
consensusStates(request: QueryConsensusStatesRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConsensusStatesResponse) => void): ClientUnaryCall;
/** Status queries the status of an IBC client. */
clientStatus(request: QueryClientStatusRequest, callback: (error: ServiceError | null, response: QueryClientStatusResponse) => void): ClientUnaryCall;
clientStatus(request: QueryClientStatusRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryClientStatusResponse) => void): ClientUnaryCall;
clientStatus(request: QueryClientStatusRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryClientStatusResponse) => void): ClientUnaryCall;
/** ClientParams queries all parameters of the ibc client. */
clientParams(request: QueryClientParamsRequest, callback: (error: ServiceError | null, response: QueryClientParamsResponse) => void): ClientUnaryCall;
clientParams(request: QueryClientParamsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryClientParamsResponse) => void): ClientUnaryCall;
clientParams(request: QueryClientParamsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryClientParamsResponse) => void): ClientUnaryCall;
/** UpgradedClientState queries an Upgraded IBC light client. */
upgradedClientState(request: QueryUpgradedClientStateRequest, callback: (error: ServiceError | null, response: QueryUpgradedClientStateResponse) => void): ClientUnaryCall;
upgradedClientState(request: QueryUpgradedClientStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryUpgradedClientStateResponse) => void): ClientUnaryCall;
upgradedClientState(request: QueryUpgradedClientStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUpgradedClientStateResponse) => void): ClientUnaryCall;
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
upgradedConsensusState(request: QueryUpgradedConsensusStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryUpgradedConsensusStateResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -309,0 +425,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryUpgradedConsensusStateResponse = exports.QueryUpgradedConsensusStateRequest = exports.QueryUpgradedClientStateResponse = exports.QueryUpgradedClientStateRequest = exports.QueryClientParamsResponse = exports.QueryClientParamsRequest = exports.QueryClientStatusResponse = exports.QueryClientStatusRequest = exports.QueryConsensusStatesResponse = exports.QueryConsensusStatesRequest = exports.QueryConsensusStateResponse = exports.QueryConsensusStateRequest = exports.QueryClientStatesResponse = exports.QueryClientStatesRequest = exports.QueryClientStateResponse = exports.QueryClientStateRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -997,56 +998,92 @@ const any_1 = require("../../../../google/protobuf/any");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.ClientState = this.ClientState.bind(this);
this.ClientStates = this.ClientStates.bind(this);
this.ConsensusState = this.ConsensusState.bind(this);
this.ConsensusStates = this.ConsensusStates.bind(this);
this.ClientStatus = this.ClientStatus.bind(this);
this.ClientParams = this.ClientParams.bind(this);
this.UpgradedClientState = this.UpgradedClientState.bind(this);
this.UpgradedConsensusState = this.UpgradedConsensusState.bind(this);
}
ClientState(request) {
const data = exports.QueryClientStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientState", data);
return promise.then((data) => exports.QueryClientStateResponse.decode(new minimal_1.default.Reader(data)));
}
ClientStates(request) {
const data = exports.QueryClientStatesRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStates", data);
return promise.then((data) => exports.QueryClientStatesResponse.decode(new minimal_1.default.Reader(data)));
}
ConsensusState(request) {
const data = exports.QueryConsensusStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusState", data);
return promise.then((data) => exports.QueryConsensusStateResponse.decode(new minimal_1.default.Reader(data)));
}
ConsensusStates(request) {
const data = exports.QueryConsensusStatesRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ConsensusStates", data);
return promise.then((data) => exports.QueryConsensusStatesResponse.decode(new minimal_1.default.Reader(data)));
}
ClientStatus(request) {
const data = exports.QueryClientStatusRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientStatus", data);
return promise.then((data) => exports.QueryClientStatusResponse.decode(new minimal_1.default.Reader(data)));
}
ClientParams(request) {
const data = exports.QueryClientParamsRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "ClientParams", data);
return promise.then((data) => exports.QueryClientParamsResponse.decode(new minimal_1.default.Reader(data)));
}
UpgradedClientState(request) {
const data = exports.QueryUpgradedClientStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedClientState", data);
return promise.then((data) => exports.QueryUpgradedClientStateResponse.decode(new minimal_1.default.Reader(data)));
}
UpgradedConsensusState(request) {
const data = exports.QueryUpgradedConsensusStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Query", "UpgradedConsensusState", data);
return promise.then((data) => exports.QueryUpgradedConsensusStateResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query provides defines the gRPC querier service */
exports.QueryService = {
/** ClientState queries an IBC light client. */
clientState: {
path: "/ibc.core.client.v1.Query/ClientState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryClientStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryClientStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryClientStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryClientStateResponse.decode(value),
},
/** ClientStates queries all the IBC light clients of a chain. */
clientStates: {
path: "/ibc.core.client.v1.Query/ClientStates",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryClientStatesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryClientStatesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryClientStatesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryClientStatesResponse.decode(value),
},
/**
* ConsensusState queries a consensus state associated with a client state at
* a given height.
*/
consensusState: {
path: "/ibc.core.client.v1.Query/ConsensusState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConsensusStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConsensusStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConsensusStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConsensusStateResponse.decode(value),
},
/**
* ConsensusStates queries all the consensus state associated with a given
* client.
*/
consensusStates: {
path: "/ibc.core.client.v1.Query/ConsensusStates",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConsensusStatesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConsensusStatesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConsensusStatesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConsensusStatesResponse.decode(value),
},
/** Status queries the status of an IBC client. */
clientStatus: {
path: "/ibc.core.client.v1.Query/ClientStatus",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryClientStatusRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryClientStatusRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryClientStatusResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryClientStatusResponse.decode(value),
},
/** ClientParams queries all parameters of the ibc client. */
clientParams: {
path: "/ibc.core.client.v1.Query/ClientParams",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryClientParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryClientParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryClientParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryClientParamsResponse.decode(value),
},
/** UpgradedClientState queries an Upgraded IBC light client. */
upgradedClientState: {
path: "/ibc.core.client.v1.Query/UpgradedClientState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryUpgradedClientStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryUpgradedClientStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryUpgradedClientStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryUpgradedClientStateResponse.decode(value),
},
/** UpgradedConsensusState queries an Upgraded IBC consensus state. */
upgradedConsensusState: {
path: "/ibc.core.client.v1.Query/UpgradedConsensusState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryUpgradedConsensusStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryUpgradedConsensusStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryUpgradedConsensusStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryUpgradedConsensusStateResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "ibc.core.client.v1.Query");
var globalThis = (() => {

@@ -1053,0 +1090,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -134,23 +136,73 @@ import { Any } from "../../../../google/protobuf/any";

/** Msg defines the ibc/client Msg service. */
export interface Msg {
export declare const MsgService: {
/** CreateClient defines a rpc handler method for MsgCreateClient. */
CreateClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
readonly createClient: {
readonly path: "/ibc.core.client.v1.Msg/CreateClient";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgCreateClient) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgCreateClient;
readonly responseSerialize: (value: MsgCreateClientResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgCreateClientResponse;
};
/** UpdateClient defines a rpc handler method for MsgUpdateClient. */
UpdateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
readonly updateClient: {
readonly path: "/ibc.core.client.v1.Msg/UpdateClient";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgUpdateClient) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgUpdateClient;
readonly responseSerialize: (value: MsgUpdateClientResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgUpdateClientResponse;
};
/** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
UpgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
readonly upgradeClient: {
readonly path: "/ibc.core.client.v1.Msg/UpgradeClient";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgUpgradeClient) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgUpgradeClient;
readonly responseSerialize: (value: MsgUpgradeClientResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgUpgradeClientResponse;
};
/** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
SubmitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
readonly submitMisbehaviour: {
readonly path: "/ibc.core.client.v1.Msg/SubmitMisbehaviour";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSubmitMisbehaviour) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSubmitMisbehaviour;
readonly responseSerialize: (value: MsgSubmitMisbehaviourResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSubmitMisbehaviourResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** CreateClient defines a rpc handler method for MsgCreateClient. */
createClient: handleUnaryCall<MsgCreateClient, MsgCreateClientResponse>;
/** UpdateClient defines a rpc handler method for MsgUpdateClient. */
updateClient: handleUnaryCall<MsgUpdateClient, MsgUpdateClientResponse>;
/** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
upgradeClient: handleUnaryCall<MsgUpgradeClient, MsgUpgradeClientResponse>;
/** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
submitMisbehaviour: handleUnaryCall<MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
CreateClient(request: MsgCreateClient): Promise<MsgCreateClientResponse>;
UpdateClient(request: MsgUpdateClient): Promise<MsgUpdateClientResponse>;
UpgradeClient(request: MsgUpgradeClient): Promise<MsgUpgradeClientResponse>;
SubmitMisbehaviour(request: MsgSubmitMisbehaviour): Promise<MsgSubmitMisbehaviourResponse>;
export interface MsgClient extends Client {
/** CreateClient defines a rpc handler method for MsgCreateClient. */
createClient(request: MsgCreateClient, callback: (error: ServiceError | null, response: MsgCreateClientResponse) => void): ClientUnaryCall;
createClient(request: MsgCreateClient, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgCreateClientResponse) => void): ClientUnaryCall;
createClient(request: MsgCreateClient, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgCreateClientResponse) => void): ClientUnaryCall;
/** UpdateClient defines a rpc handler method for MsgUpdateClient. */
updateClient(request: MsgUpdateClient, callback: (error: ServiceError | null, response: MsgUpdateClientResponse) => void): ClientUnaryCall;
updateClient(request: MsgUpdateClient, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgUpdateClientResponse) => void): ClientUnaryCall;
updateClient(request: MsgUpdateClient, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgUpdateClientResponse) => void): ClientUnaryCall;
/** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
upgradeClient(request: MsgUpgradeClient, callback: (error: ServiceError | null, response: MsgUpgradeClientResponse) => void): ClientUnaryCall;
upgradeClient(request: MsgUpgradeClient, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgUpgradeClientResponse) => void): ClientUnaryCall;
upgradeClient(request: MsgUpgradeClient, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgUpgradeClientResponse) => void): ClientUnaryCall;
/** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
submitMisbehaviour(request: MsgSubmitMisbehaviour, callback: (error: ServiceError | null, response: MsgSubmitMisbehaviourResponse) => void): ClientUnaryCall;
submitMisbehaviour(request: MsgSubmitMisbehaviour, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgSubmitMisbehaviourResponse) => void): ClientUnaryCall;
submitMisbehaviour(request: MsgSubmitMisbehaviour, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSubmitMisbehaviourResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -157,0 +209,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgSubmitMisbehaviourResponse = exports.MsgSubmitMisbehaviour = exports.MsgUpgradeClientResponse = exports.MsgUpgradeClient = exports.MsgUpdateClientResponse = exports.MsgUpdateClient = exports.MsgCreateClientResponse = exports.MsgCreateClient = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -561,32 +562,46 @@ const any_1 = require("../../../../google/protobuf/any");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.CreateClient = this.CreateClient.bind(this);
this.UpdateClient = this.UpdateClient.bind(this);
this.UpgradeClient = this.UpgradeClient.bind(this);
this.SubmitMisbehaviour = this.SubmitMisbehaviour.bind(this);
}
CreateClient(request) {
const data = exports.MsgCreateClient.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", data);
return promise.then((data) => exports.MsgCreateClientResponse.decode(new minimal_1.default.Reader(data)));
}
UpdateClient(request) {
const data = exports.MsgUpdateClient.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", data);
return promise.then((data) => exports.MsgUpdateClientResponse.decode(new minimal_1.default.Reader(data)));
}
UpgradeClient(request) {
const data = exports.MsgUpgradeClient.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", data);
return promise.then((data) => exports.MsgUpgradeClientResponse.decode(new minimal_1.default.Reader(data)));
}
SubmitMisbehaviour(request) {
const data = exports.MsgSubmitMisbehaviour.encode(request).finish();
const promise = this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", data);
return promise.then((data) => exports.MsgSubmitMisbehaviourResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the ibc/client Msg service. */
exports.MsgService = {
/** CreateClient defines a rpc handler method for MsgCreateClient. */
createClient: {
path: "/ibc.core.client.v1.Msg/CreateClient",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgCreateClient.encode(value).finish()),
requestDeserialize: (value) => exports.MsgCreateClient.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgCreateClientResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgCreateClientResponse.decode(value),
},
/** UpdateClient defines a rpc handler method for MsgUpdateClient. */
updateClient: {
path: "/ibc.core.client.v1.Msg/UpdateClient",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgUpdateClient.encode(value).finish()),
requestDeserialize: (value) => exports.MsgUpdateClient.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgUpdateClientResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgUpdateClientResponse.decode(value),
},
/** UpgradeClient defines a rpc handler method for MsgUpgradeClient. */
upgradeClient: {
path: "/ibc.core.client.v1.Msg/UpgradeClient",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgUpgradeClient.encode(value).finish()),
requestDeserialize: (value) => exports.MsgUpgradeClient.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgUpgradeClientResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgUpgradeClientResponse.decode(value),
},
/** SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. */
submitMisbehaviour: {
path: "/ibc.core.client.v1.Msg/SubmitMisbehaviour",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSubmitMisbehaviour.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSubmitMisbehaviour.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSubmitMisbehaviourResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSubmitMisbehaviourResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "ibc.core.client.v1.Msg");
var globalThis = (() => {

@@ -593,0 +608,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -183,7 +185,23 @@ import { ConnectionEnd, IdentifiedConnection } from "../../../../ibc/core/connection/v1/connection";

/** Query provides defines the gRPC querier service */
export interface Query {
export declare const QueryService: {
/** Connection queries an IBC connection end. */
Connection(request: QueryConnectionRequest): Promise<QueryConnectionResponse>;
readonly connection: {
readonly path: "/ibc.core.connection.v1.Query/Connection";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConnectionRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConnectionRequest;
readonly responseSerialize: (value: QueryConnectionResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConnectionResponse;
};
/** Connections queries all the IBC connections of a chain. */
Connections(request: QueryConnectionsRequest): Promise<QueryConnectionsResponse>;
readonly connections: {
readonly path: "/ibc.core.connection.v1.Query/Connections";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConnectionsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConnectionsRequest;
readonly responseSerialize: (value: QueryConnectionsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConnectionsResponse;
};
/**

@@ -193,3 +211,11 @@ * ClientConnections queries the connection paths associated with a client

*/
ClientConnections(request: QueryClientConnectionsRequest): Promise<QueryClientConnectionsResponse>;
readonly clientConnections: {
readonly path: "/ibc.core.connection.v1.Query/ClientConnections";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryClientConnectionsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryClientConnectionsRequest;
readonly responseSerialize: (value: QueryClientConnectionsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryClientConnectionsResponse;
};
/**

@@ -199,3 +225,11 @@ * ConnectionClientState queries the client state associated with the

*/
ConnectionClientState(request: QueryConnectionClientStateRequest): Promise<QueryConnectionClientStateResponse>;
readonly connectionClientState: {
readonly path: "/ibc.core.connection.v1.Query/ConnectionClientState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConnectionClientStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConnectionClientStateRequest;
readonly responseSerialize: (value: QueryConnectionClientStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConnectionClientStateResponse;
};
/**

@@ -205,16 +239,65 @@ * ConnectionConsensusState queries the consensus state associated with the

*/
ConnectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponse>;
readonly connectionConsensusState: {
readonly path: "/ibc.core.connection.v1.Query/ConnectionConsensusState";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryConnectionConsensusStateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryConnectionConsensusStateRequest;
readonly responseSerialize: (value: QueryConnectionConsensusStateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryConnectionConsensusStateResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Connection queries an IBC connection end. */
connection: handleUnaryCall<QueryConnectionRequest, QueryConnectionResponse>;
/** Connections queries all the IBC connections of a chain. */
connections: handleUnaryCall<QueryConnectionsRequest, QueryConnectionsResponse>;
/**
* ClientConnections queries the connection paths associated with a client
* state.
*/
clientConnections: handleUnaryCall<QueryClientConnectionsRequest, QueryClientConnectionsResponse>;
/**
* ConnectionClientState queries the client state associated with the
* connection.
*/
connectionClientState: handleUnaryCall<QueryConnectionClientStateRequest, QueryConnectionClientStateResponse>;
/**
* ConnectionConsensusState queries the consensus state associated with the
* connection.
*/
connectionConsensusState: handleUnaryCall<QueryConnectionConsensusStateRequest, QueryConnectionConsensusStateResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Connection(request: QueryConnectionRequest): Promise<QueryConnectionResponse>;
Connections(request: QueryConnectionsRequest): Promise<QueryConnectionsResponse>;
ClientConnections(request: QueryClientConnectionsRequest): Promise<QueryClientConnectionsResponse>;
ConnectionClientState(request: QueryConnectionClientStateRequest): Promise<QueryConnectionClientStateResponse>;
ConnectionConsensusState(request: QueryConnectionConsensusStateRequest): Promise<QueryConnectionConsensusStateResponse>;
export interface QueryClient extends Client {
/** Connection queries an IBC connection end. */
connection(request: QueryConnectionRequest, callback: (error: ServiceError | null, response: QueryConnectionResponse) => void): ClientUnaryCall;
connection(request: QueryConnectionRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConnectionResponse) => void): ClientUnaryCall;
connection(request: QueryConnectionRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConnectionResponse) => void): ClientUnaryCall;
/** Connections queries all the IBC connections of a chain. */
connections(request: QueryConnectionsRequest, callback: (error: ServiceError | null, response: QueryConnectionsResponse) => void): ClientUnaryCall;
connections(request: QueryConnectionsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConnectionsResponse) => void): ClientUnaryCall;
connections(request: QueryConnectionsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConnectionsResponse) => void): ClientUnaryCall;
/**
* ClientConnections queries the connection paths associated with a client
* state.
*/
clientConnections(request: QueryClientConnectionsRequest, callback: (error: ServiceError | null, response: QueryClientConnectionsResponse) => void): ClientUnaryCall;
clientConnections(request: QueryClientConnectionsRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryClientConnectionsResponse) => void): ClientUnaryCall;
clientConnections(request: QueryClientConnectionsRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryClientConnectionsResponse) => void): ClientUnaryCall;
/**
* ConnectionClientState queries the client state associated with the
* connection.
*/
connectionClientState(request: QueryConnectionClientStateRequest, callback: (error: ServiceError | null, response: QueryConnectionClientStateResponse) => void): ClientUnaryCall;
connectionClientState(request: QueryConnectionClientStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConnectionClientStateResponse) => void): ClientUnaryCall;
connectionClientState(request: QueryConnectionClientStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConnectionClientStateResponse) => void): ClientUnaryCall;
/**
* ConnectionConsensusState queries the consensus state associated with the
* connection.
*/
connectionConsensusState(request: QueryConnectionConsensusStateRequest, callback: (error: ServiceError | null, response: QueryConnectionConsensusStateResponse) => void): ClientUnaryCall;
connectionConsensusState(request: QueryConnectionConsensusStateRequest, metadata: Metadata1, callback: (error: ServiceError | null, response: QueryConnectionConsensusStateResponse) => void): ClientUnaryCall;
connectionConsensusState(request: QueryConnectionConsensusStateRequest, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryConnectionConsensusStateResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -221,0 +304,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryConnectionConsensusStateResponse = exports.QueryConnectionConsensusStateRequest = exports.QueryConnectionClientStateResponse = exports.QueryConnectionClientStateRequest = exports.QueryClientConnectionsResponse = exports.QueryClientConnectionsRequest = exports.QueryConnectionsResponse = exports.QueryConnectionsRequest = exports.QueryConnectionResponse = exports.QueryConnectionRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryConnectionConsensusStateResponse = exports.QueryConnectionConsensusStateRequest = exports.QueryConnectionClientStateResponse = exports.QueryConnectionClientStateRequest = exports.QueryClientConnectionsResponse = exports.QueryClientConnectionsRequest = exports.QueryConnectionsResponse = exports.QueryConnectionsRequest = exports.QueryConnectionResponse = exports.QueryConnectionRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -802,38 +803,65 @@ const connection_1 = require("../../../../ibc/core/connection/v1/connection");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Connection = this.Connection.bind(this);
this.Connections = this.Connections.bind(this);
this.ClientConnections = this.ClientConnections.bind(this);
this.ConnectionClientState = this.ConnectionClientState.bind(this);
this.ConnectionConsensusState = this.ConnectionConsensusState.bind(this);
}
Connection(request) {
const data = exports.QueryConnectionRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Query", "Connection", data);
return promise.then((data) => exports.QueryConnectionResponse.decode(new minimal_1.default.Reader(data)));
}
Connections(request) {
const data = exports.QueryConnectionsRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Query", "Connections", data);
return promise.then((data) => exports.QueryConnectionsResponse.decode(new minimal_1.default.Reader(data)));
}
ClientConnections(request) {
const data = exports.QueryClientConnectionsRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Query", "ClientConnections", data);
return promise.then((data) => exports.QueryClientConnectionsResponse.decode(new minimal_1.default.Reader(data)));
}
ConnectionClientState(request) {
const data = exports.QueryConnectionClientStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionClientState", data);
return promise.then((data) => exports.QueryConnectionClientStateResponse.decode(new minimal_1.default.Reader(data)));
}
ConnectionConsensusState(request) {
const data = exports.QueryConnectionConsensusStateRequest.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Query", "ConnectionConsensusState", data);
return promise.then((data) => exports.QueryConnectionConsensusStateResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query provides defines the gRPC querier service */
exports.QueryService = {
/** Connection queries an IBC connection end. */
connection: {
path: "/ibc.core.connection.v1.Query/Connection",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConnectionRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConnectionRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConnectionResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConnectionResponse.decode(value),
},
/** Connections queries all the IBC connections of a chain. */
connections: {
path: "/ibc.core.connection.v1.Query/Connections",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConnectionsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConnectionsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConnectionsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConnectionsResponse.decode(value),
},
/**
* ClientConnections queries the connection paths associated with a client
* state.
*/
clientConnections: {
path: "/ibc.core.connection.v1.Query/ClientConnections",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryClientConnectionsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryClientConnectionsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryClientConnectionsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryClientConnectionsResponse.decode(value),
},
/**
* ConnectionClientState queries the client state associated with the
* connection.
*/
connectionClientState: {
path: "/ibc.core.connection.v1.Query/ConnectionClientState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConnectionClientStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConnectionClientStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConnectionClientStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConnectionClientStateResponse.decode(value),
},
/**
* ConnectionConsensusState queries the consensus state associated with the
* connection.
*/
connectionConsensusState: {
path: "/ibc.core.connection.v1.Query/ConnectionConsensusState",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryConnectionConsensusStateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryConnectionConsensusStateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryConnectionConsensusStateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryConnectionConsensusStateResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "ibc.core.connection.v1.Query");
var globalThis = (() => {

@@ -840,0 +868,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -154,9 +156,33 @@ import { Counterparty, Version } from "../../../../ibc/core/connection/v1/connection";

/** Msg defines the ibc/connection Msg service. */
export interface Msg {
export declare const MsgService: {
/** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */
ConnectionOpenInit(request: MsgConnectionOpenInit): Promise<MsgConnectionOpenInitResponse>;
readonly connectionOpenInit: {
readonly path: "/ibc.core.connection.v1.Msg/ConnectionOpenInit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgConnectionOpenInit) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgConnectionOpenInit;
readonly responseSerialize: (value: MsgConnectionOpenInitResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgConnectionOpenInitResponse;
};
/** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */
ConnectionOpenTry(request: MsgConnectionOpenTry): Promise<MsgConnectionOpenTryResponse>;
readonly connectionOpenTry: {
readonly path: "/ibc.core.connection.v1.Msg/ConnectionOpenTry";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgConnectionOpenTry) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgConnectionOpenTry;
readonly responseSerialize: (value: MsgConnectionOpenTryResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgConnectionOpenTryResponse;
};
/** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */
ConnectionOpenAck(request: MsgConnectionOpenAck): Promise<MsgConnectionOpenAckResponse>;
readonly connectionOpenAck: {
readonly path: "/ibc.core.connection.v1.Msg/ConnectionOpenAck";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgConnectionOpenAck) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgConnectionOpenAck;
readonly responseSerialize: (value: MsgConnectionOpenAckResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgConnectionOpenAckResponse;
};
/**

@@ -166,15 +192,47 @@ * ConnectionOpenConfirm defines a rpc handler method for

*/
ConnectionOpenConfirm(request: MsgConnectionOpenConfirm): Promise<MsgConnectionOpenConfirmResponse>;
readonly connectionOpenConfirm: {
readonly path: "/ibc.core.connection.v1.Msg/ConnectionOpenConfirm";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgConnectionOpenConfirm) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgConnectionOpenConfirm;
readonly responseSerialize: (value: MsgConnectionOpenConfirmResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgConnectionOpenConfirmResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */
connectionOpenInit: handleUnaryCall<MsgConnectionOpenInit, MsgConnectionOpenInitResponse>;
/** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */
connectionOpenTry: handleUnaryCall<MsgConnectionOpenTry, MsgConnectionOpenTryResponse>;
/** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */
connectionOpenAck: handleUnaryCall<MsgConnectionOpenAck, MsgConnectionOpenAckResponse>;
/**
* ConnectionOpenConfirm defines a rpc handler method for
* MsgConnectionOpenConfirm.
*/
connectionOpenConfirm: handleUnaryCall<MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
ConnectionOpenInit(request: MsgConnectionOpenInit): Promise<MsgConnectionOpenInitResponse>;
ConnectionOpenTry(request: MsgConnectionOpenTry): Promise<MsgConnectionOpenTryResponse>;
ConnectionOpenAck(request: MsgConnectionOpenAck): Promise<MsgConnectionOpenAckResponse>;
ConnectionOpenConfirm(request: MsgConnectionOpenConfirm): Promise<MsgConnectionOpenConfirmResponse>;
export interface MsgClient extends Client {
/** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */
connectionOpenInit(request: MsgConnectionOpenInit, callback: (error: ServiceError | null, response: MsgConnectionOpenInitResponse) => void): ClientUnaryCall;
connectionOpenInit(request: MsgConnectionOpenInit, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgConnectionOpenInitResponse) => void): ClientUnaryCall;
connectionOpenInit(request: MsgConnectionOpenInit, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgConnectionOpenInitResponse) => void): ClientUnaryCall;
/** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */
connectionOpenTry(request: MsgConnectionOpenTry, callback: (error: ServiceError | null, response: MsgConnectionOpenTryResponse) => void): ClientUnaryCall;
connectionOpenTry(request: MsgConnectionOpenTry, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgConnectionOpenTryResponse) => void): ClientUnaryCall;
connectionOpenTry(request: MsgConnectionOpenTry, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgConnectionOpenTryResponse) => void): ClientUnaryCall;
/** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */
connectionOpenAck(request: MsgConnectionOpenAck, callback: (error: ServiceError | null, response: MsgConnectionOpenAckResponse) => void): ClientUnaryCall;
connectionOpenAck(request: MsgConnectionOpenAck, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgConnectionOpenAckResponse) => void): ClientUnaryCall;
connectionOpenAck(request: MsgConnectionOpenAck, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgConnectionOpenAckResponse) => void): ClientUnaryCall;
/**
* ConnectionOpenConfirm defines a rpc handler method for
* MsgConnectionOpenConfirm.
*/
connectionOpenConfirm(request: MsgConnectionOpenConfirm, callback: (error: ServiceError | null, response: MsgConnectionOpenConfirmResponse) => void): ClientUnaryCall;
connectionOpenConfirm(request: MsgConnectionOpenConfirm, metadata: Metadata1, callback: (error: ServiceError | null, response: MsgConnectionOpenConfirmResponse) => void): ClientUnaryCall;
connectionOpenConfirm(request: MsgConnectionOpenConfirm, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgConnectionOpenConfirmResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -181,0 +239,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgConnectionOpenConfirmResponse = exports.MsgConnectionOpenConfirm = exports.MsgConnectionOpenAckResponse = exports.MsgConnectionOpenAck = exports.MsgConnectionOpenTryResponse = exports.MsgConnectionOpenTry = exports.MsgConnectionOpenInitResponse = exports.MsgConnectionOpenInit = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgConnectionOpenConfirmResponse = exports.MsgConnectionOpenConfirm = exports.MsgConnectionOpenAckResponse = exports.MsgConnectionOpenAck = exports.MsgConnectionOpenTryResponse = exports.MsgConnectionOpenTry = exports.MsgConnectionOpenInitResponse = exports.MsgConnectionOpenInit = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -883,32 +884,49 @@ const connection_1 = require("../../../../ibc/core/connection/v1/connection");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.ConnectionOpenInit = this.ConnectionOpenInit.bind(this);
this.ConnectionOpenTry = this.ConnectionOpenTry.bind(this);
this.ConnectionOpenAck = this.ConnectionOpenAck.bind(this);
this.ConnectionOpenConfirm = this.ConnectionOpenConfirm.bind(this);
}
ConnectionOpenInit(request) {
const data = exports.MsgConnectionOpenInit.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenInit", data);
return promise.then((data) => exports.MsgConnectionOpenInitResponse.decode(new minimal_1.default.Reader(data)));
}
ConnectionOpenTry(request) {
const data = exports.MsgConnectionOpenTry.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenTry", data);
return promise.then((data) => exports.MsgConnectionOpenTryResponse.decode(new minimal_1.default.Reader(data)));
}
ConnectionOpenAck(request) {
const data = exports.MsgConnectionOpenAck.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenAck", data);
return promise.then((data) => exports.MsgConnectionOpenAckResponse.decode(new minimal_1.default.Reader(data)));
}
ConnectionOpenConfirm(request) {
const data = exports.MsgConnectionOpenConfirm.encode(request).finish();
const promise = this.rpc.request("ibc.core.connection.v1.Msg", "ConnectionOpenConfirm", data);
return promise.then((data) => exports.MsgConnectionOpenConfirmResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the ibc/connection Msg service. */
exports.MsgService = {
/** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */
connectionOpenInit: {
path: "/ibc.core.connection.v1.Msg/ConnectionOpenInit",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgConnectionOpenInit.encode(value).finish()),
requestDeserialize: (value) => exports.MsgConnectionOpenInit.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgConnectionOpenInitResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgConnectionOpenInitResponse.decode(value),
},
/** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */
connectionOpenTry: {
path: "/ibc.core.connection.v1.Msg/ConnectionOpenTry",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgConnectionOpenTry.encode(value).finish()),
requestDeserialize: (value) => exports.MsgConnectionOpenTry.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgConnectionOpenTryResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgConnectionOpenTryResponse.decode(value),
},
/** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */
connectionOpenAck: {
path: "/ibc.core.connection.v1.Msg/ConnectionOpenAck",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgConnectionOpenAck.encode(value).finish()),
requestDeserialize: (value) => exports.MsgConnectionOpenAck.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgConnectionOpenAckResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgConnectionOpenAckResponse.decode(value),
},
/**
* ConnectionOpenConfirm defines a rpc handler method for
* MsgConnectionOpenConfirm.
*/
connectionOpenConfirm: {
path: "/ibc.core.connection.v1.Msg/ConnectionOpenConfirm",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgConnectionOpenConfirm.encode(value).finish()),
requestDeserialize: (value) => exports.MsgConnectionOpenConfirm.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgConnectionOpenConfirmResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgConnectionOpenConfirmResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "ibc.core.connection.v1.Msg");
var globalThis = (() => {

@@ -915,0 +933,0 @@ if (typeof globalThis !== "undefined")

{
"name": "@terra-money/terra.proto",
"version": "0.1.3",
"version": "0.1.4",
"description": "JS and TS types relating to Protocol Buffers used by Terra project",

@@ -41,4 +41,5 @@ "contributors": [

"ts-proto": "^1.82.5",
"typescript": "~4.0"
"typescript": "~4.0",
"@grpc/grpc-js": "^1.3.7"
}
}

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata as Metadata1, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -655,41 +657,204 @@ import { Header } from "../../tendermint/types/types";

};
export interface ABCIApplication {
Echo(request: RequestEcho): Promise<ResponseEcho>;
Flush(request: RequestFlush): Promise<ResponseFlush>;
Info(request: RequestInfo): Promise<ResponseInfo>;
SetOption(request: RequestSetOption): Promise<ResponseSetOption>;
DeliverTx(request: RequestDeliverTx): Promise<ResponseDeliverTx>;
CheckTx(request: RequestCheckTx): Promise<ResponseCheckTx>;
Query(request: RequestQuery): Promise<ResponseQuery>;
Commit(request: RequestCommit): Promise<ResponseCommit>;
InitChain(request: RequestInitChain): Promise<ResponseInitChain>;
BeginBlock(request: RequestBeginBlock): Promise<ResponseBeginBlock>;
EndBlock(request: RequestEndBlock): Promise<ResponseEndBlock>;
ListSnapshots(request: RequestListSnapshots): Promise<ResponseListSnapshots>;
OfferSnapshot(request: RequestOfferSnapshot): Promise<ResponseOfferSnapshot>;
LoadSnapshotChunk(request: RequestLoadSnapshotChunk): Promise<ResponseLoadSnapshotChunk>;
ApplySnapshotChunk(request: RequestApplySnapshotChunk): Promise<ResponseApplySnapshotChunk>;
export declare const ABCIApplicationService: {
readonly echo: {
readonly path: "/tendermint.abci.ABCIApplication/Echo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestEcho) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestEcho;
readonly responseSerialize: (value: ResponseEcho) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseEcho;
};
readonly flush: {
readonly path: "/tendermint.abci.ABCIApplication/Flush";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestFlush) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestFlush;
readonly responseSerialize: (value: ResponseFlush) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseFlush;
};
readonly info: {
readonly path: "/tendermint.abci.ABCIApplication/Info";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestInfo) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestInfo;
readonly responseSerialize: (value: ResponseInfo) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseInfo;
};
readonly setOption: {
readonly path: "/tendermint.abci.ABCIApplication/SetOption";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestSetOption) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestSetOption;
readonly responseSerialize: (value: ResponseSetOption) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseSetOption;
};
readonly deliverTx: {
readonly path: "/tendermint.abci.ABCIApplication/DeliverTx";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestDeliverTx) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestDeliverTx;
readonly responseSerialize: (value: ResponseDeliverTx) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseDeliverTx;
};
readonly checkTx: {
readonly path: "/tendermint.abci.ABCIApplication/CheckTx";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestCheckTx) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestCheckTx;
readonly responseSerialize: (value: ResponseCheckTx) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseCheckTx;
};
readonly query: {
readonly path: "/tendermint.abci.ABCIApplication/Query";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestQuery) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestQuery;
readonly responseSerialize: (value: ResponseQuery) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseQuery;
};
readonly commit: {
readonly path: "/tendermint.abci.ABCIApplication/Commit";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestCommit) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestCommit;
readonly responseSerialize: (value: ResponseCommit) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseCommit;
};
readonly initChain: {
readonly path: "/tendermint.abci.ABCIApplication/InitChain";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestInitChain) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestInitChain;
readonly responseSerialize: (value: ResponseInitChain) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseInitChain;
};
readonly beginBlock: {
readonly path: "/tendermint.abci.ABCIApplication/BeginBlock";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestBeginBlock) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestBeginBlock;
readonly responseSerialize: (value: ResponseBeginBlock) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseBeginBlock;
};
readonly endBlock: {
readonly path: "/tendermint.abci.ABCIApplication/EndBlock";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestEndBlock) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestEndBlock;
readonly responseSerialize: (value: ResponseEndBlock) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseEndBlock;
};
readonly listSnapshots: {
readonly path: "/tendermint.abci.ABCIApplication/ListSnapshots";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestListSnapshots) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestListSnapshots;
readonly responseSerialize: (value: ResponseListSnapshots) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseListSnapshots;
};
readonly offerSnapshot: {
readonly path: "/tendermint.abci.ABCIApplication/OfferSnapshot";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestOfferSnapshot) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestOfferSnapshot;
readonly responseSerialize: (value: ResponseOfferSnapshot) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseOfferSnapshot;
};
readonly loadSnapshotChunk: {
readonly path: "/tendermint.abci.ABCIApplication/LoadSnapshotChunk";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestLoadSnapshotChunk) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestLoadSnapshotChunk;
readonly responseSerialize: (value: ResponseLoadSnapshotChunk) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseLoadSnapshotChunk;
};
readonly applySnapshotChunk: {
readonly path: "/tendermint.abci.ABCIApplication/ApplySnapshotChunk";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: RequestApplySnapshotChunk) => Buffer;
readonly requestDeserialize: (value: Buffer) => RequestApplySnapshotChunk;
readonly responseSerialize: (value: ResponseApplySnapshotChunk) => Buffer;
readonly responseDeserialize: (value: Buffer) => ResponseApplySnapshotChunk;
};
};
export interface ABCIApplicationServer extends UntypedServiceImplementation {
echo: handleUnaryCall<RequestEcho, ResponseEcho>;
flush: handleUnaryCall<RequestFlush, ResponseFlush>;
info: handleUnaryCall<RequestInfo, ResponseInfo>;
setOption: handleUnaryCall<RequestSetOption, ResponseSetOption>;
deliverTx: handleUnaryCall<RequestDeliverTx, ResponseDeliverTx>;
checkTx: handleUnaryCall<RequestCheckTx, ResponseCheckTx>;
query: handleUnaryCall<RequestQuery, ResponseQuery>;
commit: handleUnaryCall<RequestCommit, ResponseCommit>;
initChain: handleUnaryCall<RequestInitChain, ResponseInitChain>;
beginBlock: handleUnaryCall<RequestBeginBlock, ResponseBeginBlock>;
endBlock: handleUnaryCall<RequestEndBlock, ResponseEndBlock>;
listSnapshots: handleUnaryCall<RequestListSnapshots, ResponseListSnapshots>;
offerSnapshot: handleUnaryCall<RequestOfferSnapshot, ResponseOfferSnapshot>;
loadSnapshotChunk: handleUnaryCall<RequestLoadSnapshotChunk, ResponseLoadSnapshotChunk>;
applySnapshotChunk: handleUnaryCall<RequestApplySnapshotChunk, ResponseApplySnapshotChunk>;
}
export declare class ABCIApplicationClientImpl implements ABCIApplication {
private readonly rpc;
constructor(rpc: Rpc);
Echo(request: RequestEcho): Promise<ResponseEcho>;
Flush(request: RequestFlush): Promise<ResponseFlush>;
Info(request: RequestInfo): Promise<ResponseInfo>;
SetOption(request: RequestSetOption): Promise<ResponseSetOption>;
DeliverTx(request: RequestDeliverTx): Promise<ResponseDeliverTx>;
CheckTx(request: RequestCheckTx): Promise<ResponseCheckTx>;
Query(request: RequestQuery): Promise<ResponseQuery>;
Commit(request: RequestCommit): Promise<ResponseCommit>;
InitChain(request: RequestInitChain): Promise<ResponseInitChain>;
BeginBlock(request: RequestBeginBlock): Promise<ResponseBeginBlock>;
EndBlock(request: RequestEndBlock): Promise<ResponseEndBlock>;
ListSnapshots(request: RequestListSnapshots): Promise<ResponseListSnapshots>;
OfferSnapshot(request: RequestOfferSnapshot): Promise<ResponseOfferSnapshot>;
LoadSnapshotChunk(request: RequestLoadSnapshotChunk): Promise<ResponseLoadSnapshotChunk>;
ApplySnapshotChunk(request: RequestApplySnapshotChunk): Promise<ResponseApplySnapshotChunk>;
export interface ABCIApplicationClient extends Client {
echo(request: RequestEcho, callback: (error: ServiceError | null, response: ResponseEcho) => void): ClientUnaryCall;
echo(request: RequestEcho, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseEcho) => void): ClientUnaryCall;
echo(request: RequestEcho, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseEcho) => void): ClientUnaryCall;
flush(request: RequestFlush, callback: (error: ServiceError | null, response: ResponseFlush) => void): ClientUnaryCall;
flush(request: RequestFlush, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseFlush) => void): ClientUnaryCall;
flush(request: RequestFlush, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseFlush) => void): ClientUnaryCall;
info(request: RequestInfo, callback: (error: ServiceError | null, response: ResponseInfo) => void): ClientUnaryCall;
info(request: RequestInfo, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseInfo) => void): ClientUnaryCall;
info(request: RequestInfo, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseInfo) => void): ClientUnaryCall;
setOption(request: RequestSetOption, callback: (error: ServiceError | null, response: ResponseSetOption) => void): ClientUnaryCall;
setOption(request: RequestSetOption, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseSetOption) => void): ClientUnaryCall;
setOption(request: RequestSetOption, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseSetOption) => void): ClientUnaryCall;
deliverTx(request: RequestDeliverTx, callback: (error: ServiceError | null, response: ResponseDeliverTx) => void): ClientUnaryCall;
deliverTx(request: RequestDeliverTx, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseDeliverTx) => void): ClientUnaryCall;
deliverTx(request: RequestDeliverTx, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseDeliverTx) => void): ClientUnaryCall;
checkTx(request: RequestCheckTx, callback: (error: ServiceError | null, response: ResponseCheckTx) => void): ClientUnaryCall;
checkTx(request: RequestCheckTx, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseCheckTx) => void): ClientUnaryCall;
checkTx(request: RequestCheckTx, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseCheckTx) => void): ClientUnaryCall;
query(request: RequestQuery, callback: (error: ServiceError | null, response: ResponseQuery) => void): ClientUnaryCall;
query(request: RequestQuery, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseQuery) => void): ClientUnaryCall;
query(request: RequestQuery, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseQuery) => void): ClientUnaryCall;
commit(request: RequestCommit, callback: (error: ServiceError | null, response: ResponseCommit) => void): ClientUnaryCall;
commit(request: RequestCommit, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseCommit) => void): ClientUnaryCall;
commit(request: RequestCommit, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseCommit) => void): ClientUnaryCall;
initChain(request: RequestInitChain, callback: (error: ServiceError | null, response: ResponseInitChain) => void): ClientUnaryCall;
initChain(request: RequestInitChain, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseInitChain) => void): ClientUnaryCall;
initChain(request: RequestInitChain, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseInitChain) => void): ClientUnaryCall;
beginBlock(request: RequestBeginBlock, callback: (error: ServiceError | null, response: ResponseBeginBlock) => void): ClientUnaryCall;
beginBlock(request: RequestBeginBlock, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseBeginBlock) => void): ClientUnaryCall;
beginBlock(request: RequestBeginBlock, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseBeginBlock) => void): ClientUnaryCall;
endBlock(request: RequestEndBlock, callback: (error: ServiceError | null, response: ResponseEndBlock) => void): ClientUnaryCall;
endBlock(request: RequestEndBlock, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseEndBlock) => void): ClientUnaryCall;
endBlock(request: RequestEndBlock, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseEndBlock) => void): ClientUnaryCall;
listSnapshots(request: RequestListSnapshots, callback: (error: ServiceError | null, response: ResponseListSnapshots) => void): ClientUnaryCall;
listSnapshots(request: RequestListSnapshots, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseListSnapshots) => void): ClientUnaryCall;
listSnapshots(request: RequestListSnapshots, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseListSnapshots) => void): ClientUnaryCall;
offerSnapshot(request: RequestOfferSnapshot, callback: (error: ServiceError | null, response: ResponseOfferSnapshot) => void): ClientUnaryCall;
offerSnapshot(request: RequestOfferSnapshot, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseOfferSnapshot) => void): ClientUnaryCall;
offerSnapshot(request: RequestOfferSnapshot, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseOfferSnapshot) => void): ClientUnaryCall;
loadSnapshotChunk(request: RequestLoadSnapshotChunk, callback: (error: ServiceError | null, response: ResponseLoadSnapshotChunk) => void): ClientUnaryCall;
loadSnapshotChunk(request: RequestLoadSnapshotChunk, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseLoadSnapshotChunk) => void): ClientUnaryCall;
loadSnapshotChunk(request: RequestLoadSnapshotChunk, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseLoadSnapshotChunk) => void): ClientUnaryCall;
applySnapshotChunk(request: RequestApplySnapshotChunk, callback: (error: ServiceError | null, response: ResponseApplySnapshotChunk) => void): ClientUnaryCall;
applySnapshotChunk(request: RequestApplySnapshotChunk, metadata: Metadata1, callback: (error: ServiceError | null, response: ResponseApplySnapshotChunk) => void): ClientUnaryCall;
applySnapshotChunk(request: RequestApplySnapshotChunk, metadata: Metadata1, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResponseApplySnapshotChunk) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ABCIApplicationClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ABCIApplicationClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -696,0 +861,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -77,20 +79,57 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** Swap returns simulated swap amount. */
Swap(request: QuerySwapRequest): Promise<QuerySwapResponse>;
readonly swap: {
readonly path: "/terra.market.v1beta1.Query/Swap";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QuerySwapRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QuerySwapRequest;
readonly responseSerialize: (value: QuerySwapResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QuerySwapResponse;
};
/** TerraPoolDelta returns terra_pool_delta amount. */
TerraPoolDelta(request: QueryTerraPoolDeltaRequest): Promise<QueryTerraPoolDeltaResponse>;
readonly terraPoolDelta: {
readonly path: "/terra.market.v1beta1.Query/TerraPoolDelta";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTerraPoolDeltaRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTerraPoolDeltaRequest;
readonly responseSerialize: (value: QueryTerraPoolDeltaResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTerraPoolDeltaResponse;
};
/** Params queries all parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/terra.market.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** Swap returns simulated swap amount. */
swap: handleUnaryCall<QuerySwapRequest, QuerySwapResponse>;
/** TerraPoolDelta returns terra_pool_delta amount. */
terraPoolDelta: handleUnaryCall<QueryTerraPoolDeltaRequest, QueryTerraPoolDeltaResponse>;
/** Params queries all parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
Swap(request: QuerySwapRequest): Promise<QuerySwapResponse>;
TerraPoolDelta(request: QueryTerraPoolDeltaRequest): Promise<QueryTerraPoolDeltaResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** Swap returns simulated swap amount. */
swap(request: QuerySwapRequest, callback: (error: ServiceError | null, response: QuerySwapResponse) => void): ClientUnaryCall;
swap(request: QuerySwapRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QuerySwapResponse) => void): ClientUnaryCall;
swap(request: QuerySwapRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySwapResponse) => void): ClientUnaryCall;
/** TerraPoolDelta returns terra_pool_delta amount. */
terraPoolDelta(request: QueryTerraPoolDeltaRequest, callback: (error: ServiceError | null, response: QueryTerraPoolDeltaResponse) => void): ClientUnaryCall;
terraPoolDelta(request: QueryTerraPoolDeltaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTerraPoolDeltaResponse) => void): ClientUnaryCall;
terraPoolDelta(request: QueryTerraPoolDeltaRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTerraPoolDeltaResponse) => void): ClientUnaryCall;
/** Params queries all parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -97,0 +136,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryTerraPoolDeltaResponse = exports.QueryTerraPoolDeltaRequest = exports.QuerySwapResponse = exports.QuerySwapRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryTerraPoolDeltaResponse = exports.QueryTerraPoolDeltaRequest = exports.QuerySwapResponse = exports.QuerySwapRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -302,26 +303,36 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Swap = this.Swap.bind(this);
this.TerraPoolDelta = this.TerraPoolDelta.bind(this);
this.Params = this.Params.bind(this);
}
Swap(request) {
const data = exports.QuerySwapRequest.encode(request).finish();
const promise = this.rpc.request("terra.market.v1beta1.Query", "Swap", data);
return promise.then((data) => exports.QuerySwapResponse.decode(new minimal_1.default.Reader(data)));
}
TerraPoolDelta(request) {
const data = exports.QueryTerraPoolDeltaRequest.encode(request).finish();
const promise = this.rpc.request("terra.market.v1beta1.Query", "TerraPoolDelta", data);
return promise.then((data) => exports.QueryTerraPoolDeltaResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("terra.market.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** Swap returns simulated swap amount. */
swap: {
path: "/terra.market.v1beta1.Query/Swap",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QuerySwapRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QuerySwapRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QuerySwapResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QuerySwapResponse.decode(value),
},
/** TerraPoolDelta returns terra_pool_delta amount. */
terraPoolDelta: {
path: "/terra.market.v1beta1.Query/TerraPoolDelta",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTerraPoolDeltaRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTerraPoolDeltaRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTerraPoolDeltaResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTerraPoolDeltaResponse.decode(value),
},
/** Params queries all parameters. */
params: {
path: "/terra.market.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "terra.market.v1beta1.Query");
var globalThis = (() => {

@@ -328,0 +339,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -57,3 +59,3 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Msg defines the market Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -63,3 +65,11 @@ * Swap defines a method for swapping coin from one denom to another

*/
Swap(request: MsgSwap): Promise<MsgSwapResponse>;
readonly swap: {
readonly path: "/terra.market.v1beta1.Msg/Swap";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSwap) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSwap;
readonly responseSerialize: (value: MsgSwapResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSwapResponse;
};
/**

@@ -69,13 +79,41 @@ * SwapSend defines a method for swapping and sending coin from a account to other

*/
SwapSend(request: MsgSwapSend): Promise<MsgSwapSendResponse>;
readonly swapSend: {
readonly path: "/terra.market.v1beta1.Msg/SwapSend";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgSwapSend) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgSwapSend;
readonly responseSerialize: (value: MsgSwapSendResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgSwapSendResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* Swap defines a method for swapping coin from one denom to another
* denom.
*/
swap: handleUnaryCall<MsgSwap, MsgSwapResponse>;
/**
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*/
swapSend: handleUnaryCall<MsgSwapSend, MsgSwapSendResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
Swap(request: MsgSwap): Promise<MsgSwapResponse>;
SwapSend(request: MsgSwapSend): Promise<MsgSwapSendResponse>;
export interface MsgClient extends Client {
/**
* Swap defines a method for swapping coin from one denom to another
* denom.
*/
swap(request: MsgSwap, callback: (error: ServiceError | null, response: MsgSwapResponse) => void): ClientUnaryCall;
swap(request: MsgSwap, metadata: Metadata, callback: (error: ServiceError | null, response: MsgSwapResponse) => void): ClientUnaryCall;
swap(request: MsgSwap, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSwapResponse) => void): ClientUnaryCall;
/**
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*/
swapSend(request: MsgSwapSend, callback: (error: ServiceError | null, response: MsgSwapSendResponse) => void): ClientUnaryCall;
swapSend(request: MsgSwapSend, metadata: Metadata, callback: (error: ServiceError | null, response: MsgSwapSendResponse) => void): ClientUnaryCall;
swapSend(request: MsgSwapSend, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgSwapSendResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -82,0 +120,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgSwapSendResponse = exports.MsgSwapSend = exports.MsgSwapResponse = exports.MsgSwap = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgSwapSendResponse = exports.MsgSwapSend = exports.MsgSwapResponse = exports.MsgSwap = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -356,20 +357,32 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.Swap = this.Swap.bind(this);
this.SwapSend = this.SwapSend.bind(this);
}
Swap(request) {
const data = exports.MsgSwap.encode(request).finish();
const promise = this.rpc.request("terra.market.v1beta1.Msg", "Swap", data);
return promise.then((data) => exports.MsgSwapResponse.decode(new minimal_1.default.Reader(data)));
}
SwapSend(request) {
const data = exports.MsgSwapSend.encode(request).finish();
const promise = this.rpc.request("terra.market.v1beta1.Msg", "SwapSend", data);
return promise.then((data) => exports.MsgSwapSendResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the market Msg service. */
exports.MsgService = {
/**
* Swap defines a method for swapping coin from one denom to another
* denom.
*/
swap: {
path: "/terra.market.v1beta1.Msg/Swap",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSwap.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSwap.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSwapResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSwapResponse.decode(value),
},
/**
* SwapSend defines a method for swapping and sending coin from a account to other
* account.
*/
swapSend: {
path: "/terra.market.v1beta1.Msg/SwapSend",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgSwapSend.encode(value).finish()),
requestDeserialize: (value) => exports.MsgSwapSend.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgSwapSendResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgSwapSendResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "terra.market.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -376,0 +389,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -344,50 +346,217 @@ import { AggregateExchangeRatePrevote, AggregateExchangeRateVote, Params, Denom } from "../../../terra/oracle/v1beta1/oracle";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** ExchangeRate returns exchange rate of a denom */
ExchangeRate(request: QueryExchangeRateRequest): Promise<QueryExchangeRateResponse>;
readonly exchangeRate: {
readonly path: "/terra.oracle.v1beta1.Query/ExchangeRate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryExchangeRateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryExchangeRateRequest;
readonly responseSerialize: (value: QueryExchangeRateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryExchangeRateResponse;
};
/** ExchangeRates returns exchange rates of all denoms */
ExchangeRates(request: QueryExchangeRatesRequest): Promise<QueryExchangeRatesResponse>;
readonly exchangeRates: {
readonly path: "/terra.oracle.v1beta1.Query/ExchangeRates";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryExchangeRatesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryExchangeRatesRequest;
readonly responseSerialize: (value: QueryExchangeRatesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryExchangeRatesResponse;
};
/** TobinTax returns tobin tax of a denom */
TobinTax(request: QueryTobinTaxRequest): Promise<QueryTobinTaxResponse>;
readonly tobinTax: {
readonly path: "/terra.oracle.v1beta1.Query/TobinTax";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTobinTaxRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTobinTaxRequest;
readonly responseSerialize: (value: QueryTobinTaxResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTobinTaxResponse;
};
/** TobinTaxes returns tobin taxes of all denoms */
TobinTaxes(request: QueryTobinTaxesRequest): Promise<QueryTobinTaxesResponse>;
readonly tobinTaxes: {
readonly path: "/terra.oracle.v1beta1.Query/TobinTaxes";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTobinTaxesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTobinTaxesRequest;
readonly responseSerialize: (value: QueryTobinTaxesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTobinTaxesResponse;
};
/** Actives returns all active denoms */
Actives(request: QueryActivesRequest): Promise<QueryActivesResponse>;
readonly actives: {
readonly path: "/terra.oracle.v1beta1.Query/Actives";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryActivesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryActivesRequest;
readonly responseSerialize: (value: QueryActivesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryActivesResponse;
};
/** VoteTargets returns all vote target denoms */
VoteTargets(request: QueryVoteTargetsRequest): Promise<QueryVoteTargetsResponse>;
readonly voteTargets: {
readonly path: "/terra.oracle.v1beta1.Query/VoteTargets";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryVoteTargetsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryVoteTargetsRequest;
readonly responseSerialize: (value: QueryVoteTargetsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryVoteTargetsResponse;
};
/** FeederDelegation returns feeder delegation of a validator */
FeederDelegation(request: QueryFeederDelegationRequest): Promise<QueryFeederDelegationResponse>;
readonly feederDelegation: {
readonly path: "/terra.oracle.v1beta1.Query/FeederDelegation";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryFeederDelegationRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryFeederDelegationRequest;
readonly responseSerialize: (value: QueryFeederDelegationResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryFeederDelegationResponse;
};
/** MissCounter returns oracle miss counter of a validator */
MissCounter(request: QueryMissCounterRequest): Promise<QueryMissCounterResponse>;
readonly missCounter: {
readonly path: "/terra.oracle.v1beta1.Query/MissCounter";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryMissCounterRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryMissCounterRequest;
readonly responseSerialize: (value: QueryMissCounterResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryMissCounterResponse;
};
/** AggregatePrevote returns an aggregate prevote of a validator */
AggregatePrevote(request: QueryAggregatePrevoteRequest): Promise<QueryAggregatePrevoteResponse>;
readonly aggregatePrevote: {
readonly path: "/terra.oracle.v1beta1.Query/AggregatePrevote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAggregatePrevoteRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAggregatePrevoteRequest;
readonly responseSerialize: (value: QueryAggregatePrevoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAggregatePrevoteResponse;
};
/** AggregatePrevotes returns aggregate prevotes of all validators */
AggregatePrevotes(request: QueryAggregatePrevotesRequest): Promise<QueryAggregatePrevotesResponse>;
readonly aggregatePrevotes: {
readonly path: "/terra.oracle.v1beta1.Query/AggregatePrevotes";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAggregatePrevotesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAggregatePrevotesRequest;
readonly responseSerialize: (value: QueryAggregatePrevotesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAggregatePrevotesResponse;
};
/** AggregateVote returns an aggregate vote of a validator */
AggregateVote(request: QueryAggregateVoteRequest): Promise<QueryAggregateVoteResponse>;
readonly aggregateVote: {
readonly path: "/terra.oracle.v1beta1.Query/AggregateVote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAggregateVoteRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAggregateVoteRequest;
readonly responseSerialize: (value: QueryAggregateVoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAggregateVoteResponse;
};
/** AggregateVotes returns aggregate votes of all validators */
AggregateVotes(request: QueryAggregateVotesRequest): Promise<QueryAggregateVotesResponse>;
readonly aggregateVotes: {
readonly path: "/terra.oracle.v1beta1.Query/AggregateVotes";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryAggregateVotesRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryAggregateVotesRequest;
readonly responseSerialize: (value: QueryAggregateVotesResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryAggregateVotesResponse;
};
/** Params queries all parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/terra.oracle.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** ExchangeRate returns exchange rate of a denom */
exchangeRate: handleUnaryCall<QueryExchangeRateRequest, QueryExchangeRateResponse>;
/** ExchangeRates returns exchange rates of all denoms */
exchangeRates: handleUnaryCall<QueryExchangeRatesRequest, QueryExchangeRatesResponse>;
/** TobinTax returns tobin tax of a denom */
tobinTax: handleUnaryCall<QueryTobinTaxRequest, QueryTobinTaxResponse>;
/** TobinTaxes returns tobin taxes of all denoms */
tobinTaxes: handleUnaryCall<QueryTobinTaxesRequest, QueryTobinTaxesResponse>;
/** Actives returns all active denoms */
actives: handleUnaryCall<QueryActivesRequest, QueryActivesResponse>;
/** VoteTargets returns all vote target denoms */
voteTargets: handleUnaryCall<QueryVoteTargetsRequest, QueryVoteTargetsResponse>;
/** FeederDelegation returns feeder delegation of a validator */
feederDelegation: handleUnaryCall<QueryFeederDelegationRequest, QueryFeederDelegationResponse>;
/** MissCounter returns oracle miss counter of a validator */
missCounter: handleUnaryCall<QueryMissCounterRequest, QueryMissCounterResponse>;
/** AggregatePrevote returns an aggregate prevote of a validator */
aggregatePrevote: handleUnaryCall<QueryAggregatePrevoteRequest, QueryAggregatePrevoteResponse>;
/** AggregatePrevotes returns aggregate prevotes of all validators */
aggregatePrevotes: handleUnaryCall<QueryAggregatePrevotesRequest, QueryAggregatePrevotesResponse>;
/** AggregateVote returns an aggregate vote of a validator */
aggregateVote: handleUnaryCall<QueryAggregateVoteRequest, QueryAggregateVoteResponse>;
/** AggregateVotes returns aggregate votes of all validators */
aggregateVotes: handleUnaryCall<QueryAggregateVotesRequest, QueryAggregateVotesResponse>;
/** Params queries all parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
ExchangeRate(request: QueryExchangeRateRequest): Promise<QueryExchangeRateResponse>;
ExchangeRates(request: QueryExchangeRatesRequest): Promise<QueryExchangeRatesResponse>;
TobinTax(request: QueryTobinTaxRequest): Promise<QueryTobinTaxResponse>;
TobinTaxes(request: QueryTobinTaxesRequest): Promise<QueryTobinTaxesResponse>;
Actives(request: QueryActivesRequest): Promise<QueryActivesResponse>;
VoteTargets(request: QueryVoteTargetsRequest): Promise<QueryVoteTargetsResponse>;
FeederDelegation(request: QueryFeederDelegationRequest): Promise<QueryFeederDelegationResponse>;
MissCounter(request: QueryMissCounterRequest): Promise<QueryMissCounterResponse>;
AggregatePrevote(request: QueryAggregatePrevoteRequest): Promise<QueryAggregatePrevoteResponse>;
AggregatePrevotes(request: QueryAggregatePrevotesRequest): Promise<QueryAggregatePrevotesResponse>;
AggregateVote(request: QueryAggregateVoteRequest): Promise<QueryAggregateVoteResponse>;
AggregateVotes(request: QueryAggregateVotesRequest): Promise<QueryAggregateVotesResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** ExchangeRate returns exchange rate of a denom */
exchangeRate(request: QueryExchangeRateRequest, callback: (error: ServiceError | null, response: QueryExchangeRateResponse) => void): ClientUnaryCall;
exchangeRate(request: QueryExchangeRateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryExchangeRateResponse) => void): ClientUnaryCall;
exchangeRate(request: QueryExchangeRateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryExchangeRateResponse) => void): ClientUnaryCall;
/** ExchangeRates returns exchange rates of all denoms */
exchangeRates(request: QueryExchangeRatesRequest, callback: (error: ServiceError | null, response: QueryExchangeRatesResponse) => void): ClientUnaryCall;
exchangeRates(request: QueryExchangeRatesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryExchangeRatesResponse) => void): ClientUnaryCall;
exchangeRates(request: QueryExchangeRatesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryExchangeRatesResponse) => void): ClientUnaryCall;
/** TobinTax returns tobin tax of a denom */
tobinTax(request: QueryTobinTaxRequest, callback: (error: ServiceError | null, response: QueryTobinTaxResponse) => void): ClientUnaryCall;
tobinTax(request: QueryTobinTaxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTobinTaxResponse) => void): ClientUnaryCall;
tobinTax(request: QueryTobinTaxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTobinTaxResponse) => void): ClientUnaryCall;
/** TobinTaxes returns tobin taxes of all denoms */
tobinTaxes(request: QueryTobinTaxesRequest, callback: (error: ServiceError | null, response: QueryTobinTaxesResponse) => void): ClientUnaryCall;
tobinTaxes(request: QueryTobinTaxesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTobinTaxesResponse) => void): ClientUnaryCall;
tobinTaxes(request: QueryTobinTaxesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTobinTaxesResponse) => void): ClientUnaryCall;
/** Actives returns all active denoms */
actives(request: QueryActivesRequest, callback: (error: ServiceError | null, response: QueryActivesResponse) => void): ClientUnaryCall;
actives(request: QueryActivesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryActivesResponse) => void): ClientUnaryCall;
actives(request: QueryActivesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryActivesResponse) => void): ClientUnaryCall;
/** VoteTargets returns all vote target denoms */
voteTargets(request: QueryVoteTargetsRequest, callback: (error: ServiceError | null, response: QueryVoteTargetsResponse) => void): ClientUnaryCall;
voteTargets(request: QueryVoteTargetsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryVoteTargetsResponse) => void): ClientUnaryCall;
voteTargets(request: QueryVoteTargetsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryVoteTargetsResponse) => void): ClientUnaryCall;
/** FeederDelegation returns feeder delegation of a validator */
feederDelegation(request: QueryFeederDelegationRequest, callback: (error: ServiceError | null, response: QueryFeederDelegationResponse) => void): ClientUnaryCall;
feederDelegation(request: QueryFeederDelegationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryFeederDelegationResponse) => void): ClientUnaryCall;
feederDelegation(request: QueryFeederDelegationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryFeederDelegationResponse) => void): ClientUnaryCall;
/** MissCounter returns oracle miss counter of a validator */
missCounter(request: QueryMissCounterRequest, callback: (error: ServiceError | null, response: QueryMissCounterResponse) => void): ClientUnaryCall;
missCounter(request: QueryMissCounterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryMissCounterResponse) => void): ClientUnaryCall;
missCounter(request: QueryMissCounterRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryMissCounterResponse) => void): ClientUnaryCall;
/** AggregatePrevote returns an aggregate prevote of a validator */
aggregatePrevote(request: QueryAggregatePrevoteRequest, callback: (error: ServiceError | null, response: QueryAggregatePrevoteResponse) => void): ClientUnaryCall;
aggregatePrevote(request: QueryAggregatePrevoteRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAggregatePrevoteResponse) => void): ClientUnaryCall;
aggregatePrevote(request: QueryAggregatePrevoteRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAggregatePrevoteResponse) => void): ClientUnaryCall;
/** AggregatePrevotes returns aggregate prevotes of all validators */
aggregatePrevotes(request: QueryAggregatePrevotesRequest, callback: (error: ServiceError | null, response: QueryAggregatePrevotesResponse) => void): ClientUnaryCall;
aggregatePrevotes(request: QueryAggregatePrevotesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAggregatePrevotesResponse) => void): ClientUnaryCall;
aggregatePrevotes(request: QueryAggregatePrevotesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAggregatePrevotesResponse) => void): ClientUnaryCall;
/** AggregateVote returns an aggregate vote of a validator */
aggregateVote(request: QueryAggregateVoteRequest, callback: (error: ServiceError | null, response: QueryAggregateVoteResponse) => void): ClientUnaryCall;
aggregateVote(request: QueryAggregateVoteRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAggregateVoteResponse) => void): ClientUnaryCall;
aggregateVote(request: QueryAggregateVoteRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAggregateVoteResponse) => void): ClientUnaryCall;
/** AggregateVotes returns aggregate votes of all validators */
aggregateVotes(request: QueryAggregateVotesRequest, callback: (error: ServiceError | null, response: QueryAggregateVotesResponse) => void): ClientUnaryCall;
aggregateVotes(request: QueryAggregateVotesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryAggregateVotesResponse) => void): ClientUnaryCall;
aggregateVotes(request: QueryAggregateVotesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryAggregateVotesResponse) => void): ClientUnaryCall;
/** Params queries all parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -394,0 +563,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAggregateVotesResponse = exports.QueryAggregateVotesRequest = exports.QueryAggregateVoteResponse = exports.QueryAggregateVoteRequest = exports.QueryAggregatePrevotesResponse = exports.QueryAggregatePrevotesRequest = exports.QueryAggregatePrevoteResponse = exports.QueryAggregatePrevoteRequest = exports.QueryMissCounterResponse = exports.QueryMissCounterRequest = exports.QueryFeederDelegationResponse = exports.QueryFeederDelegationRequest = exports.QueryVoteTargetsResponse = exports.QueryVoteTargetsRequest = exports.QueryActivesResponse = exports.QueryActivesRequest = exports.QueryTobinTaxesResponse = exports.QueryTobinTaxesRequest = exports.QueryTobinTaxResponse = exports.QueryTobinTaxRequest = exports.QueryExchangeRatesResponse = exports.QueryExchangeRatesRequest = exports.QueryExchangeRateResponse = exports.QueryExchangeRateRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryAggregateVotesResponse = exports.QueryAggregateVotesRequest = exports.QueryAggregateVoteResponse = exports.QueryAggregateVoteRequest = exports.QueryAggregatePrevotesResponse = exports.QueryAggregatePrevotesRequest = exports.QueryAggregatePrevoteResponse = exports.QueryAggregatePrevoteRequest = exports.QueryMissCounterResponse = exports.QueryMissCounterRequest = exports.QueryFeederDelegationResponse = exports.QueryFeederDelegationRequest = exports.QueryVoteTargetsResponse = exports.QueryVoteTargetsRequest = exports.QueryActivesResponse = exports.QueryActivesRequest = exports.QueryTobinTaxesResponse = exports.QueryTobinTaxesRequest = exports.QueryTobinTaxResponse = exports.QueryTobinTaxRequest = exports.QueryExchangeRatesResponse = exports.QueryExchangeRatesRequest = exports.QueryExchangeRateResponse = exports.QueryExchangeRateRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -1249,86 +1250,136 @@ const oracle_1 = require("../../../terra/oracle/v1beta1/oracle");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.ExchangeRate = this.ExchangeRate.bind(this);
this.ExchangeRates = this.ExchangeRates.bind(this);
this.TobinTax = this.TobinTax.bind(this);
this.TobinTaxes = this.TobinTaxes.bind(this);
this.Actives = this.Actives.bind(this);
this.VoteTargets = this.VoteTargets.bind(this);
this.FeederDelegation = this.FeederDelegation.bind(this);
this.MissCounter = this.MissCounter.bind(this);
this.AggregatePrevote = this.AggregatePrevote.bind(this);
this.AggregatePrevotes = this.AggregatePrevotes.bind(this);
this.AggregateVote = this.AggregateVote.bind(this);
this.AggregateVotes = this.AggregateVotes.bind(this);
this.Params = this.Params.bind(this);
}
ExchangeRate(request) {
const data = exports.QueryExchangeRateRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "ExchangeRate", data);
return promise.then((data) => exports.QueryExchangeRateResponse.decode(new minimal_1.default.Reader(data)));
}
ExchangeRates(request) {
const data = exports.QueryExchangeRatesRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "ExchangeRates", data);
return promise.then((data) => exports.QueryExchangeRatesResponse.decode(new minimal_1.default.Reader(data)));
}
TobinTax(request) {
const data = exports.QueryTobinTaxRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "TobinTax", data);
return promise.then((data) => exports.QueryTobinTaxResponse.decode(new minimal_1.default.Reader(data)));
}
TobinTaxes(request) {
const data = exports.QueryTobinTaxesRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "TobinTaxes", data);
return promise.then((data) => exports.QueryTobinTaxesResponse.decode(new minimal_1.default.Reader(data)));
}
Actives(request) {
const data = exports.QueryActivesRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "Actives", data);
return promise.then((data) => exports.QueryActivesResponse.decode(new minimal_1.default.Reader(data)));
}
VoteTargets(request) {
const data = exports.QueryVoteTargetsRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "VoteTargets", data);
return promise.then((data) => exports.QueryVoteTargetsResponse.decode(new minimal_1.default.Reader(data)));
}
FeederDelegation(request) {
const data = exports.QueryFeederDelegationRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "FeederDelegation", data);
return promise.then((data) => exports.QueryFeederDelegationResponse.decode(new minimal_1.default.Reader(data)));
}
MissCounter(request) {
const data = exports.QueryMissCounterRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "MissCounter", data);
return promise.then((data) => exports.QueryMissCounterResponse.decode(new minimal_1.default.Reader(data)));
}
AggregatePrevote(request) {
const data = exports.QueryAggregatePrevoteRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "AggregatePrevote", data);
return promise.then((data) => exports.QueryAggregatePrevoteResponse.decode(new minimal_1.default.Reader(data)));
}
AggregatePrevotes(request) {
const data = exports.QueryAggregatePrevotesRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "AggregatePrevotes", data);
return promise.then((data) => exports.QueryAggregatePrevotesResponse.decode(new minimal_1.default.Reader(data)));
}
AggregateVote(request) {
const data = exports.QueryAggregateVoteRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "AggregateVote", data);
return promise.then((data) => exports.QueryAggregateVoteResponse.decode(new minimal_1.default.Reader(data)));
}
AggregateVotes(request) {
const data = exports.QueryAggregateVotesRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "AggregateVotes", data);
return promise.then((data) => exports.QueryAggregateVotesResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** ExchangeRate returns exchange rate of a denom */
exchangeRate: {
path: "/terra.oracle.v1beta1.Query/ExchangeRate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryExchangeRateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryExchangeRateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryExchangeRateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryExchangeRateResponse.decode(value),
},
/** ExchangeRates returns exchange rates of all denoms */
exchangeRates: {
path: "/terra.oracle.v1beta1.Query/ExchangeRates",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryExchangeRatesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryExchangeRatesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryExchangeRatesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryExchangeRatesResponse.decode(value),
},
/** TobinTax returns tobin tax of a denom */
tobinTax: {
path: "/terra.oracle.v1beta1.Query/TobinTax",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTobinTaxRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTobinTaxRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTobinTaxResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTobinTaxResponse.decode(value),
},
/** TobinTaxes returns tobin taxes of all denoms */
tobinTaxes: {
path: "/terra.oracle.v1beta1.Query/TobinTaxes",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTobinTaxesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTobinTaxesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTobinTaxesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTobinTaxesResponse.decode(value),
},
/** Actives returns all active denoms */
actives: {
path: "/terra.oracle.v1beta1.Query/Actives",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryActivesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryActivesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryActivesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryActivesResponse.decode(value),
},
/** VoteTargets returns all vote target denoms */
voteTargets: {
path: "/terra.oracle.v1beta1.Query/VoteTargets",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryVoteTargetsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryVoteTargetsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryVoteTargetsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryVoteTargetsResponse.decode(value),
},
/** FeederDelegation returns feeder delegation of a validator */
feederDelegation: {
path: "/terra.oracle.v1beta1.Query/FeederDelegation",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryFeederDelegationRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryFeederDelegationRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryFeederDelegationResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryFeederDelegationResponse.decode(value),
},
/** MissCounter returns oracle miss counter of a validator */
missCounter: {
path: "/terra.oracle.v1beta1.Query/MissCounter",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryMissCounterRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryMissCounterRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryMissCounterResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryMissCounterResponse.decode(value),
},
/** AggregatePrevote returns an aggregate prevote of a validator */
aggregatePrevote: {
path: "/terra.oracle.v1beta1.Query/AggregatePrevote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAggregatePrevoteRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAggregatePrevoteRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAggregatePrevoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAggregatePrevoteResponse.decode(value),
},
/** AggregatePrevotes returns aggregate prevotes of all validators */
aggregatePrevotes: {
path: "/terra.oracle.v1beta1.Query/AggregatePrevotes",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAggregatePrevotesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAggregatePrevotesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAggregatePrevotesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAggregatePrevotesResponse.decode(value),
},
/** AggregateVote returns an aggregate vote of a validator */
aggregateVote: {
path: "/terra.oracle.v1beta1.Query/AggregateVote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAggregateVoteRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAggregateVoteRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAggregateVoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAggregateVoteResponse.decode(value),
},
/** AggregateVotes returns aggregate votes of all validators */
aggregateVotes: {
path: "/terra.oracle.v1beta1.Query/AggregateVotes",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryAggregateVotesRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryAggregateVotesRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryAggregateVotesResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryAggregateVotesResponse.decode(value),
},
/** Params queries all parameters. */
params: {
path: "/terra.oracle.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "terra.oracle.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -1335,0 +1386,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -83,3 +85,3 @@ export declare const protobufPackage = "terra.oracle.v1beta1";

/** Msg defines the oracle Msg service. */
export interface Msg {
export declare const MsgService: {
/**

@@ -89,3 +91,11 @@ * AggregateExchangeRatePrevote defines a method for submitting

*/
AggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote): Promise<MsgAggregateExchangeRatePrevoteResponse>;
readonly aggregateExchangeRatePrevote: {
readonly path: "/terra.oracle.v1beta1.Msg/AggregateExchangeRatePrevote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgAggregateExchangeRatePrevote) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgAggregateExchangeRatePrevote;
readonly responseSerialize: (value: MsgAggregateExchangeRatePrevoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgAggregateExchangeRatePrevoteResponse;
};
/**

@@ -95,16 +105,57 @@ * AggregateExchangeRateVote defines a method for submitting

*/
AggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise<MsgAggregateExchangeRateVoteResponse>;
readonly aggregateExchangeRateVote: {
readonly path: "/terra.oracle.v1beta1.Msg/AggregateExchangeRateVote";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgAggregateExchangeRateVote) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgAggregateExchangeRateVote;
readonly responseSerialize: (value: MsgAggregateExchangeRateVoteResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgAggregateExchangeRateVoteResponse;
};
/** DelegateFeedConsent defines a method for setting the feeder delegation */
DelegateFeedConsent(request: MsgDelegateFeedConsent): Promise<MsgDelegateFeedConsentResponse>;
readonly delegateFeedConsent: {
readonly path: "/terra.oracle.v1beta1.Msg/DelegateFeedConsent";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgDelegateFeedConsent) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgDelegateFeedConsent;
readonly responseSerialize: (value: MsgDelegateFeedConsentResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgDelegateFeedConsentResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/**
* AggregateExchangeRatePrevote defines a method for submitting
* aggregate exchange rate prevote
*/
aggregateExchangeRatePrevote: handleUnaryCall<MsgAggregateExchangeRatePrevote, MsgAggregateExchangeRatePrevoteResponse>;
/**
* AggregateExchangeRateVote defines a method for submitting
* aggregate exchange rate vote
*/
aggregateExchangeRateVote: handleUnaryCall<MsgAggregateExchangeRateVote, MsgAggregateExchangeRateVoteResponse>;
/** DelegateFeedConsent defines a method for setting the feeder delegation */
delegateFeedConsent: handleUnaryCall<MsgDelegateFeedConsent, MsgDelegateFeedConsentResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
AggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote): Promise<MsgAggregateExchangeRatePrevoteResponse>;
AggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise<MsgAggregateExchangeRateVoteResponse>;
DelegateFeedConsent(request: MsgDelegateFeedConsent): Promise<MsgDelegateFeedConsentResponse>;
export interface MsgClient extends Client {
/**
* AggregateExchangeRatePrevote defines a method for submitting
* aggregate exchange rate prevote
*/
aggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote, callback: (error: ServiceError | null, response: MsgAggregateExchangeRatePrevoteResponse) => void): ClientUnaryCall;
aggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote, metadata: Metadata, callback: (error: ServiceError | null, response: MsgAggregateExchangeRatePrevoteResponse) => void): ClientUnaryCall;
aggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgAggregateExchangeRatePrevoteResponse) => void): ClientUnaryCall;
/**
* AggregateExchangeRateVote defines a method for submitting
* aggregate exchange rate vote
*/
aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote, callback: (error: ServiceError | null, response: MsgAggregateExchangeRateVoteResponse) => void): ClientUnaryCall;
aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote, metadata: Metadata, callback: (error: ServiceError | null, response: MsgAggregateExchangeRateVoteResponse) => void): ClientUnaryCall;
aggregateExchangeRateVote(request: MsgAggregateExchangeRateVote, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgAggregateExchangeRateVoteResponse) => void): ClientUnaryCall;
/** DelegateFeedConsent defines a method for setting the feeder delegation */
delegateFeedConsent(request: MsgDelegateFeedConsent, callback: (error: ServiceError | null, response: MsgDelegateFeedConsentResponse) => void): ClientUnaryCall;
delegateFeedConsent(request: MsgDelegateFeedConsent, metadata: Metadata, callback: (error: ServiceError | null, response: MsgDelegateFeedConsentResponse) => void): ClientUnaryCall;
delegateFeedConsent(request: MsgDelegateFeedConsent, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgDelegateFeedConsentResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -111,0 +162,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgDelegateFeedConsentResponse = exports.MsgDelegateFeedConsent = exports.MsgAggregateExchangeRateVoteResponse = exports.MsgAggregateExchangeRateVote = exports.MsgAggregateExchangeRatePrevoteResponse = exports.MsgAggregateExchangeRatePrevote = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgDelegateFeedConsentResponse = exports.MsgDelegateFeedConsent = exports.MsgAggregateExchangeRateVoteResponse = exports.MsgAggregateExchangeRateVote = exports.MsgAggregateExchangeRatePrevoteResponse = exports.MsgAggregateExchangeRatePrevote = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -375,26 +376,42 @@ exports.protobufPackage = "terra.oracle.v1beta1";

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.AggregateExchangeRatePrevote = this.AggregateExchangeRatePrevote.bind(this);
this.AggregateExchangeRateVote = this.AggregateExchangeRateVote.bind(this);
this.DelegateFeedConsent = this.DelegateFeedConsent.bind(this);
}
AggregateExchangeRatePrevote(request) {
const data = exports.MsgAggregateExchangeRatePrevote.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Msg", "AggregateExchangeRatePrevote", data);
return promise.then((data) => exports.MsgAggregateExchangeRatePrevoteResponse.decode(new minimal_1.default.Reader(data)));
}
AggregateExchangeRateVote(request) {
const data = exports.MsgAggregateExchangeRateVote.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Msg", "AggregateExchangeRateVote", data);
return promise.then((data) => exports.MsgAggregateExchangeRateVoteResponse.decode(new minimal_1.default.Reader(data)));
}
DelegateFeedConsent(request) {
const data = exports.MsgDelegateFeedConsent.encode(request).finish();
const promise = this.rpc.request("terra.oracle.v1beta1.Msg", "DelegateFeedConsent", data);
return promise.then((data) => exports.MsgDelegateFeedConsentResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the oracle Msg service. */
exports.MsgService = {
/**
* AggregateExchangeRatePrevote defines a method for submitting
* aggregate exchange rate prevote
*/
aggregateExchangeRatePrevote: {
path: "/terra.oracle.v1beta1.Msg/AggregateExchangeRatePrevote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgAggregateExchangeRatePrevote.encode(value).finish()),
requestDeserialize: (value) => exports.MsgAggregateExchangeRatePrevote.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgAggregateExchangeRatePrevoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgAggregateExchangeRatePrevoteResponse.decode(value),
},
/**
* AggregateExchangeRateVote defines a method for submitting
* aggregate exchange rate vote
*/
aggregateExchangeRateVote: {
path: "/terra.oracle.v1beta1.Msg/AggregateExchangeRateVote",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgAggregateExchangeRateVote.encode(value).finish()),
requestDeserialize: (value) => exports.MsgAggregateExchangeRateVote.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgAggregateExchangeRateVoteResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgAggregateExchangeRateVoteResponse.decode(value),
},
/** DelegateFeedConsent defines a method for setting the feeder delegation */
delegateFeedConsent: {
path: "/terra.oracle.v1beta1.Msg/DelegateFeedConsent",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgDelegateFeedConsent.encode(value).finish()),
requestDeserialize: (value) => exports.MsgDelegateFeedConsent.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgDelegateFeedConsentResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgDelegateFeedConsentResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "terra.oracle.v1beta1.Msg");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -401,0 +418,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -215,35 +217,137 @@ import { Params } from "../../../terra/treasury/v1beta1/treasury";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** TaxRate return the current tax rate */
TaxRate(request: QueryTaxRateRequest): Promise<QueryTaxRateResponse>;
readonly taxRate: {
readonly path: "/terra.treasury.v1beta1.Query/TaxRate";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTaxRateRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTaxRateRequest;
readonly responseSerialize: (value: QueryTaxRateResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTaxRateResponse;
};
/** TaxCap returns the tax cap of a denom */
TaxCap(request: QueryTaxCapRequest): Promise<QueryTaxCapResponse>;
readonly taxCap: {
readonly path: "/terra.treasury.v1beta1.Query/TaxCap";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTaxCapRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTaxCapRequest;
readonly responseSerialize: (value: QueryTaxCapResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTaxCapResponse;
};
/** TaxCaps returns the all tax caps */
TaxCaps(request: QueryTaxCapsRequest): Promise<QueryTaxCapsResponse>;
readonly taxCaps: {
readonly path: "/terra.treasury.v1beta1.Query/TaxCaps";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTaxCapsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTaxCapsRequest;
readonly responseSerialize: (value: QueryTaxCapsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTaxCapsResponse;
};
/** RewardWeight return the current reward weight */
RewardWeight(request: QueryRewardWeightRequest): Promise<QueryRewardWeightResponse>;
readonly rewardWeight: {
readonly path: "/terra.treasury.v1beta1.Query/RewardWeight";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryRewardWeightRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryRewardWeightRequest;
readonly responseSerialize: (value: QueryRewardWeightResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryRewardWeightResponse;
};
/** SeigniorageProceeds return the current seigniorage proceeds */
SeigniorageProceeds(request: QuerySeigniorageProceedsRequest): Promise<QuerySeigniorageProceedsResponse>;
readonly seigniorageProceeds: {
readonly path: "/terra.treasury.v1beta1.Query/SeigniorageProceeds";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QuerySeigniorageProceedsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QuerySeigniorageProceedsRequest;
readonly responseSerialize: (value: QuerySeigniorageProceedsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QuerySeigniorageProceedsResponse;
};
/** TaxProceeds return the current tax proceeds */
TaxProceeds(request: QueryTaxProceedsRequest): Promise<QueryTaxProceedsResponse>;
readonly taxProceeds: {
readonly path: "/terra.treasury.v1beta1.Query/TaxProceeds";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryTaxProceedsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryTaxProceedsRequest;
readonly responseSerialize: (value: QueryTaxProceedsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryTaxProceedsResponse;
};
/** Indicators return the current trl informations */
Indicators(request: QueryIndicatorsRequest): Promise<QueryIndicatorsResponse>;
readonly indicators: {
readonly path: "/terra.treasury.v1beta1.Query/Indicators";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryIndicatorsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryIndicatorsRequest;
readonly responseSerialize: (value: QueryIndicatorsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryIndicatorsResponse;
};
/** Params queries all parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/terra.treasury.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** TaxRate return the current tax rate */
taxRate: handleUnaryCall<QueryTaxRateRequest, QueryTaxRateResponse>;
/** TaxCap returns the tax cap of a denom */
taxCap: handleUnaryCall<QueryTaxCapRequest, QueryTaxCapResponse>;
/** TaxCaps returns the all tax caps */
taxCaps: handleUnaryCall<QueryTaxCapsRequest, QueryTaxCapsResponse>;
/** RewardWeight return the current reward weight */
rewardWeight: handleUnaryCall<QueryRewardWeightRequest, QueryRewardWeightResponse>;
/** SeigniorageProceeds return the current seigniorage proceeds */
seigniorageProceeds: handleUnaryCall<QuerySeigniorageProceedsRequest, QuerySeigniorageProceedsResponse>;
/** TaxProceeds return the current tax proceeds */
taxProceeds: handleUnaryCall<QueryTaxProceedsRequest, QueryTaxProceedsResponse>;
/** Indicators return the current trl informations */
indicators: handleUnaryCall<QueryIndicatorsRequest, QueryIndicatorsResponse>;
/** Params queries all parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
TaxRate(request: QueryTaxRateRequest): Promise<QueryTaxRateResponse>;
TaxCap(request: QueryTaxCapRequest): Promise<QueryTaxCapResponse>;
TaxCaps(request: QueryTaxCapsRequest): Promise<QueryTaxCapsResponse>;
RewardWeight(request: QueryRewardWeightRequest): Promise<QueryRewardWeightResponse>;
SeigniorageProceeds(request: QuerySeigniorageProceedsRequest): Promise<QuerySeigniorageProceedsResponse>;
TaxProceeds(request: QueryTaxProceedsRequest): Promise<QueryTaxProceedsResponse>;
Indicators(request: QueryIndicatorsRequest): Promise<QueryIndicatorsResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** TaxRate return the current tax rate */
taxRate(request: QueryTaxRateRequest, callback: (error: ServiceError | null, response: QueryTaxRateResponse) => void): ClientUnaryCall;
taxRate(request: QueryTaxRateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTaxRateResponse) => void): ClientUnaryCall;
taxRate(request: QueryTaxRateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTaxRateResponse) => void): ClientUnaryCall;
/** TaxCap returns the tax cap of a denom */
taxCap(request: QueryTaxCapRequest, callback: (error: ServiceError | null, response: QueryTaxCapResponse) => void): ClientUnaryCall;
taxCap(request: QueryTaxCapRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTaxCapResponse) => void): ClientUnaryCall;
taxCap(request: QueryTaxCapRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTaxCapResponse) => void): ClientUnaryCall;
/** TaxCaps returns the all tax caps */
taxCaps(request: QueryTaxCapsRequest, callback: (error: ServiceError | null, response: QueryTaxCapsResponse) => void): ClientUnaryCall;
taxCaps(request: QueryTaxCapsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTaxCapsResponse) => void): ClientUnaryCall;
taxCaps(request: QueryTaxCapsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTaxCapsResponse) => void): ClientUnaryCall;
/** RewardWeight return the current reward weight */
rewardWeight(request: QueryRewardWeightRequest, callback: (error: ServiceError | null, response: QueryRewardWeightResponse) => void): ClientUnaryCall;
rewardWeight(request: QueryRewardWeightRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryRewardWeightResponse) => void): ClientUnaryCall;
rewardWeight(request: QueryRewardWeightRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryRewardWeightResponse) => void): ClientUnaryCall;
/** SeigniorageProceeds return the current seigniorage proceeds */
seigniorageProceeds(request: QuerySeigniorageProceedsRequest, callback: (error: ServiceError | null, response: QuerySeigniorageProceedsResponse) => void): ClientUnaryCall;
seigniorageProceeds(request: QuerySeigniorageProceedsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QuerySeigniorageProceedsResponse) => void): ClientUnaryCall;
seigniorageProceeds(request: QuerySeigniorageProceedsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuerySeigniorageProceedsResponse) => void): ClientUnaryCall;
/** TaxProceeds return the current tax proceeds */
taxProceeds(request: QueryTaxProceedsRequest, callback: (error: ServiceError | null, response: QueryTaxProceedsResponse) => void): ClientUnaryCall;
taxProceeds(request: QueryTaxProceedsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryTaxProceedsResponse) => void): ClientUnaryCall;
taxProceeds(request: QueryTaxProceedsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryTaxProceedsResponse) => void): ClientUnaryCall;
/** Indicators return the current trl informations */
indicators(request: QueryIndicatorsRequest, callback: (error: ServiceError | null, response: QueryIndicatorsResponse) => void): ClientUnaryCall;
indicators(request: QueryIndicatorsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryIndicatorsResponse) => void): ClientUnaryCall;
indicators(request: QueryIndicatorsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryIndicatorsResponse) => void): ClientUnaryCall;
/** Params queries all parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -250,0 +354,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryIndicatorsResponse = exports.QueryIndicatorsRequest = exports.QuerySeigniorageProceedsResponse = exports.QuerySeigniorageProceedsRequest = exports.QueryTaxProceedsResponse = exports.QueryTaxProceedsRequest = exports.QueryRewardWeightResponse = exports.QueryRewardWeightRequest = exports.QueryTaxCapsResponse = exports.QueryTaxCapsResponseItem = exports.QueryTaxCapsRequest = exports.QueryTaxCapResponse = exports.QueryTaxCapRequest = exports.QueryTaxRateResponse = exports.QueryTaxRateRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryIndicatorsResponse = exports.QueryIndicatorsRequest = exports.QuerySeigniorageProceedsResponse = exports.QuerySeigniorageProceedsRequest = exports.QueryTaxProceedsResponse = exports.QueryTaxProceedsRequest = exports.QueryRewardWeightResponse = exports.QueryRewardWeightRequest = exports.QueryTaxCapsResponse = exports.QueryTaxCapsResponseItem = exports.QueryTaxCapsRequest = exports.QueryTaxCapResponse = exports.QueryTaxCapRequest = exports.QueryTaxRateResponse = exports.QueryTaxRateRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -798,56 +799,86 @@ const treasury_1 = require("../../../terra/treasury/v1beta1/treasury");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.TaxRate = this.TaxRate.bind(this);
this.TaxCap = this.TaxCap.bind(this);
this.TaxCaps = this.TaxCaps.bind(this);
this.RewardWeight = this.RewardWeight.bind(this);
this.SeigniorageProceeds = this.SeigniorageProceeds.bind(this);
this.TaxProceeds = this.TaxProceeds.bind(this);
this.Indicators = this.Indicators.bind(this);
this.Params = this.Params.bind(this);
}
TaxRate(request) {
const data = exports.QueryTaxRateRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "TaxRate", data);
return promise.then((data) => exports.QueryTaxRateResponse.decode(new minimal_1.default.Reader(data)));
}
TaxCap(request) {
const data = exports.QueryTaxCapRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "TaxCap", data);
return promise.then((data) => exports.QueryTaxCapResponse.decode(new minimal_1.default.Reader(data)));
}
TaxCaps(request) {
const data = exports.QueryTaxCapsRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "TaxCaps", data);
return promise.then((data) => exports.QueryTaxCapsResponse.decode(new minimal_1.default.Reader(data)));
}
RewardWeight(request) {
const data = exports.QueryRewardWeightRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "RewardWeight", data);
return promise.then((data) => exports.QueryRewardWeightResponse.decode(new minimal_1.default.Reader(data)));
}
SeigniorageProceeds(request) {
const data = exports.QuerySeigniorageProceedsRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "SeigniorageProceeds", data);
return promise.then((data) => exports.QuerySeigniorageProceedsResponse.decode(new minimal_1.default.Reader(data)));
}
TaxProceeds(request) {
const data = exports.QueryTaxProceedsRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "TaxProceeds", data);
return promise.then((data) => exports.QueryTaxProceedsResponse.decode(new minimal_1.default.Reader(data)));
}
Indicators(request) {
const data = exports.QueryIndicatorsRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "Indicators", data);
return promise.then((data) => exports.QueryIndicatorsResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("terra.treasury.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** TaxRate return the current tax rate */
taxRate: {
path: "/terra.treasury.v1beta1.Query/TaxRate",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTaxRateRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTaxRateRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTaxRateResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTaxRateResponse.decode(value),
},
/** TaxCap returns the tax cap of a denom */
taxCap: {
path: "/terra.treasury.v1beta1.Query/TaxCap",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTaxCapRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTaxCapRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTaxCapResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTaxCapResponse.decode(value),
},
/** TaxCaps returns the all tax caps */
taxCaps: {
path: "/terra.treasury.v1beta1.Query/TaxCaps",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTaxCapsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTaxCapsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTaxCapsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTaxCapsResponse.decode(value),
},
/** RewardWeight return the current reward weight */
rewardWeight: {
path: "/terra.treasury.v1beta1.Query/RewardWeight",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryRewardWeightRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryRewardWeightRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryRewardWeightResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryRewardWeightResponse.decode(value),
},
/** SeigniorageProceeds return the current seigniorage proceeds */
seigniorageProceeds: {
path: "/terra.treasury.v1beta1.Query/SeigniorageProceeds",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QuerySeigniorageProceedsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QuerySeigniorageProceedsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QuerySeigniorageProceedsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QuerySeigniorageProceedsResponse.decode(value),
},
/** TaxProceeds return the current tax proceeds */
taxProceeds: {
path: "/terra.treasury.v1beta1.Query/TaxProceeds",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryTaxProceedsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryTaxProceedsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryTaxProceedsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryTaxProceedsResponse.decode(value),
},
/** Indicators return the current trl informations */
indicators: {
path: "/terra.treasury.v1beta1.Query/Indicators",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryIndicatorsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryIndicatorsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryIndicatorsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryIndicatorsResponse.decode(value),
},
/** Params queries all parameters. */
params: {
path: "/terra.treasury.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "terra.treasury.v1beta1.Query");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -854,0 +885,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -37,14 +39,25 @@ import { Tx } from "../../../cosmos/tx/v1beta1/tx";

/** Service defines a gRPC service for interacting with transactions. */
export interface Service {
export declare const ServiceService: {
/** EstimateFee simulates executing a transaction for estimating gas usage. */
ComputeTax(request: ComputeTaxRequest): Promise<ComputeTaxResponse>;
readonly computeTax: {
readonly path: "/terra.tx.v1beta1.Service/ComputeTax";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ComputeTaxRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ComputeTaxRequest;
readonly responseSerialize: (value: ComputeTaxResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ComputeTaxResponse;
};
};
export interface ServiceServer extends UntypedServiceImplementation {
/** EstimateFee simulates executing a transaction for estimating gas usage. */
computeTax: handleUnaryCall<ComputeTaxRequest, ComputeTaxResponse>;
}
export declare class ServiceClientImpl implements Service {
private readonly rpc;
constructor(rpc: Rpc);
ComputeTax(request: ComputeTaxRequest): Promise<ComputeTaxResponse>;
export interface ServiceClient extends Client {
/** EstimateFee simulates executing a transaction for estimating gas usage. */
computeTax(request: ComputeTaxRequest, callback: (error: ServiceError | null, response: ComputeTaxResponse) => void): ClientUnaryCall;
computeTax(request: ComputeTaxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ComputeTaxResponse) => void): ClientUnaryCall;
computeTax(request: ComputeTaxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ComputeTaxResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const ServiceClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => ServiceClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -51,0 +64,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceClientImpl = exports.ComputeTaxResponse = exports.ComputeTaxRequest = exports.protobufPackage = void 0;
exports.ServiceClient = exports.ServiceService = exports.ComputeTaxResponse = exports.ComputeTaxRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -122,14 +123,16 @@ const tx_1 = require("../../../cosmos/tx/v1beta1/tx");

};
class ServiceClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.ComputeTax = this.ComputeTax.bind(this);
}
ComputeTax(request) {
const data = exports.ComputeTaxRequest.encode(request).finish();
const promise = this.rpc.request("terra.tx.v1beta1.Service", "ComputeTax", data);
return promise.then((data) => exports.ComputeTaxResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.ServiceClientImpl = ServiceClientImpl;
/** Service defines a gRPC service for interacting with transactions. */
exports.ServiceService = {
/** EstimateFee simulates executing a transaction for estimating gas usage. */
computeTax: {
path: "/terra.tx.v1beta1.Service/ComputeTax",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.ComputeTaxRequest.encode(value).finish()),
requestDeserialize: (value) => exports.ComputeTaxRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.ComputeTaxResponse.encode(value).finish()),
responseDeserialize: (value) => exports.ComputeTaxResponse.decode(value),
},
};
exports.ServiceClient = grpc_js_1.makeGenericClientConstructor(exports.ServiceService, "terra.tx.v1beta1.Service");
if (minimal_1.default.util.Long !== long_1.default) {

@@ -136,0 +139,0 @@ minimal_1.default.util.Long = long_1.default;

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -158,29 +160,105 @@ import { CodeInfo, ContractInfo, Params } from "../../../terra/wasm/v1beta1/wasm";

/** Query defines the gRPC querier service. */
export interface Query {
export declare const QueryService: {
/** CodeInfo returns the stored code info */
CodeInfo(request: QueryCodeInfoRequest): Promise<QueryCodeInfoResponse>;
readonly codeInfo: {
readonly path: "/terra.wasm.v1beta1.Query/CodeInfo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryCodeInfoRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryCodeInfoRequest;
readonly responseSerialize: (value: QueryCodeInfoResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryCodeInfoResponse;
};
/** ByteCode returns the stored byte code */
ByteCode(request: QueryByteCodeRequest): Promise<QueryByteCodeResponse>;
readonly byteCode: {
readonly path: "/terra.wasm.v1beta1.Query/ByteCode";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryByteCodeRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryByteCodeRequest;
readonly responseSerialize: (value: QueryByteCodeResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryByteCodeResponse;
};
/** ContractInfo returns the stored contract info */
ContractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
readonly contractInfo: {
readonly path: "/terra.wasm.v1beta1.Query/ContractInfo";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryContractInfoRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryContractInfoRequest;
readonly responseSerialize: (value: QueryContractInfoResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryContractInfoResponse;
};
/** ContractStore return smart query result from the contract */
ContractStore(request: QueryContractStoreRequest): Promise<QueryContractStoreResponse>;
readonly contractStore: {
readonly path: "/terra.wasm.v1beta1.Query/ContractStore";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryContractStoreRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryContractStoreRequest;
readonly responseSerialize: (value: QueryContractStoreResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryContractStoreResponse;
};
/** RawStore return single key from the raw store data of a contract */
RawStore(request: QueryRawStoreRequest): Promise<QueryRawStoreResponse>;
readonly rawStore: {
readonly path: "/terra.wasm.v1beta1.Query/RawStore";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryRawStoreRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryRawStoreRequest;
readonly responseSerialize: (value: QueryRawStoreResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryRawStoreResponse;
};
/** Params queries all parameters. */
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
readonly params: {
readonly path: "/terra.wasm.v1beta1.Query/Params";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: QueryParamsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => QueryParamsRequest;
readonly responseSerialize: (value: QueryParamsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => QueryParamsResponse;
};
};
export interface QueryServer extends UntypedServiceImplementation {
/** CodeInfo returns the stored code info */
codeInfo: handleUnaryCall<QueryCodeInfoRequest, QueryCodeInfoResponse>;
/** ByteCode returns the stored byte code */
byteCode: handleUnaryCall<QueryByteCodeRequest, QueryByteCodeResponse>;
/** ContractInfo returns the stored contract info */
contractInfo: handleUnaryCall<QueryContractInfoRequest, QueryContractInfoResponse>;
/** ContractStore return smart query result from the contract */
contractStore: handleUnaryCall<QueryContractStoreRequest, QueryContractStoreResponse>;
/** RawStore return single key from the raw store data of a contract */
rawStore: handleUnaryCall<QueryRawStoreRequest, QueryRawStoreResponse>;
/** Params queries all parameters. */
params: handleUnaryCall<QueryParamsRequest, QueryParamsResponse>;
}
export declare class QueryClientImpl implements Query {
private readonly rpc;
constructor(rpc: Rpc);
CodeInfo(request: QueryCodeInfoRequest): Promise<QueryCodeInfoResponse>;
ByteCode(request: QueryByteCodeRequest): Promise<QueryByteCodeResponse>;
ContractInfo(request: QueryContractInfoRequest): Promise<QueryContractInfoResponse>;
ContractStore(request: QueryContractStoreRequest): Promise<QueryContractStoreResponse>;
RawStore(request: QueryRawStoreRequest): Promise<QueryRawStoreResponse>;
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
export interface QueryClient extends Client {
/** CodeInfo returns the stored code info */
codeInfo(request: QueryCodeInfoRequest, callback: (error: ServiceError | null, response: QueryCodeInfoResponse) => void): ClientUnaryCall;
codeInfo(request: QueryCodeInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryCodeInfoResponse) => void): ClientUnaryCall;
codeInfo(request: QueryCodeInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryCodeInfoResponse) => void): ClientUnaryCall;
/** ByteCode returns the stored byte code */
byteCode(request: QueryByteCodeRequest, callback: (error: ServiceError | null, response: QueryByteCodeResponse) => void): ClientUnaryCall;
byteCode(request: QueryByteCodeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryByteCodeResponse) => void): ClientUnaryCall;
byteCode(request: QueryByteCodeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryByteCodeResponse) => void): ClientUnaryCall;
/** ContractInfo returns the stored contract info */
contractInfo(request: QueryContractInfoRequest, callback: (error: ServiceError | null, response: QueryContractInfoResponse) => void): ClientUnaryCall;
contractInfo(request: QueryContractInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryContractInfoResponse) => void): ClientUnaryCall;
contractInfo(request: QueryContractInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryContractInfoResponse) => void): ClientUnaryCall;
/** ContractStore return smart query result from the contract */
contractStore(request: QueryContractStoreRequest, callback: (error: ServiceError | null, response: QueryContractStoreResponse) => void): ClientUnaryCall;
contractStore(request: QueryContractStoreRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryContractStoreResponse) => void): ClientUnaryCall;
contractStore(request: QueryContractStoreRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryContractStoreResponse) => void): ClientUnaryCall;
/** RawStore return single key from the raw store data of a contract */
rawStore(request: QueryRawStoreRequest, callback: (error: ServiceError | null, response: QueryRawStoreResponse) => void): ClientUnaryCall;
rawStore(request: QueryRawStoreRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryRawStoreResponse) => void): ClientUnaryCall;
rawStore(request: QueryRawStoreRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryRawStoreResponse) => void): ClientUnaryCall;
/** Params queries all parameters. */
params(request: QueryParamsRequest, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
params(request: QueryParamsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QueryParamsResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const QueryClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => QueryClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -187,0 +265,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRawStoreResponse = exports.QueryRawStoreRequest = exports.QueryContractStoreResponse = exports.QueryContractStoreRequest = exports.QueryContractInfoResponse = exports.QueryContractInfoRequest = exports.QueryByteCodeResponse = exports.QueryByteCodeRequest = exports.QueryCodeInfoResponse = exports.QueryCodeInfoRequest = exports.protobufPackage = void 0;
exports.QueryClient = exports.QueryService = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.QueryRawStoreResponse = exports.QueryRawStoreRequest = exports.QueryContractStoreResponse = exports.QueryContractStoreRequest = exports.QueryContractInfoResponse = exports.QueryContractInfoRequest = exports.QueryByteCodeResponse = exports.QueryByteCodeRequest = exports.QueryCodeInfoResponse = exports.QueryCodeInfoRequest = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -646,44 +647,66 @@ const wasm_1 = require("../../../terra/wasm/v1beta1/wasm");

};
class QueryClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.CodeInfo = this.CodeInfo.bind(this);
this.ByteCode = this.ByteCode.bind(this);
this.ContractInfo = this.ContractInfo.bind(this);
this.ContractStore = this.ContractStore.bind(this);
this.RawStore = this.RawStore.bind(this);
this.Params = this.Params.bind(this);
}
CodeInfo(request) {
const data = exports.QueryCodeInfoRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "CodeInfo", data);
return promise.then((data) => exports.QueryCodeInfoResponse.decode(new minimal_1.default.Reader(data)));
}
ByteCode(request) {
const data = exports.QueryByteCodeRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "ByteCode", data);
return promise.then((data) => exports.QueryByteCodeResponse.decode(new minimal_1.default.Reader(data)));
}
ContractInfo(request) {
const data = exports.QueryContractInfoRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "ContractInfo", data);
return promise.then((data) => exports.QueryContractInfoResponse.decode(new minimal_1.default.Reader(data)));
}
ContractStore(request) {
const data = exports.QueryContractStoreRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "ContractStore", data);
return promise.then((data) => exports.QueryContractStoreResponse.decode(new minimal_1.default.Reader(data)));
}
RawStore(request) {
const data = exports.QueryRawStoreRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "RawStore", data);
return promise.then((data) => exports.QueryRawStoreResponse.decode(new minimal_1.default.Reader(data)));
}
Params(request) {
const data = exports.QueryParamsRequest.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Query", "Params", data);
return promise.then((data) => exports.QueryParamsResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.QueryClientImpl = QueryClientImpl;
/** Query defines the gRPC querier service. */
exports.QueryService = {
/** CodeInfo returns the stored code info */
codeInfo: {
path: "/terra.wasm.v1beta1.Query/CodeInfo",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryCodeInfoRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryCodeInfoRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryCodeInfoResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryCodeInfoResponse.decode(value),
},
/** ByteCode returns the stored byte code */
byteCode: {
path: "/terra.wasm.v1beta1.Query/ByteCode",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryByteCodeRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryByteCodeRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryByteCodeResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryByteCodeResponse.decode(value),
},
/** ContractInfo returns the stored contract info */
contractInfo: {
path: "/terra.wasm.v1beta1.Query/ContractInfo",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryContractInfoRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryContractInfoRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryContractInfoResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryContractInfoResponse.decode(value),
},
/** ContractStore return smart query result from the contract */
contractStore: {
path: "/terra.wasm.v1beta1.Query/ContractStore",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryContractStoreRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryContractStoreRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryContractStoreResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryContractStoreResponse.decode(value),
},
/** RawStore return single key from the raw store data of a contract */
rawStore: {
path: "/terra.wasm.v1beta1.Query/RawStore",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryRawStoreRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryRawStoreRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryRawStoreResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryRawStoreResponse.decode(value),
},
/** Params queries all parameters. */
params: {
path: "/terra.wasm.v1beta1.Query/Params",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.QueryParamsRequest.encode(value).finish()),
requestDeserialize: (value) => exports.QueryParamsRequest.decode(value),
responseSerialize: (value) => Buffer.from(exports.QueryParamsResponse.encode(value).finish()),
responseDeserialize: (value) => exports.QueryParamsResponse.decode(value),
},
};
exports.QueryClient = grpc_js_1.makeGenericClientConstructor(exports.QueryService, "terra.wasm.v1beta1.Query");
var globalThis = (() => {

@@ -690,0 +713,0 @@ if (typeof globalThis !== "undefined")

@@ -0,2 +1,4 @@

/// <reference types="node" />
import Long from "long";
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from "@grpc/grpc-js";
import _m0 from "protobufjs/minimal";

@@ -224,32 +226,121 @@ import { Coin } from "../../../cosmos/base/v1beta1/coin";

/** Msg defines the oracle Msg service. */
export interface Msg {
export declare const MsgService: {
/** StoreCode to submit Wasm code to the system */
StoreCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
readonly storeCode: {
readonly path: "/terra.wasm.v1beta1.Msg/StoreCode";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgStoreCode) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgStoreCode;
readonly responseSerialize: (value: MsgStoreCodeResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgStoreCodeResponse;
};
/** MigrateCode to submit new version Wasm code to the system */
MigrateCode(request: MsgMigrateCode): Promise<MsgMigrateCodeResponse>;
readonly migrateCode: {
readonly path: "/terra.wasm.v1beta1.Msg/MigrateCode";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgMigrateCode) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgMigrateCode;
readonly responseSerialize: (value: MsgMigrateCodeResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgMigrateCodeResponse;
};
/** Instantiate creates a new smart contract instance for the given code id. */
InstantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
readonly instantiateContract: {
readonly path: "/terra.wasm.v1beta1.Msg/InstantiateContract";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgInstantiateContract) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgInstantiateContract;
readonly responseSerialize: (value: MsgInstantiateContractResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgInstantiateContractResponse;
};
/** Execute submits the given message data to a smart contract */
ExecuteContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
readonly executeContract: {
readonly path: "/terra.wasm.v1beta1.Msg/ExecuteContract";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgExecuteContract) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgExecuteContract;
readonly responseSerialize: (value: MsgExecuteContractResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgExecuteContractResponse;
};
/** Migrate runs a code upgrade/ downgrade for a smart contract */
MigrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse>;
readonly migrateContract: {
readonly path: "/terra.wasm.v1beta1.Msg/MigrateContract";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgMigrateContract) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgMigrateContract;
readonly responseSerialize: (value: MsgMigrateContractResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgMigrateContractResponse;
};
/** UpdateContractAdmin sets a new admin for a smart contract */
UpdateContractAdmin(request: MsgUpdateContractAdmin): Promise<MsgUpdateContractAdminResponse>;
readonly updateContractAdmin: {
readonly path: "/terra.wasm.v1beta1.Msg/UpdateContractAdmin";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgUpdateContractAdmin) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgUpdateContractAdmin;
readonly responseSerialize: (value: MsgUpdateContractAdminResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgUpdateContractAdminResponse;
};
/** ClearContractAdmin remove admin flag from a smart contract */
ClearContractAdmin(request: MsgClearContractAdmin): Promise<MsgClearContractAdminResponse>;
readonly clearContractAdmin: {
readonly path: "/terra.wasm.v1beta1.Msg/ClearContractAdmin";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: MsgClearContractAdmin) => Buffer;
readonly requestDeserialize: (value: Buffer) => MsgClearContractAdmin;
readonly responseSerialize: (value: MsgClearContractAdminResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => MsgClearContractAdminResponse;
};
};
export interface MsgServer extends UntypedServiceImplementation {
/** StoreCode to submit Wasm code to the system */
storeCode: handleUnaryCall<MsgStoreCode, MsgStoreCodeResponse>;
/** MigrateCode to submit new version Wasm code to the system */
migrateCode: handleUnaryCall<MsgMigrateCode, MsgMigrateCodeResponse>;
/** Instantiate creates a new smart contract instance for the given code id. */
instantiateContract: handleUnaryCall<MsgInstantiateContract, MsgInstantiateContractResponse>;
/** Execute submits the given message data to a smart contract */
executeContract: handleUnaryCall<MsgExecuteContract, MsgExecuteContractResponse>;
/** Migrate runs a code upgrade/ downgrade for a smart contract */
migrateContract: handleUnaryCall<MsgMigrateContract, MsgMigrateContractResponse>;
/** UpdateContractAdmin sets a new admin for a smart contract */
updateContractAdmin: handleUnaryCall<MsgUpdateContractAdmin, MsgUpdateContractAdminResponse>;
/** ClearContractAdmin remove admin flag from a smart contract */
clearContractAdmin: handleUnaryCall<MsgClearContractAdmin, MsgClearContractAdminResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
StoreCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
MigrateCode(request: MsgMigrateCode): Promise<MsgMigrateCodeResponse>;
InstantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
ExecuteContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
MigrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse>;
UpdateContractAdmin(request: MsgUpdateContractAdmin): Promise<MsgUpdateContractAdminResponse>;
ClearContractAdmin(request: MsgClearContractAdmin): Promise<MsgClearContractAdminResponse>;
export interface MsgClient extends Client {
/** StoreCode to submit Wasm code to the system */
storeCode(request: MsgStoreCode, callback: (error: ServiceError | null, response: MsgStoreCodeResponse) => void): ClientUnaryCall;
storeCode(request: MsgStoreCode, metadata: Metadata, callback: (error: ServiceError | null, response: MsgStoreCodeResponse) => void): ClientUnaryCall;
storeCode(request: MsgStoreCode, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgStoreCodeResponse) => void): ClientUnaryCall;
/** MigrateCode to submit new version Wasm code to the system */
migrateCode(request: MsgMigrateCode, callback: (error: ServiceError | null, response: MsgMigrateCodeResponse) => void): ClientUnaryCall;
migrateCode(request: MsgMigrateCode, metadata: Metadata, callback: (error: ServiceError | null, response: MsgMigrateCodeResponse) => void): ClientUnaryCall;
migrateCode(request: MsgMigrateCode, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgMigrateCodeResponse) => void): ClientUnaryCall;
/** Instantiate creates a new smart contract instance for the given code id. */
instantiateContract(request: MsgInstantiateContract, callback: (error: ServiceError | null, response: MsgInstantiateContractResponse) => void): ClientUnaryCall;
instantiateContract(request: MsgInstantiateContract, metadata: Metadata, callback: (error: ServiceError | null, response: MsgInstantiateContractResponse) => void): ClientUnaryCall;
instantiateContract(request: MsgInstantiateContract, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgInstantiateContractResponse) => void): ClientUnaryCall;
/** Execute submits the given message data to a smart contract */
executeContract(request: MsgExecuteContract, callback: (error: ServiceError | null, response: MsgExecuteContractResponse) => void): ClientUnaryCall;
executeContract(request: MsgExecuteContract, metadata: Metadata, callback: (error: ServiceError | null, response: MsgExecuteContractResponse) => void): ClientUnaryCall;
executeContract(request: MsgExecuteContract, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgExecuteContractResponse) => void): ClientUnaryCall;
/** Migrate runs a code upgrade/ downgrade for a smart contract */
migrateContract(request: MsgMigrateContract, callback: (error: ServiceError | null, response: MsgMigrateContractResponse) => void): ClientUnaryCall;
migrateContract(request: MsgMigrateContract, metadata: Metadata, callback: (error: ServiceError | null, response: MsgMigrateContractResponse) => void): ClientUnaryCall;
migrateContract(request: MsgMigrateContract, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgMigrateContractResponse) => void): ClientUnaryCall;
/** UpdateContractAdmin sets a new admin for a smart contract */
updateContractAdmin(request: MsgUpdateContractAdmin, callback: (error: ServiceError | null, response: MsgUpdateContractAdminResponse) => void): ClientUnaryCall;
updateContractAdmin(request: MsgUpdateContractAdmin, metadata: Metadata, callback: (error: ServiceError | null, response: MsgUpdateContractAdminResponse) => void): ClientUnaryCall;
updateContractAdmin(request: MsgUpdateContractAdmin, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgUpdateContractAdminResponse) => void): ClientUnaryCall;
/** ClearContractAdmin remove admin flag from a smart contract */
clearContractAdmin(request: MsgClearContractAdmin, callback: (error: ServiceError | null, response: MsgClearContractAdminResponse) => void): ClientUnaryCall;
clearContractAdmin(request: MsgClearContractAdmin, metadata: Metadata, callback: (error: ServiceError | null, response: MsgClearContractAdminResponse) => void): ClientUnaryCall;
clearContractAdmin(request: MsgClearContractAdmin, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: MsgClearContractAdminResponse) => void): ClientUnaryCall;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export declare const MsgClient: new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions> | undefined) => MsgClient;
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long;

@@ -256,0 +347,0 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MsgClientImpl = exports.MsgClearContractAdminResponse = exports.MsgClearContractAdmin = exports.MsgUpdateContractAdminResponse = exports.MsgUpdateContractAdmin = exports.MsgMigrateContractResponse = exports.MsgMigrateContract = exports.MsgExecuteContractResponse = exports.MsgExecuteContract = exports.MsgInstantiateContractResponse = exports.MsgInstantiateContract = exports.MsgMigrateCodeResponse = exports.MsgMigrateCode = exports.MsgStoreCodeResponse = exports.MsgStoreCode = exports.protobufPackage = void 0;
exports.MsgClient = exports.MsgService = exports.MsgClearContractAdminResponse = exports.MsgClearContractAdmin = exports.MsgUpdateContractAdminResponse = exports.MsgUpdateContractAdmin = exports.MsgMigrateContractResponse = exports.MsgMigrateContract = exports.MsgExecuteContractResponse = exports.MsgExecuteContract = exports.MsgInstantiateContractResponse = exports.MsgInstantiateContract = exports.MsgMigrateCodeResponse = exports.MsgMigrateCode = exports.MsgStoreCodeResponse = exports.MsgStoreCode = exports.protobufPackage = void 0;
/* eslint-disable */
const long_1 = __importDefault(require("long"));
const grpc_js_1 = require("@grpc/grpc-js");
const minimal_1 = __importDefault(require("protobufjs/minimal"));

@@ -1005,50 +1006,76 @@ const coin_1 = require("../../../cosmos/base/v1beta1/coin");

};
class MsgClientImpl {
constructor(rpc) {
this.rpc = rpc;
this.StoreCode = this.StoreCode.bind(this);
this.MigrateCode = this.MigrateCode.bind(this);
this.InstantiateContract = this.InstantiateContract.bind(this);
this.ExecuteContract = this.ExecuteContract.bind(this);
this.MigrateContract = this.MigrateContract.bind(this);
this.UpdateContractAdmin = this.UpdateContractAdmin.bind(this);
this.ClearContractAdmin = this.ClearContractAdmin.bind(this);
}
StoreCode(request) {
const data = exports.MsgStoreCode.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "StoreCode", data);
return promise.then((data) => exports.MsgStoreCodeResponse.decode(new minimal_1.default.Reader(data)));
}
MigrateCode(request) {
const data = exports.MsgMigrateCode.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "MigrateCode", data);
return promise.then((data) => exports.MsgMigrateCodeResponse.decode(new minimal_1.default.Reader(data)));
}
InstantiateContract(request) {
const data = exports.MsgInstantiateContract.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "InstantiateContract", data);
return promise.then((data) => exports.MsgInstantiateContractResponse.decode(new minimal_1.default.Reader(data)));
}
ExecuteContract(request) {
const data = exports.MsgExecuteContract.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "ExecuteContract", data);
return promise.then((data) => exports.MsgExecuteContractResponse.decode(new minimal_1.default.Reader(data)));
}
MigrateContract(request) {
const data = exports.MsgMigrateContract.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "MigrateContract", data);
return promise.then((data) => exports.MsgMigrateContractResponse.decode(new minimal_1.default.Reader(data)));
}
UpdateContractAdmin(request) {
const data = exports.MsgUpdateContractAdmin.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "UpdateContractAdmin", data);
return promise.then((data) => exports.MsgUpdateContractAdminResponse.decode(new minimal_1.default.Reader(data)));
}
ClearContractAdmin(request) {
const data = exports.MsgClearContractAdmin.encode(request).finish();
const promise = this.rpc.request("terra.wasm.v1beta1.Msg", "ClearContractAdmin", data);
return promise.then((data) => exports.MsgClearContractAdminResponse.decode(new minimal_1.default.Reader(data)));
}
}
exports.MsgClientImpl = MsgClientImpl;
/** Msg defines the oracle Msg service. */
exports.MsgService = {
/** StoreCode to submit Wasm code to the system */
storeCode: {
path: "/terra.wasm.v1beta1.Msg/StoreCode",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgStoreCode.encode(value).finish()),
requestDeserialize: (value) => exports.MsgStoreCode.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgStoreCodeResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgStoreCodeResponse.decode(value),
},
/** MigrateCode to submit new version Wasm code to the system */
migrateCode: {
path: "/terra.wasm.v1beta1.Msg/MigrateCode",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgMigrateCode.encode(value).finish()),
requestDeserialize: (value) => exports.MsgMigrateCode.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgMigrateCodeResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgMigrateCodeResponse.decode(value),
},
/** Instantiate creates a new smart contract instance for the given code id. */
instantiateContract: {
path: "/terra.wasm.v1beta1.Msg/InstantiateContract",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgInstantiateContract.encode(value).finish()),
requestDeserialize: (value) => exports.MsgInstantiateContract.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgInstantiateContractResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgInstantiateContractResponse.decode(value),
},
/** Execute submits the given message data to a smart contract */
executeContract: {
path: "/terra.wasm.v1beta1.Msg/ExecuteContract",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgExecuteContract.encode(value).finish()),
requestDeserialize: (value) => exports.MsgExecuteContract.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgExecuteContractResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgExecuteContractResponse.decode(value),
},
/** Migrate runs a code upgrade/ downgrade for a smart contract */
migrateContract: {
path: "/terra.wasm.v1beta1.Msg/MigrateContract",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgMigrateContract.encode(value).finish()),
requestDeserialize: (value) => exports.MsgMigrateContract.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgMigrateContractResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgMigrateContractResponse.decode(value),
},
/** UpdateContractAdmin sets a new admin for a smart contract */
updateContractAdmin: {
path: "/terra.wasm.v1beta1.Msg/UpdateContractAdmin",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgUpdateContractAdmin.encode(value).finish()),
requestDeserialize: (value) => exports.MsgUpdateContractAdmin.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgUpdateContractAdminResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgUpdateContractAdminResponse.decode(value),
},
/** ClearContractAdmin remove admin flag from a smart contract */
clearContractAdmin: {
path: "/terra.wasm.v1beta1.Msg/ClearContractAdmin",
requestStream: false,
responseStream: false,
requestSerialize: (value) => Buffer.from(exports.MsgClearContractAdmin.encode(value).finish()),
requestDeserialize: (value) => exports.MsgClearContractAdmin.decode(value),
responseSerialize: (value) => Buffer.from(exports.MsgClearContractAdminResponse.encode(value).finish()),
responseDeserialize: (value) => exports.MsgClearContractAdminResponse.decode(value),
},
};
exports.MsgClient = grpc_js_1.makeGenericClientConstructor(exports.MsgService, "terra.wasm.v1beta1.Msg");
var globalThis = (() => {

@@ -1055,0 +1082,0 @@ if (typeof globalThis !== "undefined")

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc