Documentation
¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) DowngradeVestingAccount(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllLinkedAddresses(ctx sdk.Context) []types.LinkedAddresses
- func (k Keeper) GetAllStrdBurnedAcrossAddresses(ctx sdk.Context) []types.AddressBurnedAmount
- func (k Keeper) GetLinkedAddress(ctx sdk.Context, strideAddress sdk.AccAddress) string
- func (k Keeper) GetProtocolStrdBurned(ctx sdk.Context) sdkmath.Int
- func (k Keeper) GetStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress) sdkmath.Int
- func (k Keeper) GetStrdBurnerAddress() sdk.AccAddress
- func (k Keeper) GetTotalStrdBurned(ctx sdk.Context) sdkmath.Int
- func (k Keeper) GetTotalUserStrdBurned(ctx sdk.Context) sdkmath.Int
- func (k Keeper) IncrementProtocolStrdBurned(ctx sdk.Context, amount sdkmath.Int)
- func (k Keeper) IncrementStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress, amount sdkmath.Int)
- func (k Keeper) IncrementTotalUserStrdBurned(ctx sdk.Context, amount sdkmath.Int)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) LinkedAddress(goCtx context.Context, req *types.QueryLinkedAddressRequest) (*types.QueryLinkedAddressResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetLinkedAddress(ctx sdk.Context, strideAddress sdk.AccAddress, linkedAddress string)
- func (k Keeper) SetProtocolStrdBurned(ctx sdk.Context, amount sdkmath.Int)
- func (k Keeper) SetStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress, amount sdkmath.Int)
- func (k Keeper) SetTotalUserStrdBurned(ctx sdk.Context, amount sdkmath.Int)
- func (k Keeper) StrdBurnedByAddress(goCtx context.Context, req *types.QueryStrdBurnedByAddressRequest) (*types.QueryStrdBurnedByAddressResponse, error)
- func (k Keeper) StrdBurnerAddress(goCtx context.Context, req *types.QueryStrdBurnerAddressRequest) (*types.QueryStrdBurnerAddressResponse, error)
- func (k Keeper) TotalStrdBurned(goCtx context.Context, req *types.QueryTotalStrdBurnedRequest) (*types.QueryTotalStrdBurnedResponse, error)
Constants ¶
const USTRD = "ustrd"
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) DowngradeVestingAccount ¶
Downgrades a vesting account to a base account This downgrades the following:
- PeriodicVestingAccount
- ContinuousVestingAccount
- StridePeriodicVestingAccount
Although, on mainnet it should not be called for StridePeriodicVestingAccount since all those accounts are already vested
func (Keeper) EndBlocker ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
Export's module state into genesis file
func (Keeper) GetAllLinkedAddresses ¶
func (k Keeper) GetAllLinkedAddresses(ctx sdk.Context) []types.LinkedAddresses
Returns all linked addresses
func (Keeper) GetAllStrdBurnedAcrossAddresses ¶
func (k Keeper) GetAllStrdBurnedAcrossAddresses(ctx sdk.Context) []types.AddressBurnedAmount
Returns all addresses and their respective STRD burned amounts
func (Keeper) GetLinkedAddress ¶
Returns linked address for a given stride address
func (Keeper) GetProtocolStrdBurned ¶
Returns the total STRD burned from the protocol
func (Keeper) GetStrdBurnedByAddress ¶
Returns the total STRD burned from a given address
func (Keeper) GetStrdBurnerAddress ¶
func (k Keeper) GetStrdBurnerAddress() sdk.AccAddress
func (Keeper) GetTotalStrdBurned ¶
Returns the total STRD burned across all users and the protocol
func (Keeper) GetTotalUserStrdBurned ¶
Returns the total STRD burned from all users
func (Keeper) IncrementProtocolStrdBurned ¶
Increment the protocol strd burned
func (Keeper) IncrementStrdBurnedByAddress ¶
func (k Keeper) IncrementStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress, amount sdkmath.Int)
Increment the strd burned for an address
func (Keeper) IncrementTotalUserStrdBurned ¶
Increment the total user strd burned
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
Loads module state from genesis
func (Keeper) LinkedAddress ¶
func (k Keeper) LinkedAddress(goCtx context.Context, req *types.QueryLinkedAddressRequest) (*types.QueryLinkedAddressResponse, error)
func (Keeper) SetLinkedAddress ¶
func (k Keeper) SetLinkedAddress(ctx sdk.Context, strideAddress sdk.AccAddress, linkedAddress string)
Links a non-stride address with a stride address
func (Keeper) SetProtocolStrdBurned ¶
Sets the total STRD burned from the protocol
func (Keeper) SetStrdBurnedByAddress ¶
Sets the total STRD burned from a given address
func (Keeper) SetTotalUserStrdBurned ¶
Sets the total STRD burned from all users
func (Keeper) StrdBurnedByAddress ¶
func (k Keeper) StrdBurnedByAddress(goCtx context.Context, req *types.QueryStrdBurnedByAddressRequest) (*types.QueryStrdBurnedByAddressResponse, error)
func (Keeper) StrdBurnerAddress ¶
func (k Keeper) StrdBurnerAddress(goCtx context.Context, req *types.QueryStrdBurnerAddressRequest) (*types.QueryStrdBurnerAddressResponse, error)
Auction queries the auction info for a specific token
func (Keeper) TotalStrdBurned ¶
func (k Keeper) TotalStrdBurned(goCtx context.Context, req *types.QueryTotalStrdBurnedRequest) (*types.QueryTotalStrdBurnedResponse, error)