-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MSBM w/ new features in Tangle (same branch name) (#50)
* chore: Update MSBM w/ new features against drew/slashing-updates in * chore: Add stub impl to contract * chore: fmt * feat: add tests of join/leave functionality * feat: add HooksTests contract * fix: services pallet address * chore: remove artifact from slashing interface * chore: add slash alert * chore: udpate bytecode * chore: update MBSM bytecode --------- Co-authored-by: Shady Khalifa <dev+github@shadykhalifa.me>
- Loading branch information
Showing
11 changed files
with
684 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.20; | ||
|
||
/// @title Slash Alert Interface | ||
/// @notice Interface for handling slashing events in the re-staking protocol | ||
/// @dev Implement this interface to handle slashing events for remote tokens | ||
interface ISlashAlert { | ||
/// @notice Called when a slashing event occurs | ||
/// @param blueprintId The ID of the blueprint | ||
/// @param serviceId The ID of the service | ||
/// @param operator The address/account of the operator being slashed (32 bytes) | ||
/// @param slashAmount The amount to slash in wei | ||
function onSlash( | ||
uint64 blueprintId, | ||
uint64 serviceId, | ||
bytes32 operator, | ||
uint256 slashAmount | ||
) external; | ||
} |
Oops, something went wrong.