mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 12:05:18 +00:00
fc85052522
* feat: add community multi-spend proposal type * feat: add handler for community multi-spend proposals * chore: register new community multi-spend proposal * feat: define client for community multi-spend proposal * fix typos in example cli json * fix: register now proposal type with module codec * fix: register community multi-spend proposal with gov router, not committee * fix: define kavadist keeper before referencing it * nit: include deposit in example proposal * nit: update comment * nit: fix error codes * nit: update comments
22 lines
767 B
Go
22 lines
767 B
Go
package rest
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/types/rest"
|
|
|
|
"github.com/kava-labs/kava/x/kavadist/types"
|
|
)
|
|
|
|
type (
|
|
// CommunityPoolMultiSpendProposalReq defines a community pool multi-spend proposal request body.
|
|
CommunityPoolMultiSpendProposalReq struct {
|
|
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
|
|
|
|
Title string `json:"title" yaml:"title"`
|
|
Description string `json:"description" yaml:"description"`
|
|
RecipientList types.MultiSpendRecipients `json:"recipient_list" yaml:"recipient_list"`
|
|
Deposit sdk.Coins `json:"deposit" yaml:"deposit"`
|
|
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
|
|
}
|
|
)
|