Implement the "CommunityPoolSpendProposal" as described in Cosmos Hub proposal 7. Also a useful test of Git flow for merging features passed in governance proposals.
21 lines
573 B
Go
21 lines
573 B
Go
package rest
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/types/rest"
|
|
)
|
|
|
|
type (
|
|
// CommunityPoolSpendProposalReq defines a community pool spend proposal request body.
|
|
CommunityPoolSpendProposalReq struct {
|
|
BaseReq rest.BaseReq `json:"base_req"`
|
|
|
|
Title string `json:"title"`
|
|
Description string `json:"description"`
|
|
Recipient sdk.AccAddress `json:"recipient"`
|
|
Amount sdk.Coins `json:"amount"`
|
|
Proposer sdk.AccAddress `json:"proposer"`
|
|
Deposit sdk.Coins `json:"deposit"`
|
|
}
|
|
)
|