keeper

package
v30.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const USTRD = "ustrd"

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func (k Keeper) DowngradeVestingAccount(ctx sdk.Context, address sdk.AccAddress) error

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 (k Keeper) EndBlocker(ctx sdk.Context)

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

func (k Keeper) GetLinkedAddress(ctx sdk.Context, strideAddress sdk.AccAddress) string

Returns linked address for a given stride address

func (Keeper) GetProtocolStrdBurned

func (k Keeper) GetProtocolStrdBurned(ctx sdk.Context) sdkmath.Int

Returns the total STRD burned from the protocol

func (Keeper) GetStrdBurnedByAddress

func (k Keeper) GetStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress) sdkmath.Int

Returns the total STRD burned from a given address

func (Keeper) GetStrdBurnerAddress

func (k Keeper) GetStrdBurnerAddress() sdk.AccAddress

func (Keeper) GetTotalStrdBurned

func (k Keeper) GetTotalStrdBurned(ctx sdk.Context) sdkmath.Int

Returns the total STRD burned across all users and the protocol

func (Keeper) GetTotalUserStrdBurned

func (k Keeper) GetTotalUserStrdBurned(ctx sdk.Context) sdkmath.Int

Returns the total STRD burned from all users

func (Keeper) IncrementProtocolStrdBurned

func (k Keeper) IncrementProtocolStrdBurned(ctx sdk.Context, amount sdkmath.Int)

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

func (k Keeper) IncrementTotalUserStrdBurned(ctx sdk.Context, amount sdkmath.Int)

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) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

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

func (k Keeper) SetProtocolStrdBurned(ctx sdk.Context, amount sdkmath.Int)

Sets the total STRD burned from the protocol

func (Keeper) SetStrdBurnedByAddress

func (k Keeper) SetStrdBurnedByAddress(ctx sdk.Context, address sdk.AccAddress, amount sdkmath.Int)

Sets the total STRD burned from a given address

func (Keeper) SetTotalUserStrdBurned

func (k Keeper) SetTotalUserStrdBurned(ctx sdk.Context, amount sdkmath.Int)

Sets the total STRD burned from all users

func (Keeper) StrdBurnerAddress

Auction queries the auction info for a specific token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL