Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) BeginBlocker(ctx context.Context) error
- func (k Keeper) DistributeFromCommunityPool(ctx context.Context, amount sdk.Coins, receiveAddr []byte) error
- func (k Keeper) DistributeFromStreamFunds(ctx context.Context, amount sdk.Coins, receiveAddr []byte) error
- func (k Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error)
- func (k Keeper) FundCommunityPool(ctx context.Context, amount sdk.Coins, sender []byte) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCommunityPool(ctx context.Context) (sdk.Coins, error)
- func (k Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) error
- func (k Keeper) IterateAndUpdateFundsDistribution(ctx context.Context) error
- func (k Keeper) SetToDistribute(ctx context.Context) error
- type MsgServer
- func (k MsgServer) CancelContinuousFund(ctx context.Context, msg *types.MsgCancelContinuousFund) (*types.MsgCancelContinuousFundResponse, error)
- func (k MsgServer) ClaimBudget(ctx context.Context, msg *types.MsgClaimBudget) (*types.MsgClaimBudgetResponse, error)
- func (k MsgServer) CommunityPoolSpend(ctx context.Context, msg *types.MsgCommunityPoolSpend) (*types.MsgCommunityPoolSpendResponse, error)
- func (k MsgServer) CreateContinuousFund(ctx context.Context, msg *types.MsgCreateContinuousFund) (*types.MsgCreateContinuousFundResponse, error)
- func (k MsgServer) FundCommunityPool(ctx context.Context, msg *types.MsgFundCommunityPool) (*types.MsgFundCommunityPoolResponse, error)
- func (k MsgServer) SubmitBudgetProposal(ctx context.Context, msg *types.MsgSubmitBudgetProposal) (*types.MsgSubmitBudgetProposalResponse, error)
- func (k MsgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
- func (k MsgServer) WithdrawContinuousFund(ctx context.Context, msg *types.MsgWithdrawContinuousFund) (*types.MsgWithdrawContinuousFundResponse, error)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the protocolpool MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { appmodule.Environment // State Schema collections.Schema BudgetProposal collections.Map[sdk.AccAddress, types.Budget] ContinuousFund collections.Map[sdk.AccAddress, types.ContinuousFund] // RecipientFundDistribution key: RecipientAddr | value: Claimable amount RecipientFundDistribution collections.Map[sdk.AccAddress, types.DistributionAmount] Distributions collections.Map[time.Time, types.DistributionAmount] // key: time.Time, denom | value: amounts LastBalance collections.Item[types.DistributionAmount] Params collections.Item[types.Params] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, env appmodule.Environment, ak types.AccountKeeper, bk types.BankKeeper, authority string, ) Keeper
func (Keeper) DistributeFromCommunityPool ¶
func (k Keeper) DistributeFromCommunityPool(ctx context.Context, amount sdk.Coins, receiveAddr []byte) error
DistributeFromCommunityPool distributes funds from the protocolpool module account to a receiver address.
func (Keeper) DistributeFromStreamFunds ¶
func (k Keeper) DistributeFromStreamFunds(ctx context.Context, amount sdk.Coins, receiveAddr []byte) error
DistributeFromStreamFunds distributes funds from the protocolpool's stream module account to a receiver address.
func (Keeper) ExportGenesis ¶
func (Keeper) FundCommunityPool ¶
FundCommunityPool allows an account to directly fund the community fund pool.
func (Keeper) GetAuthority ¶
GetAuthority returns the x/protocolpool module's authority.
func (Keeper) GetCommunityPool ¶
GetCommunityPool gets the community pool balance.
func (Keeper) InitGenesis ¶
func (Keeper) IterateAndUpdateFundsDistribution ¶
type MsgServer ¶
type MsgServer struct {
Keeper
}
func (MsgServer) CancelContinuousFund ¶
func (k MsgServer) CancelContinuousFund(ctx context.Context, msg *types.MsgCancelContinuousFund) (*types.MsgCancelContinuousFundResponse, error)
func (MsgServer) ClaimBudget ¶
func (k MsgServer) ClaimBudget(ctx context.Context, msg *types.MsgClaimBudget) (*types.MsgClaimBudgetResponse, error)
func (MsgServer) CommunityPoolSpend ¶
func (k MsgServer) CommunityPoolSpend(ctx context.Context, msg *types.MsgCommunityPoolSpend) (*types.MsgCommunityPoolSpendResponse, error)
func (MsgServer) CreateContinuousFund ¶
func (k MsgServer) CreateContinuousFund(ctx context.Context, msg *types.MsgCreateContinuousFund) (*types.MsgCreateContinuousFundResponse, error)
func (MsgServer) FundCommunityPool ¶
func (k MsgServer) FundCommunityPool(ctx context.Context, msg *types.MsgFundCommunityPool) (*types.MsgFundCommunityPoolResponse, error)
func (MsgServer) SubmitBudgetProposal ¶
func (k MsgServer) SubmitBudgetProposal(ctx context.Context, msg *types.MsgSubmitBudgetProposal) (*types.MsgSubmitBudgetProposalResponse, error)
func (MsgServer) UpdateParams ¶
func (k MsgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
func (MsgServer) WithdrawContinuousFund ¶
func (k MsgServer) WithdrawContinuousFund(ctx context.Context, msg *types.MsgWithdrawContinuousFund) (*types.MsgWithdrawContinuousFundResponse, error)
type Querier ¶
type Querier struct {
Keeper
}
func NewQuerier ¶
func (Querier) CommunityPool ¶
func (k Querier) CommunityPool(ctx context.Context, _ *types.QueryCommunityPoolRequest) (*types.QueryCommunityPoolResponse, error)
CommunityPool queries the community pool coins
func (Querier) UnclaimedBudget ¶
func (k Querier) UnclaimedBudget(ctx context.Context, req *types.QueryUnclaimedBudgetRequest) (*types.QueryUnclaimedBudgetResponse, error)
UnclaimedBudget queries the unclaimed budget for given recipient
Click to show internal directories.
Click to hide internal directories.