interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
86 lines (85 loc) • 4.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGetTxDescriptor = exports.getGetQueryServicesDescriptor = exports.getGetConfigurationDescriptor = exports.getGetCodecDescriptor = exports.getGetChainDescriptor = exports.getGetAuthnDescriptor = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const reflection_1 = require("./reflection");
/**
* 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.
* @name getGetAuthnDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetAuthnDescriptor
*/
exports.getGetAuthnDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetAuthnDescriptorRequest.encode,
decode: reflection_1.GetAuthnDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetAuthnDescriptor",
deps: [reflection_1.GetAuthnDescriptorRequest, reflection_1.GetAuthnDescriptorResponse]
});
/**
* GetChainDescriptor returns the description of the chain
* @name getGetChainDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetChainDescriptor
*/
exports.getGetChainDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetChainDescriptorRequest.encode,
decode: reflection_1.GetChainDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetChainDescriptor",
deps: [reflection_1.GetChainDescriptorRequest, reflection_1.GetChainDescriptorResponse]
});
/**
* GetCodecDescriptor returns the descriptor of the codec of the application
* @name getGetCodecDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetCodecDescriptor
*/
exports.getGetCodecDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetCodecDescriptorRequest.encode,
decode: reflection_1.GetCodecDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetCodecDescriptor",
deps: [reflection_1.GetCodecDescriptorRequest, reflection_1.GetCodecDescriptorResponse]
});
/**
* GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application
* @name getGetConfigurationDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetConfigurationDescriptor
*/
exports.getGetConfigurationDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetConfigurationDescriptorRequest.encode,
decode: reflection_1.GetConfigurationDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetConfigurationDescriptor",
deps: [reflection_1.GetConfigurationDescriptorRequest, reflection_1.GetConfigurationDescriptorResponse]
});
/**
* GetQueryServicesDescriptor returns the available gRPC queryable services of the application
* @name getGetQueryServicesDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetQueryServicesDescriptor
*/
exports.getGetQueryServicesDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetQueryServicesDescriptorRequest.encode,
decode: reflection_1.GetQueryServicesDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetQueryServicesDescriptor",
deps: [reflection_1.GetQueryServicesDescriptorRequest, reflection_1.GetQueryServicesDescriptorResponse]
});
/**
* GetTxDescriptor returns information on the used transaction object and available msgs that can be used
* @name getGetTxDescriptor
* @package cosmos.base.reflection.v2alpha1
* @see proto service: cosmos.base.reflection.v2alpha1.GetTxDescriptor
*/
exports.getGetTxDescriptor = (0, helper_func_types_1.buildQuery)({
encode: reflection_1.GetTxDescriptorRequest.encode,
decode: reflection_1.GetTxDescriptorResponse.decode,
service: "cosmos.base.reflection.v2alpha1.ReflectionService",
method: "GetTxDescriptor",
deps: [reflection_1.GetTxDescriptorRequest, reflection_1.GetTxDescriptorResponse]
});