interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
375 lines (374 loc) • 15.3 kB
TypeScript
import { PageRequest, PageRequestAmino, PageResponse, PageResponseAmino } from "../../base/query/v1beta1/pagination";
import { Grant, GrantAmino, GrantAuthorization, GrantAuthorizationAmino } from "./authz";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* QueryGrantsRequest is the request type for the Query/Grants RPC method.
* @name QueryGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsRequest
*/
export interface QueryGrantsRequest {
granter: string;
grantee: string;
/**
* Optional, msg_type_url, when set, will query only grants matching given msg type.
*/
msgTypeUrl: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequest;
}
export interface QueryGrantsRequestProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest";
value: Uint8Array;
}
/**
* QueryGrantsRequest is the request type for the Query/Grants RPC method.
* @name QueryGrantsRequestAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsRequest
*/
export interface QueryGrantsRequestAmino {
granter: string;
grantee: string;
/**
* Optional, msg_type_url, when set, will query only grants matching given msg type.
*/
msg_type_url: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequestAmino;
}
export interface QueryGrantsRequestAminoMsg {
type: "cosmos-sdk/QueryGrantsRequest";
value: QueryGrantsRequestAmino;
}
/**
* QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
* @name QueryGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsResponse
*/
export interface QueryGrantsResponse {
/**
* authorizations is a list of grants granted for grantee by granter.
*/
grants: Grant[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponse;
}
export interface QueryGrantsResponseProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse";
value: Uint8Array;
}
/**
* QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
* @name QueryGrantsResponseAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsResponse
*/
export interface QueryGrantsResponseAmino {
/**
* authorizations is a list of grants granted for grantee by granter.
*/
grants: GrantAmino[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponseAmino;
}
export interface QueryGrantsResponseAminoMsg {
type: "cosmos-sdk/QueryGrantsResponse";
value: QueryGrantsResponseAmino;
}
/**
* QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsRequest
*/
export interface QueryGranterGrantsRequest {
granter: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequest;
}
export interface QueryGranterGrantsRequestProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest";
value: Uint8Array;
}
/**
* QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsRequestAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsRequest
*/
export interface QueryGranterGrantsRequestAmino {
granter: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequestAmino;
}
export interface QueryGranterGrantsRequestAminoMsg {
type: "cosmos-sdk/QueryGranterGrantsRequest";
value: QueryGranterGrantsRequestAmino;
}
/**
* QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsResponse
*/
export interface QueryGranterGrantsResponse {
/**
* grants is a list of grants granted by the granter.
*/
grants: GrantAuthorization[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponse;
}
export interface QueryGranterGrantsResponseProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse";
value: Uint8Array;
}
/**
* QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsResponseAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsResponse
*/
export interface QueryGranterGrantsResponseAmino {
/**
* grants is a list of grants granted by the granter.
*/
grants: GrantAuthorizationAmino[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponseAmino;
}
export interface QueryGranterGrantsResponseAminoMsg {
type: "cosmos-sdk/QueryGranterGrantsResponse";
value: QueryGranterGrantsResponseAmino;
}
/**
* QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsRequest
*/
export interface QueryGranteeGrantsRequest {
grantee: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequest;
}
export interface QueryGranteeGrantsRequestProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest";
value: Uint8Array;
}
/**
* QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsRequestAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsRequest
*/
export interface QueryGranteeGrantsRequestAmino {
grantee: string;
/**
* pagination defines an pagination for the request.
*/
pagination?: PageRequestAmino;
}
export interface QueryGranteeGrantsRequestAminoMsg {
type: "cosmos-sdk/QueryGranteeGrantsRequest";
value: QueryGranteeGrantsRequestAmino;
}
/**
* QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsResponse
*/
export interface QueryGranteeGrantsResponse {
/**
* grants is a list of grants granted to the grantee.
*/
grants: GrantAuthorization[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponse;
}
export interface QueryGranteeGrantsResponseProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse";
value: Uint8Array;
}
/**
* QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsResponseAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsResponse
*/
export interface QueryGranteeGrantsResponseAmino {
/**
* grants is a list of grants granted to the grantee.
*/
grants: GrantAuthorizationAmino[];
/**
* pagination defines an pagination for the response.
*/
pagination?: PageResponseAmino;
}
export interface QueryGranteeGrantsResponseAminoMsg {
type: "cosmos-sdk/QueryGranteeGrantsResponse";
value: QueryGranteeGrantsResponseAmino;
}
/**
* QueryGrantsRequest is the request type for the Query/Grants RPC method.
* @name QueryGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsRequest
*/
export declare const QueryGrantsRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGrantsRequest;
isAmino(o: any): o is QueryGrantsRequestAmino;
encode(message: QueryGrantsRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsRequest;
fromPartial(object: DeepPartial<QueryGrantsRequest>): QueryGrantsRequest;
fromAmino(object: QueryGrantsRequestAmino): QueryGrantsRequest;
toAmino(message: QueryGrantsRequest): QueryGrantsRequestAmino;
fromAminoMsg(object: QueryGrantsRequestAminoMsg): QueryGrantsRequest;
toAminoMsg(message: QueryGrantsRequest): QueryGrantsRequestAminoMsg;
fromProtoMsg(message: QueryGrantsRequestProtoMsg): QueryGrantsRequest;
toProto(message: QueryGrantsRequest): Uint8Array;
toProtoMsg(message: QueryGrantsRequest): QueryGrantsRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
* @name QueryGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGrantsResponse
*/
export declare const QueryGrantsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGrantsResponse;
isAmino(o: any): o is QueryGrantsResponseAmino;
encode(message: QueryGrantsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGrantsResponse;
fromPartial(object: DeepPartial<QueryGrantsResponse>): QueryGrantsResponse;
fromAmino(object: QueryGrantsResponseAmino): QueryGrantsResponse;
toAmino(message: QueryGrantsResponse): QueryGrantsResponseAmino;
fromAminoMsg(object: QueryGrantsResponseAminoMsg): QueryGrantsResponse;
toAminoMsg(message: QueryGrantsResponse): QueryGrantsResponseAminoMsg;
fromProtoMsg(message: QueryGrantsResponseProtoMsg): QueryGrantsResponse;
toProto(message: QueryGrantsResponse): Uint8Array;
toProtoMsg(message: QueryGrantsResponse): QueryGrantsResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsRequest
*/
export declare const QueryGranterGrantsRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGranterGrantsRequest;
isAmino(o: any): o is QueryGranterGrantsRequestAmino;
encode(message: QueryGranterGrantsRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsRequest;
fromPartial(object: DeepPartial<QueryGranterGrantsRequest>): QueryGranterGrantsRequest;
fromAmino(object: QueryGranterGrantsRequestAmino): QueryGranterGrantsRequest;
toAmino(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAmino;
fromAminoMsg(object: QueryGranterGrantsRequestAminoMsg): QueryGranterGrantsRequest;
toAminoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestAminoMsg;
fromProtoMsg(message: QueryGranterGrantsRequestProtoMsg): QueryGranterGrantsRequest;
toProto(message: QueryGranterGrantsRequest): Uint8Array;
toProtoMsg(message: QueryGranterGrantsRequest): QueryGranterGrantsRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
* @name QueryGranterGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranterGrantsResponse
*/
export declare const QueryGranterGrantsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGranterGrantsResponse;
isAmino(o: any): o is QueryGranterGrantsResponseAmino;
encode(message: QueryGranterGrantsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGranterGrantsResponse;
fromPartial(object: DeepPartial<QueryGranterGrantsResponse>): QueryGranterGrantsResponse;
fromAmino(object: QueryGranterGrantsResponseAmino): QueryGranterGrantsResponse;
toAmino(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAmino;
fromAminoMsg(object: QueryGranterGrantsResponseAminoMsg): QueryGranterGrantsResponse;
toAminoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseAminoMsg;
fromProtoMsg(message: QueryGranterGrantsResponseProtoMsg): QueryGranterGrantsResponse;
toProto(message: QueryGranterGrantsResponse): Uint8Array;
toProtoMsg(message: QueryGranterGrantsResponse): QueryGranterGrantsResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsRequest
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsRequest
*/
export declare const QueryGranteeGrantsRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGranteeGrantsRequest;
isAmino(o: any): o is QueryGranteeGrantsRequestAmino;
encode(message: QueryGranteeGrantsRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsRequest;
fromPartial(object: DeepPartial<QueryGranteeGrantsRequest>): QueryGranteeGrantsRequest;
fromAmino(object: QueryGranteeGrantsRequestAmino): QueryGranteeGrantsRequest;
toAmino(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAmino;
fromAminoMsg(object: QueryGranteeGrantsRequestAminoMsg): QueryGranteeGrantsRequest;
toAminoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestAminoMsg;
fromProtoMsg(message: QueryGranteeGrantsRequestProtoMsg): QueryGranteeGrantsRequest;
toProto(message: QueryGranteeGrantsRequest): Uint8Array;
toProtoMsg(message: QueryGranteeGrantsRequest): QueryGranteeGrantsRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
* @name QueryGranteeGrantsResponse
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.QueryGranteeGrantsResponse
*/
export declare const QueryGranteeGrantsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryGranteeGrantsResponse;
isAmino(o: any): o is QueryGranteeGrantsResponseAmino;
encode(message: QueryGranteeGrantsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryGranteeGrantsResponse;
fromPartial(object: DeepPartial<QueryGranteeGrantsResponse>): QueryGranteeGrantsResponse;
fromAmino(object: QueryGranteeGrantsResponseAmino): QueryGranteeGrantsResponse;
toAmino(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAmino;
fromAminoMsg(object: QueryGranteeGrantsResponseAminoMsg): QueryGranteeGrantsResponse;
toAminoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseAminoMsg;
fromProtoMsg(message: QueryGranteeGrantsResponseProtoMsg): QueryGranteeGrantsResponse;
toProto(message: QueryGranteeGrantsResponse): Uint8Array;
toProtoMsg(message: QueryGranteeGrantsResponse): QueryGranteeGrantsResponseProtoMsg;
registerTypeUrl(): void;
};