Documentation ¶
Index ¶
- Constants
- func CalculateWithdrawable(current time.Time, vestingPool types.VestingPool) math.Int
- func ModuleAccountInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NonNegativeVestingPoolAmountsInvariant(k Keeper) sdk.Invariant
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- func VestingPoolConsistentDataInvariant(k Keeper) sdk.Invariant
- type Keeper
- func (k Keeper) AppendVestingAccountTrace(ctx sdk.Context, vestingAccountTrace types.VestingAccountTrace) uint64
- func (k Keeper) CreateVestingAccount(ctx sdk.Context, fromAddress string, toAddress string, amount sdk.Coins, ...) error
- func (k Keeper) CreateVestingPool(ctx sdk.Context, addr string, name string, amount math.Int, ...) error
- func (k Keeper) DeleteAccountVestingPools(ctx sdk.Context, accountAddress string) (accountVestingPools types.AccountVestingPools)
- func (k Keeper) Denom(ctx sdk.Context) (res string)
- func (k Keeper) GenesisVestingsSummary(goCtx context.Context, req *types.QueryGenesisVestingsSummaryRequest) (*types.QueryGenesisVestingsSummaryResponse, error)
- func (k Keeper) GetAccountVestingPools(ctx sdk.Context, accountAddress string) (accountVestingPools types.AccountVestingPools, found bool)
- func (k Keeper) GetAllAccountVestingPools(ctx sdk.Context) (list types.AccountVestingPoolsList)
- func (k Keeper) GetAllVestingAccountTrace(ctx sdk.Context) (list []types.VestingAccountTrace)
- func (k Keeper) GetAllVestingTypes(ctx sdk.Context) (vestingTypes types.VestingTypes)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetVestingAccountTrace(ctx sdk.Context, address string) (val types.VestingAccountTrace, found bool)
- func (k Keeper) GetVestingAccountTraceById(ctx sdk.Context, id uint64) (val types.VestingAccountTrace, found bool)
- func (k Keeper) GetVestingAccountTraceCount(ctx sdk.Context) uint64
- func (k Keeper) GetVestingType(ctx sdk.Context, name string) (vestingType types.VestingType, err error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveVestingAccountTrace(ctx sdk.Context, address string)
- func (k Keeper) RemoveVestingType(ctx sdk.Context, name string)
- func (k Keeper) SendToNewVestingAccount(ctx sdk.Context, owner string, toAddr string, vestingPoolName string, ...) (withdrawn sdk.Coin, returnedError error)
- func (k Keeper) SetAccountVestingPools(ctx sdk.Context, accountVestingPools types.AccountVestingPools)
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) SetVestingAccountTrace(ctx sdk.Context, vestingAccountTrace types.VestingAccountTrace)
- func (k Keeper) SetVestingAccountTraceCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetVestingType(ctx sdk.Context, vestingType types.VestingType)
- func (k Keeper) SetVestingTypes(ctx sdk.Context, vestingTypes types.VestingTypes)
- func (k Keeper) UnlockUnbondedContinuousVestingAccountCoins(ctx sdk.Context, ownerAddress sdk.AccAddress, amountToUnlock sdk.Coins) (*vestingtypes.ContinuousVestingAccount, error)
- func (k Keeper) VestingPools(goCtx context.Context, req *types.QueryVestingPoolsRequest) (*types.QueryVestingPoolsResponse, error)
- func (k Keeper) VestingType(goCtx context.Context, req *types.QueryVestingTypeRequest) (*types.QueryVestingTypeResponse, error)
- func (k Keeper) VestingsSummary(goCtx context.Context, req *types.QueryVestingsSummaryRequest) (*types.QueryVestingsSummaryResponse, error)
- func (k Keeper) WithdrawAllAvailable(ctx sdk.Context, owner string) (withdrawn sdk.Coin, returnedError error)
- type Migrator
- type Summary
Constants ¶
const NONNEGATIVE_AMOUNTS_INVARIANT = "nonnegative vesting pool amounts"
const VestingAddress = "vestingAddr: "
Variables ¶
This section is empty.
Functions ¶
func CalculateWithdrawable ¶
func ModuleAccountInvariant ¶ added in v1.1.0
ModuleAccountInvariant checks that sum on locked in vesting pools equals to module account balance
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NonNegativeVestingPoolAmountsInvariant ¶ added in v1.1.0
NonNegativeCoinStateInvariant checks that any locked coins amount in vesting pools is non negative
func RegisterInvariants ¶ added in v1.1.0
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants register cfedistribution invariants
func VestingPoolConsistentDataInvariant ¶ added in v1.1.0
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bank types.BankKeeper, staking types.StakingKeeper, account types.AccountKeeper, distribution types.DistributionKeeper, gov types.GovKeeper, authority string, ) *Keeper
func (Keeper) AppendVestingAccountTrace ¶ added in v1.2.0
func (k Keeper) AppendVestingAccountTrace( ctx sdk.Context, vestingAccountTrace types.VestingAccountTrace, ) uint64
AppendVestingAccountTrace appends a vestingAccount in the store with a new id and update the count
func (Keeper) CreateVestingAccount ¶
func (Keeper) CreateVestingPool ¶
func (Keeper) DeleteAccountVestingPools ¶ added in v1.1.0
func (k Keeper) DeleteAccountVestingPools(ctx sdk.Context, accountAddress string) (accountVestingPools types.AccountVestingPools)
get the vesting types
func (Keeper) GenesisVestingsSummary ¶ added in v1.2.0
func (k Keeper) GenesisVestingsSummary(goCtx context.Context, req *types.QueryGenesisVestingsSummaryRequest) (*types.QueryGenesisVestingsSummaryResponse, error)
func (Keeper) GetAccountVestingPools ¶ added in v1.1.0
func (k Keeper) GetAccountVestingPools(ctx sdk.Context, accountAddress string) (accountVestingPools types.AccountVestingPools, found bool)
get the vesting types
func (Keeper) GetAllAccountVestingPools ¶ added in v1.1.0
func (k Keeper) GetAllAccountVestingPools(ctx sdk.Context) (list types.AccountVestingPoolsList)
GetAllAccountVestingPools returns all AccountVestingPools
func (Keeper) GetAllVestingAccountTrace ¶ added in v1.2.0
func (k Keeper) GetAllVestingAccountTrace(ctx sdk.Context) (list []types.VestingAccountTrace)
GetAllVestingAccountTrace returns all vestingAccount
func (Keeper) GetAllVestingTypes ¶ added in v1.1.0
func (k Keeper) GetAllVestingTypes(ctx sdk.Context) (vestingTypes types.VestingTypes)
GetAllVestingTypes returns all VestingTypes
func (Keeper) GetVestingAccountTrace ¶ added in v1.2.0
func (k Keeper) GetVestingAccountTrace(ctx sdk.Context, address string) (val types.VestingAccountTrace, found bool)
GetVestingAccountById returns a vestingAccount from its id
func (Keeper) GetVestingAccountTraceById ¶ added in v1.2.0
func (k Keeper) GetVestingAccountTraceById(ctx sdk.Context, id uint64) (val types.VestingAccountTrace, found bool)
GetVestingAccountTraceById returns a vestingAccount from its id
func (Keeper) GetVestingAccountTraceCount ¶ added in v1.2.0
GetVestingAccountTraceCount get the total number of vestingAccount
func (Keeper) GetVestingType ¶
func (k Keeper) GetVestingType(ctx sdk.Context, name string) (vestingType types.VestingType, err error)
get the vesting type by name
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveVestingAccountTrace ¶ added in v1.2.0
RemoveVestingAccountTrace removes a vestingAccount from the store
func (Keeper) RemoveVestingType ¶ added in v1.2.0
get the vesting type by name
func (Keeper) SendToNewVestingAccount ¶
func (Keeper) SetAccountVestingPools ¶ added in v1.1.0
func (k Keeper) SetAccountVestingPools(ctx sdk.Context, accountVestingPools types.AccountVestingPools)
set the vesting types
func (Keeper) SetVestingAccountTrace ¶ added in v1.2.0
func (k Keeper) SetVestingAccountTrace(ctx sdk.Context, vestingAccountTrace types.VestingAccountTrace)
SetVestingAccountTrace set a specific vestingAccount in the store
func (Keeper) SetVestingAccountTraceCount ¶ added in v1.2.0
SetVestingAccountTraceCount set the total number of vestingAccount
func (Keeper) SetVestingType ¶ added in v1.1.0
func (k Keeper) SetVestingType(ctx sdk.Context, vestingType types.VestingType)
set the vesting type
func (Keeper) SetVestingTypes ¶
func (k Keeper) SetVestingTypes(ctx sdk.Context, vestingTypes types.VestingTypes)
set the vesting types
func (Keeper) UnlockUnbondedContinuousVestingAccountCoins ¶ added in v1.2.0
func (k Keeper) UnlockUnbondedContinuousVestingAccountCoins(ctx sdk.Context, ownerAddress sdk.AccAddress, amountToUnlock sdk.Coins) (*vestingtypes.ContinuousVestingAccount, error)
func (Keeper) VestingPools ¶
func (k Keeper) VestingPools(goCtx context.Context, req *types.QueryVestingPoolsRequest) (*types.QueryVestingPoolsResponse, error)
func (Keeper) VestingType ¶
func (k Keeper) VestingType(goCtx context.Context, req *types.QueryVestingTypeRequest) (*types.QueryVestingTypeResponse, error)
func (Keeper) VestingsSummary ¶ added in v1.1.0
func (k Keeper) VestingsSummary(goCtx context.Context, req *types.QueryVestingsSummaryRequest) (*types.QueryVestingsSummaryResponse, error)
type Migrator ¶ added in v1.1.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v1.1.0
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v1.1.0
Migrate2to3 migrates from version 1 to 2.
Source Files ¶
- account_vesting_pools.go
- grpc_query.go
- grpc_query_genesis_vestings_summary.go
- grpc_query_params.go
- grpc_query_vesting_pools.go
- grpc_query_vesting_type.go
- grpc_query_vestings_summary.go
- invariants.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_create_vesting_account.go
- msg_server_create_vesting_pool.go
- msg_server_move_available_vesting.go
- msg_server_move_available_vesting_by_denoms.go
- msg_server_send_to_vesting_account.go
- msg_server_split_vesting.go
- msg_server_update_denom_param.go
- msg_server_withdraw_all_available.go
- params.go
- vesting.go
- vesting_account.go
- vesting_account_split.go
- vesting_types.go