-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mint rewards custom message place-holder
- Loading branch information
Showing
2 changed files
with
18 additions
and
11 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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
package contract | ||
|
||
// CustomMsg is a message sent from a smart contract to the Babylon module | ||
// TODO: implement | ||
type CustomMsg struct { | ||
Test *TestMsg `json:"test,omitempty"` | ||
} | ||
import ( | ||
wasmvmtypes "github.com/CosmWasm/wasmvm/v2/types" | ||
) | ||
|
||
type TestMsg struct { | ||
Placeholder string `json:"placeholder,omitempty"` | ||
} | ||
// CustomMsg is a message sent from a smart contract to the Babylon module | ||
type ( | ||
CustomMsg struct { | ||
MintRewards *MintRewardsMsg `json:"mint_rewards,omitempty"` | ||
} | ||
// MintRewardsMsg mints the specified number of block rewards, | ||
// and sends them to the specified recipient (typically, the staking contract) | ||
MintRewardsMsg struct { | ||
Amount wasmvmtypes.Coin `json:"amount"` | ||
Recipient string `json:"recipient"` | ||
} | ||
) |
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