Documentation
¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type DomainClaimingMessage
- type Keeper
- func (k Keeper) BookDNSRegistry(ctx sdk.Context, certPool *x509.CertPool, certificate []byte, ...) error
- func (k Keeper) DNSRegistry(c context.Context, req *types.QueryGetDNSRegistryRequest) (*types.QueryGetDNSRegistryResponse, error)
- func (k Keeper) DNSRegistryAll(c context.Context, req *types.QueryAllDNSRegistryRequest) (*types.QueryAllDNSRegistryResponse, error)
- func (k Keeper) GetAllDNSRegistry(ctx sdk.Context) (list []types.DNSRegistry)
- func (k Keeper) GetAllTwitterCoins(ctx sdk.Context, username string) (list []types.TwitterCoins)
- func (k Keeper) GetDNSRegistry(ctx sdk.Context, domain string) (val types.DNSRegistry, found bool)
- func (k Keeper) GetDNSScopedStore(ctx sdk.Context) prefix.Store
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetStoreDNSCoins(ctx sdk.Context, domainName string) sdk.KVStore
- func (k Keeper) GetStoreDNSCoinsKey(domainName string) *sdk.KVStoreKey
- func (k Keeper) GetStoreDNSRegistryReverse(ctx sdk.Context) sdk.KVStore
- func (k Keeper) GetStoreDNSUserCoins(ctx sdk.Context, domainName, username string) sdk.KVStore
- func (k Keeper) GetStoreDNSUsers(ctx sdk.Context, domainName string) sdk.KVStore
- func (k Keeper) GetTwitterCoins(ctx sdk.Context, username string, index string) (val types.TwitterCoins, found bool)
- 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) RemoveDNSRegistry(ctx sdk.Context, domain string)
- func (k Keeper) RemoveTwitterCoins(ctx sdk.Context, username string, index string)
- func (k Keeper) SetDNSRegistry(ctx sdk.Context, dNSRegistry types.DNSRegistry)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetTwitterCoins(ctx sdk.Context, username string, twitterCoins types.TwitterCoins)
- func (k Keeper) TransferBetweenFromTwitterToWallet(ctx sdk.Context, username, address string, denom string, amount int64) error
- func (k Keeper) TransferBetweenTwitterUsers(ctx sdk.Context, from, to string, denom string, amount int64) error
- func (k Keeper) TransferFromWalletToTwitter(ctx sdk.Context, address, username string, coin sdk.Coin) error
- func (k Keeper) TwitterCoins(c context.Context, req *types.QueryGetTwitterCoinsRequest) (*types.QueryGetTwitterCoinsResponse, error)
- func (k Keeper) TwitterCoinsAll(c context.Context, req *types.QueryAllTwitterCoinsRequest) (*types.QueryAllTwitterCoinsResponse, error)
Constants ¶
View Source
const ( DenomTrial = "trialtoken" DefaultAmountTrial = int64(5) )
View Source
const (
RequiredAddress = "cosmos1fwa553eydyanguhzaycc653j426gzynjsrauxn"
)
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type DomainClaimingMessage ¶
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 (Keeper) DNSRegistry ¶
func (k Keeper) DNSRegistry(c context.Context, req *types.QueryGetDNSRegistryRequest) (*types.QueryGetDNSRegistryResponse, error)
func (Keeper) DNSRegistryAll ¶
func (k Keeper) DNSRegistryAll(c context.Context, req *types.QueryAllDNSRegistryRequest) (*types.QueryAllDNSRegistryResponse, error)
func (Keeper) GetAllDNSRegistry ¶
func (k Keeper) GetAllDNSRegistry(ctx sdk.Context) (list []types.DNSRegistry)
GetAllDNSRegistry returns all dNSRegistry
func (Keeper) GetAllTwitterCoins ¶
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) GetStoreDNSCoins ¶
func (Keeper) GetStoreDNSCoinsKey ¶
func (k Keeper) GetStoreDNSCoinsKey(domainName string) *sdk.KVStoreKey
func (Keeper) GetStoreDNSRegistryReverse ¶
func (Keeper) GetStoreDNSUserCoins ¶
func (Keeper) GetStoreDNSUsers ¶
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) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveDNSRegistry ¶
RemoveDNSRegistry removes a dNSRegistry from the store
func (Keeper) RemoveTwitterCoins ¶
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) SetTwitterCoins ¶
SetTwitterCoins set a specific twitterCoins in the store from its index
func (Keeper) TransferBetweenFromTwitterToWallet ¶
func (Keeper) TransferBetweenTwitterUsers ¶
func (Keeper) TransferFromWalletToTwitter ¶
func (Keeper) TwitterCoins ¶
func (k Keeper) TwitterCoins(c context.Context, req *types.QueryGetTwitterCoinsRequest) (*types.QueryGetTwitterCoinsResponse, error)
func (Keeper) TwitterCoinsAll ¶
func (k Keeper) TwitterCoinsAll(c context.Context, req *types.QueryAllTwitterCoinsRequest) (*types.QueryAllTwitterCoinsResponse, error)
Source Files
¶
- dns_registry.go
- dns_registry_handler.go
- dns_stores.go
- grpc_query.go
- grpc_query_dns_registry.go
- grpc_query_params.go
- grpc_query_twitter_coins.go
- handler_twitter_coins.go
- keeper.go
- msg_server.go
- msg_server_transfer_from_twitter_to_twitter_by_merces.go
- msg_server_transfer_from_twitter_to_wallet_by_merces.go
- msg_server_transfer_from_wallet_to_twitter.go
- params.go
- twitter_coins.go
Click to show internal directories.
Click to hide internal directories.