-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
6c9c171
commit a384e45
Showing
5 changed files
with
54 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package types | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
var ( | ||
_ sdk.Msg = (*MsgFundCommunityPool)(nil) | ||
_ sdk.Msg = (*MsgCommunityPoolSpend)(nil) | ||
) | ||
|
||
// NewMsgFundCommunityPool returns a new MsgFundCommunityPool with a sender and | ||
// a funding amount. | ||
func NewMsgFundCommunityPool(amount sdk.Coins, depositor string) *MsgFundCommunityPool { | ||
return &MsgFundCommunityPool{ | ||
Amount: amount, | ||
Depositor: depositor, | ||
} | ||
} | ||
|
||
// NewCommunityPoolSpend returns a new CommunityPoolSpend with authority, recipient and | ||
// a spending amount. | ||
func NewCommunityPoolSpend(amount sdk.Coins, authority, recipient string) *MsgCommunityPoolSpend { | ||
return &MsgCommunityPoolSpend{ | ||
Authority: authority, | ||
Recipient: recipient, | ||
Amount: amount, | ||
} | ||
} |