UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

31 lines (30 loc) 1.31 kB
import { buildQuery } from "../../../../helper-func-types"; import { ListAllInterfacesRequest, ListAllInterfacesResponse, ListImplementationsRequest, ListImplementationsResponse } from "./reflection"; /** * ListAllInterfaces lists all the interfaces registered in the interface * registry. * @name getListAllInterfaces * @package cosmos.base.reflection.v1beta1 * @see proto service: cosmos.base.reflection.v1beta1.ListAllInterfaces */ export const getListAllInterfaces = buildQuery({ encode: ListAllInterfacesRequest.encode, decode: ListAllInterfacesResponse.decode, service: "cosmos.base.reflection.v1beta1.ReflectionService", method: "ListAllInterfaces", deps: [ListAllInterfacesRequest, ListAllInterfacesResponse] }); /** * ListImplementations list all the concrete types that implement a given * interface. * @name getListImplementations * @package cosmos.base.reflection.v1beta1 * @see proto service: cosmos.base.reflection.v1beta1.ListImplementations */ export const getListImplementations = buildQuery({ encode: ListImplementationsRequest.encode, decode: ListImplementationsResponse.decode, service: "cosmos.base.reflection.v1beta1.ReflectionService", method: "ListImplementations", deps: [ListImplementationsRequest, ListImplementationsResponse] });