Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(oracle): add slashing events #2532

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
- [2500](https://github.com/umee-network/umee/pull/2500) (x/leverage): add Rewards Auction fees and `params.rewards_auction_factor`.
- [2506](https://github.com/umee-network/umee/pull/2506) (ics20): support leverage/MsgRepay in Memo
- [2527](https://github.com/umee-network/umee/pull/2527) (x/leverage):add `accounts_summary` grpc-web api and cli query to leverage module.
- [2532](https://github.com/umee-network/umee/pull/2532) (x/oracle): add slashing event.

### Improvements

Expand Down
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
Loading