feat: add spec for circuit module (#14481)
Co-authored-by: Aaron Craelius <aaron@regen.network> Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
co-authored by
Aaron Craelius
Julien Robert
Aleksandr Bezobchuk
parent
f771f20da4
commit
6f3380d40b
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
package cosmos.circuit.v1;
|
||||
|
||||
// option go_package = "github.com/cosmos/cosmos-sdk/x/circuit/types"; // uncomment when module is created
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/circuit/types";
|
||||
|
||||
import "cosmos/msg/v1/msg.proto";
|
||||
|
||||
@@ -38,6 +38,9 @@ message MsgAuthorizeCircuitBreaker {
|
||||
CircuitBreakerPermissions permissions = 3;
|
||||
}
|
||||
|
||||
// MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker response type.
|
||||
message MsgAuthorizeCircuitBreakerResponse {}
|
||||
|
||||
// CircuitBreakerPermissions are the permissions that an account has to trip
|
||||
// or reset the circuit breaker.
|
||||
message CircuitBreakerPermissions {
|
||||
@@ -71,9 +74,6 @@ message CircuitBreakerPermissions {
|
||||
}
|
||||
}
|
||||
|
||||
// MsgAuthorizeCircuitBreaker defines the Msg/AuthorizeCircuitBreaker response type.
|
||||
message MsgAuthorizeCircuitBreakerResponse {}
|
||||
|
||||
// MsgTripCircuitBreaker defines the Msg/TripCircuitBreaker request type.
|
||||
message MsgTripCircuitBreaker {
|
||||
option (cosmos.msg.v1.signer) = "authority";
|
||||
@@ -94,7 +94,7 @@ message MsgTripCircuitBreakerResponse {}
|
||||
|
||||
// MsgResetCircuitBreaker defines the Msg/ResetCircuitBreaker request type.
|
||||
message MsgResetCircuitBreaker {
|
||||
option (cosmos.msg.v1.signer) = "signer";
|
||||
option (cosmos.msg.v1.signer) = "authority";
|
||||
|
||||
// authority is the account authorized to trip or reset the circuit breaker.
|
||||
string authority = 1;
|
||||
|
||||
Reference in New Issue
Block a user