interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
32 lines (31 loc) • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getParams = exports.getInterchainAccount = void 0;
const helper_func_types_1 = require("../../../../../helper-func-types");
const query_1 = require("./query");
/**
* InterchainAccount returns the interchain account address for a given owner address on a given connection
* @name getInterchainAccount
* @package ibc.applications.interchain_accounts.controller.v1
* @see proto service: ibc.applications.interchain_accounts.controller.v1.InterchainAccount
*/
exports.getInterchainAccount = (0, helper_func_types_1.buildQuery)({
encode: query_1.QueryInterchainAccountRequest.encode,
decode: query_1.QueryInterchainAccountResponse.decode,
service: "ibc.applications.interchain_accounts.controller.v1.Query",
method: "InterchainAccount",
deps: [query_1.QueryInterchainAccountRequest, query_1.QueryInterchainAccountResponse]
});
/**
* Params queries all parameters of the ICA controller submodule.
* @name getParams
* @package ibc.applications.interchain_accounts.controller.v1
* @see proto service: ibc.applications.interchain_accounts.controller.v1.Params
*/
exports.getParams = (0, helper_func_types_1.buildQuery)({
encode: query_1.QueryParamsRequest.encode,
decode: query_1.QueryParamsResponse.decode,
service: "ibc.applications.interchain_accounts.controller.v1.Query",
method: "Params",
deps: [query_1.QueryParamsRequest, query_1.QueryParamsResponse]
});