"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetTxDecodeAmino = exports.useGetTxEncodeAmino = exports.useGetTxEncode = exports.useGetTxDecode = exports.useGetBlockWithTxs = exports.useGetTxsEvent = exports.useGetBroadcastTx = exports.useGetTx = exports.useGetSimulate = void 0;
const vue_query_1 = require("../../../vue-query");
const service_rpc_func_1 = require("./service.rpc.func");
/**
 * Simulate simulates executing a transaction for estimating gas usage.
 * @name useGetSimulate
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.Simulate
 */
exports.useGetSimulate = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getSimulate,
    queryKeyPrefix: "SimulateQuery"
});
/**
 * GetTx fetches a tx by hash.
 * @name useGetTx
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.GetTx
 */
exports.useGetTx = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTx,
    queryKeyPrefix: "GetTxQuery"
});
/**
 * BroadcastTx broadcast transaction.
 * @name useGetBroadcastTx
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.BroadcastTx
 */
exports.useGetBroadcastTx = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getBroadcastTx,
    queryKeyPrefix: "BroadcastTxQuery"
});
/**
 * GetTxsEvent fetches txs by event.
 * @name useGetTxsEvent
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.GetTxsEvent
 */
exports.useGetTxsEvent = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTxsEvent,
    queryKeyPrefix: "GetTxsEventQuery"
});
/**
 * GetBlockWithTxs fetches a block with decoded txs.
 * @name useGetBlockWithTxs
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.GetBlockWithTxs
 */
exports.useGetBlockWithTxs = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getBlockWithTxs,
    queryKeyPrefix: "GetBlockWithTxsQuery"
});
/**
 * TxDecode decodes the transaction.
 * @name useGetTxDecode
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.TxDecode
 */
exports.useGetTxDecode = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTxDecode,
    queryKeyPrefix: "TxDecodeQuery"
});
/**
 * TxEncode encodes the transaction.
 * @name useGetTxEncode
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.TxEncode
 */
exports.useGetTxEncode = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTxEncode,
    queryKeyPrefix: "TxEncodeQuery"
});
/**
 * TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
 * @name useGetTxEncodeAmino
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.TxEncodeAmino
 */
exports.useGetTxEncodeAmino = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTxEncodeAmino,
    queryKeyPrefix: "TxEncodeAminoQuery"
});
/**
 * TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
 * @name useGetTxDecodeAmino
 * @package cosmos.tx.v1beta1
 * @see proto service: cosmos.tx.v1beta1.TxDecodeAmino
 */
exports.useGetTxDecodeAmino = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: service_rpc_func_1.getTxDecodeAmino,
    queryKeyPrefix: "TxDecodeAminoQuery"
});
