proper types

This commit is contained in:
Mantas Vidutis 2022-11-24 12:28:16 -08:00
parent 299b3ba384
commit 091c5cb9b3
No known key found for this signature in database
GPG Key ID: 60BDC8CD8FA60E29

View File

@ -1,4 +1,4 @@
import { QueryClientImpl, QueryGrantsResponse } from "cosmjs-types/cosmos/authz/v1beta1/query";
import { QueryClientImpl, QueryGrantsResponse, QueryGranterGrantsResponse, QueryGranteeGrantsResponse } from "cosmjs-types/cosmos/authz/v1beta1/query";
import { createPagination, createProtobufRpcClient, QueryClient } from "../../queryclient";
@ -10,8 +10,8 @@ export interface AuthzExtension {
msgTypeUrl: string,
paginationKey?: Uint8Array,
) => Promise<QueryGrantsResponse>;
readonly granteeGrants: (grantee: string, paginationKey?: Uint8Array) => Promise<QueryGrantsResponse>;
readonly granterGrants: (granter: string, paginationKey?: Uint8Array) => Promise<QueryGrantsResponse>;
readonly granteeGrants: (grantee: string, paginationKey?: Uint8Array) => Promise<QueryGranteeGrantsResponse>;
readonly granterGrants: (granter: string, paginationKey?: Uint8Array) => Promise<QueryGranterGrantsResponse>;
};
}