Skip to content

Commit

Permalink
feat(oracle): add slashing events
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed May 28, 2024
1 parent f97029c commit 0705c2b
Show file tree
Hide file tree
Showing 3 changed files with 839 additions and 21 deletions.
15 changes: 15 additions & 0 deletions proto/umee/oracle/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,18 @@ message EventSetFxRate {
(gogoproto.nullable) = false
];
}

// EventSetFxRate is emitted on exchange rate update
message EventSlash {
// validator consensus address
string validator = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
;
// factor of slashed stake
string factor = 2 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false
];
string reason = 3;
bool jailed = 4;
}
Loading

0 comments on commit 0705c2b

Please sign in to comment.