-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BTC staking: events for BTC validator/delegation programs (#11)
- Loading branch information
1 parent
e917563
commit ab21136
Showing
3 changed files
with
728 additions
and
0 deletions.
There are no files selected for viewing
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,18 @@ | ||
syntax = "proto3"; | ||
package babylon.btcstaking.v1; | ||
|
||
import "babylon/btcstaking/v1/btcstaking.proto"; | ||
|
||
option go_package = "github.com/babylonchain/babylon/x/btcstaking/types"; | ||
|
||
// EventNewBTCValidator is the event emitted when a BTC validator is created | ||
message EventNewBTCValidator { BTCValidator btc_val = 1; } | ||
|
||
// EventNewBTCDelegation is the event emitted when a BTC delegation is created | ||
// NOTE: the BTC delegation is not active thus does not have voting power yet | ||
// only after it receives a jury signature it becomes activated and has voting power | ||
message EventNewBTCDelegation { BTCDelegation btc_del = 1; } | ||
|
||
// EventActivateBTCDelegation is the event emitted when jury activates a BTC delegation | ||
// such that the BTC delegation starts to have voting power in its timelock period | ||
message EventActivateBTCDelegation { BTCDelegation btc_del = 1; } |
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
Oops, something went wrong.