forked from osmosis-labs/mesh-security-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d22dbd
commit 183efa8
Showing
5 changed files
with
5 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1 +1 @@ | ||
77a165d570b7f78d315d94f7adde850cd8874547 | ||
35d2a493ba44af372b0ab5eaf4a414e6967b8c67 |
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 |
---|---|---|
@@ -1,25 +1,17 @@ | ||
package contract | ||
|
||
import "time" | ||
|
||
// SudoMsg is a message sent from the Babylon module to a smart contract | ||
type SudoMsg struct { | ||
BeginBlockMsg *BeginBlock `json:"begin_block,omitempty"` | ||
EndBlockMsg *EndBlock `json:"end_block,omitempty"` | ||
} | ||
|
||
type BeginBlock struct { | ||
Height int64 `json:"height"` // Height is the height of the block | ||
HashHex string `json:"hash_hex"` // HashHex is the hash of the block in hex | ||
Time time.Time `json:"time"` // Time is the time of the block | ||
ChainID string `json:"chain_id"` // ChainId is the chain ID of the block | ||
AppHashHex string `json:"app_hash_hex"` // AppHashHex is the app hash of the block in hex | ||
HashHex string `json:"hash_hex"` // HashHex is the hash of the block in hex | ||
AppHashHex string `json:"app_hash_hex"` // AppHashHex is the app hash of the block in hex | ||
} | ||
|
||
type EndBlock struct { | ||
Height int64 `json:"height"` // Height is the height of the block | ||
HashHex string `json:"hash_hex"` // HashHex is the hash of the block in hex | ||
Time time.Time `json:"time"` // Time is the time of the block | ||
ChainID string `json:"chain_id"` // ChainId is the chain ID of the block | ||
AppHashHex string `json:"app_hash_hex"` // AppHashHex is the app hash of the block in hex | ||
HashHex string `json:"hash_hex"` // HashHex is the hash of the block in hex | ||
AppHashHex string `json:"app_hash_hex"` // AppHashHex is the app hash of the block in hex | ||
} |
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