Documentation ¶
Index ¶
- func BeginBlocker(ctx sdk.Context, k Keeper)
- func EndBlocker(ctx sdk.Context, k Keeper)
- func ModuleAccountInvariant(k Keeper) sdk.Invariant
- func NewFoundationProposalsHandler(k Keeper) govtypes.Handler
- func NewMsgServer(keeper Keeper) foundation.MsgServer
- func NewQueryServer(keeper Keeper) foundation.QueryServer
- func ProposalInvariant(k Keeper) sdk.Invariant
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- func TotalWeightInvariant(k Keeper) sdk.Invariant
- func Uint64FromBytes(bz []byte) uint64
- func Uint64ToBytes(number uint64) []byte
- type Keeper
- func (k Keeper) Accept(ctx sdk.Context, grantee sdk.AccAddress, msg sdk.Msg) error
- func (k Keeper) CollectFoundationTax(ctx sdk.Context) error
- func (k Keeper) Exec(ctx sdk.Context, proposalID uint64) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *foundation.GenesisState
- func (k Keeper) FundTreasury(ctx sdk.Context, from sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAuthorization(ctx sdk.Context, grantee sdk.AccAddress, msgTypeURL string) (foundation.Authorization, error)
- func (k Keeper) GetCensorship(ctx sdk.Context, msgTypeURL string) (*foundation.Censorship, error)
- func (k Keeper) GetCensorships(ctx sdk.Context) []foundation.Censorship
- func (k Keeper) GetFoundationInfo(ctx sdk.Context) foundation.FoundationInfo
- func (k Keeper) GetFoundationTax(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetGrants(ctx sdk.Context) []foundation.GrantAuthorization
- func (k Keeper) GetMember(ctx sdk.Context, address sdk.AccAddress) (*foundation.Member, error)
- func (k Keeper) GetMembers(ctx sdk.Context) []foundation.Member
- func (k Keeper) GetParams(ctx sdk.Context) foundation.Params
- func (k Keeper) GetPool(ctx sdk.Context) foundation.Pool
- func (k Keeper) GetProposal(ctx sdk.Context, id uint64) (*foundation.Proposal, error)
- func (k Keeper) GetProposals(ctx sdk.Context) []foundation.Proposal
- func (k Keeper) GetTreasury(ctx sdk.Context) sdk.DecCoins
- func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (*foundation.Vote, error)
- func (k Keeper) GetVotes(ctx sdk.Context, proposalID uint64) []foundation.Vote
- func (k Keeper) Grant(ctx sdk.Context, grantee sdk.AccAddress, ...) error
- func (k Keeper) InitGenesis(ctx sdk.Context, data *foundation.GenesisState) error
- func (k Keeper) IsCensoredMessage(ctx sdk.Context, msgTypeURL string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PruneExpiredProposals(ctx sdk.Context)
- func (k Keeper) Revoke(ctx sdk.Context, grantee sdk.AccAddress, msgTypeURL string) error
- func (k Keeper) SetCensorship(ctx sdk.Context, censorship foundation.Censorship)
- func (k Keeper) SetFoundationInfo(ctx sdk.Context, info foundation.FoundationInfo)
- func (k Keeper) SetMember(ctx sdk.Context, member foundation.Member)
- func (k Keeper) SetParams(ctx sdk.Context, params foundation.Params)
- func (k Keeper) SetPool(ctx sdk.Context, pool foundation.Pool)
- func (k Keeper) SubmitProposal(ctx sdk.Context, proposers []string, metadata string, msgs []sdk.Msg) (*uint64, error)
- func (k Keeper) UpdateCensorship(ctx sdk.Context, censorship foundation.Censorship) error
- func (k Keeper) UpdateDecisionPolicy(ctx sdk.Context, policy foundation.DecisionPolicy) error
- func (k Keeper) UpdateMembers(ctx sdk.Context, members []foundation.MemberRequest) error
- func (k Keeper) UpdateTallyOfVPEndProposals(ctx sdk.Context)
- func (k Keeper) Vote(ctx sdk.Context, vote foundation.Vote) error
- func (k Keeper) WithdrawFromTreasury(ctx sdk.Context, to sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) WithdrawProposal(ctx sdk.Context, proposalID uint64) error
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginBlocker ¶
BeginBlocker withdraws rewards from fee-collector before the distribution module's withdraw.
func EndBlocker ¶
func ModuleAccountInvariant ¶
func NewFoundationProposalsHandler ¶
NewFoundationProposalsHandler creates a handler for the gov proposals.
func NewMsgServer ¶
func NewMsgServer(keeper Keeper) foundation.MsgServer
NewMsgServer returns an implementation of the token MsgServer interface for the provided Keeper.
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) foundation.QueryServer
func ProposalInvariant ¶
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
func TotalWeightInvariant ¶
func Uint64FromBytes ¶
Uint64FromBytes converts a byte array to uint64
func Uint64ToBytes ¶
Uint64ToBytes converts a number in uint64 to a byte array
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper defines the foundation module Keeper
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, key sdk.StoreKey, router *baseapp.MsgServiceRouter, authKeeper foundation.AuthKeeper, bankKeeper foundation.BankKeeper, feeCollectorName string, config foundation.Config, authority string, paramSpace paramtypes.Subspace, ) Keeper
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *foundation.GenesisState
func (Keeper) FundTreasury ¶
func (Keeper) GetAuthority ¶
GetAuthority returns the x/foundation module's authority.
func (Keeper) GetAuthorization ¶
func (k Keeper) GetAuthorization(ctx sdk.Context, grantee sdk.AccAddress, msgTypeURL string) (foundation.Authorization, error)
func (Keeper) GetCensorship ¶
func (k Keeper) GetCensorship(ctx sdk.Context, msgTypeURL string) (*foundation.Censorship, error)
func (Keeper) GetCensorships ¶
func (k Keeper) GetCensorships(ctx sdk.Context) []foundation.Censorship
func (Keeper) GetFoundationInfo ¶
func (k Keeper) GetFoundationInfo(ctx sdk.Context) foundation.FoundationInfo
func (Keeper) GetGrants ¶
func (k Keeper) GetGrants(ctx sdk.Context) []foundation.GrantAuthorization
func (Keeper) GetMember ¶
func (k Keeper) GetMember(ctx sdk.Context, address sdk.AccAddress) (*foundation.Member, error)
func (Keeper) GetMembers ¶
func (k Keeper) GetMembers(ctx sdk.Context) []foundation.Member
func (Keeper) GetProposal ¶
func (Keeper) GetProposals ¶
func (k Keeper) GetProposals(ctx sdk.Context) []foundation.Proposal
func (Keeper) GetVote ¶
func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voter sdk.AccAddress) (*foundation.Vote, error)
func (Keeper) Grant ¶
func (k Keeper) Grant(ctx sdk.Context, grantee sdk.AccAddress, authorization foundation.Authorization) error
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, data *foundation.GenesisState) error
func (Keeper) IsCensoredMessage ¶
func (Keeper) PruneExpiredProposals ¶
PruneExpiredProposals prunes all proposals which are expired, i.e. whose `submit_time + voting_period + max_execution_period` is smaller than (or equal to) now.
func (Keeper) SetCensorship ¶
func (k Keeper) SetCensorship(ctx sdk.Context, censorship foundation.Censorship)
func (Keeper) SetFoundationInfo ¶
func (k Keeper) SetFoundationInfo(ctx sdk.Context, info foundation.FoundationInfo)
func (Keeper) SubmitProposal ¶
func (Keeper) UpdateCensorship ¶
func (k Keeper) UpdateCensorship(ctx sdk.Context, censorship foundation.Censorship) error
func (Keeper) UpdateDecisionPolicy ¶
func (k Keeper) UpdateDecisionPolicy(ctx sdk.Context, policy foundation.DecisionPolicy) error
func (Keeper) UpdateMembers ¶
func (k Keeper) UpdateMembers(ctx sdk.Context, members []foundation.MemberRequest) error
func (Keeper) UpdateTallyOfVPEndProposals ¶
func (Keeper) WithdrawFromTreasury ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.