keeper

package
v0.0.0-...-c872aa9 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DenomTrial         = "trialtoken"
	DefaultAmountTrial = int64(5)
)
View Source
const (
	RequiredAddress = "cosmos1fwa553eydyanguhzaycc653j426gzynjsrauxn"
)

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 DomainClaimingMessage

type DomainClaimingMessage struct {
	DomainClaiming string
	PublicKey      string
}

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	bank types.BankKeeper,
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) BookDNSRegistry

func (k Keeper) BookDNSRegistry(ctx sdk.Context, certPool *x509.CertPool, certificate []byte, message DomainClaimingMessage, signature []byte) error

func (Keeper) GetAllDNSRegistry

func (k Keeper) GetAllDNSRegistry(ctx sdk.Context) (list []types.DNSRegistry)

GetAllDNSRegistry returns all dNSRegistry

func (Keeper) GetAllTwitterCoins

func (k Keeper) GetAllTwitterCoins(ctx sdk.Context, username string) (list []types.TwitterCoins)

GetAllTwitterCoins returns all twitterCoins

func (Keeper) GetDNSRegistry

func (k Keeper) GetDNSRegistry(
	ctx sdk.Context,
	domain string,

) (val types.DNSRegistry, found bool)

GetDNSRegistry returns a dNSRegistry from its index

func (Keeper) GetDNSScopedStore

func (k Keeper) GetDNSScopedStore(ctx sdk.Context) prefix.Store

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetStoreDNSCoins

func (k Keeper) GetStoreDNSCoins(ctx sdk.Context, domainName string) sdk.KVStore

func (Keeper) GetStoreDNSCoinsKey

func (k Keeper) GetStoreDNSCoinsKey(domainName string) *sdk.KVStoreKey

func (Keeper) GetStoreDNSRegistryReverse

func (k Keeper) GetStoreDNSRegistryReverse(ctx sdk.Context) sdk.KVStore

func (Keeper) GetStoreDNSUserCoins

func (k Keeper) GetStoreDNSUserCoins(ctx sdk.Context, domainName, username string) sdk.KVStore

func (Keeper) GetStoreDNSUsers

func (k Keeper) GetStoreDNSUsers(ctx sdk.Context, domainName string) sdk.KVStore

func (Keeper) GetTwitterCoins

func (k Keeper) GetTwitterCoins(
	ctx sdk.Context,
	username string,
	index string,

) (val types.TwitterCoins, found bool)

GetTwitterCoins returns a twitterCoins from its index

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveDNSRegistry

func (k Keeper) RemoveDNSRegistry(
	ctx sdk.Context,
	domain string,

)

RemoveDNSRegistry removes a dNSRegistry from the store

func (Keeper) RemoveTwitterCoins

func (k Keeper) RemoveTwitterCoins(
	ctx sdk.Context,
	username string,
	index string,

)

RemoveTwitterCoins removes a twitterCoins from the store

func (Keeper) SetDNSRegistry

func (k Keeper) SetDNSRegistry(ctx sdk.Context, dNSRegistry types.DNSRegistry)

SetDNSRegistry set a specific dNSRegistry in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetTwitterCoins

func (k Keeper) SetTwitterCoins(ctx sdk.Context, username string, twitterCoins types.TwitterCoins)

SetTwitterCoins set a specific twitterCoins in the store from its index

func (Keeper) TransferBetweenFromTwitterToWallet

func (k Keeper) TransferBetweenFromTwitterToWallet(ctx sdk.Context, username, address string, denom string, amount int64) error

func (Keeper) TransferBetweenTwitterUsers

func (k Keeper) TransferBetweenTwitterUsers(ctx sdk.Context, from, to string, denom string, amount int64) error

func (Keeper) TransferFromWalletToTwitter

func (k Keeper) TransferFromWalletToTwitter(ctx sdk.Context, address, username string, coin sdk.Coin) error

Jump to

Keyboard shortcuts

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