"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useResetCircuitBreaker = exports.useTripCircuitBreaker = exports.useAuthorizeCircuitBreaker = void 0;
const vue_query_1 = require("../../../vue-query");
const tx_rpc_func_1 = require("./tx.rpc.func");
/**
 * AuthorizeCircuitBreaker allows a super-admin to grant (or revoke) another
 * account's circuit breaker permissions.
 * @name useAuthorizeCircuitBreaker
 * @package cosmos.circuit.v1
 * @see proto service: cosmos.circuit.v1.AuthorizeCircuitBreaker
 */
exports.useAuthorizeCircuitBreaker = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.authorizeCircuitBreaker
});
/**
 * TripCircuitBreaker pauses processing of Msg's in the state machine.
 * @name useTripCircuitBreaker
 * @package cosmos.circuit.v1
 * @see proto service: cosmos.circuit.v1.TripCircuitBreaker
 */
exports.useTripCircuitBreaker = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.tripCircuitBreaker
});
/**
 * ResetCircuitBreaker resumes processing of Msg's in the state machine that
 * have been been paused using TripCircuitBreaker.
 * @name useResetCircuitBreaker
 * @package cosmos.circuit.v1
 * @see proto service: cosmos.circuit.v1.ResetCircuitBreaker
 */
exports.useResetCircuitBreaker = (0, vue_query_1.buildUseVueMutation)({
    builderMutationFn: tx_rpc_func_1.resetCircuitBreaker
});
