Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllMorseClaimableAccounts(ctx context.Context) (list []migrationtypes.MorseClaimableAccount)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetMorseClaimableAccount(ctx context.Context, address string) (morseClaimableAccount migrationtypes.MorseClaimableAccount, found bool)
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) HasAnyMorseClaimableAccounts(ctx context.Context) bool
- func (k Keeper) ImportFromMorseAccountState(ctx context.Context, morseAccountState *migrationtypes.MorseAccountState)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) MintClaimedMorseTokens(ctx context.Context, destAddress cosmostypes.AccAddress, ...) error
- func (k Keeper) MorseClaimableAccount(ctx context.Context, req *types.QueryMorseClaimableAccountRequest) (*types.QueryMorseClaimableAccountResponse, error)
- func (k Keeper) MorseClaimableAccountAll(ctx context.Context, req *types.QueryAllMorseClaimableAccountRequest) (*types.QueryAllMorseClaimableAccountResponse, error)
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetMorseClaimableAccount(ctx context.Context, ...)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
Constants ¶
This section is empty.
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, storeService store.KVStoreService, logger log.Logger, authority string, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, sharedKeeper types.SharedKeeper, appKeeper types.ApplicationKeeper, supplierKeeper types.SupplierKeeper, ) Keeper
func (Keeper) GetAllMorseClaimableAccounts ¶
func (k Keeper) GetAllMorseClaimableAccounts(ctx context.Context) (list []migrationtypes.MorseClaimableAccount)
Get all MorseClaimableAccounts in the store - Returns a slice of all accounts
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
func (Keeper) GetMorseClaimableAccount ¶
func (k Keeper) GetMorseClaimableAccount( ctx context.Context, address string, ) (morseClaimableAccount migrationtypes.MorseClaimableAccount, found bool)
Get a MorseClaimableAccount by its index - Returns (account, true) if found - Returns (zero value, false) if not found
func (Keeper) HasAnyMorseClaimableAccounts ¶ added in v0.1.11
Check if there are ANY MorseClaimableAccounts in the store - Returns true if at least one account exists
func (Keeper) ImportFromMorseAccountState ¶
func (k Keeper) ImportFromMorseAccountState( ctx context.Context, morseAccountState *migrationtypes.MorseAccountState, )
Import MorseClaimableAccounts from the given MorseAccountState - Assumes MorseAccountState is already validated DEV_NOTE: All imported accounts are set to unclaimed
func (Keeper) MintClaimedMorseTokens ¶ added in v0.0.14
func (k Keeper) MintClaimedMorseTokens( ctx context.Context, destAddress cosmostypes.AccAddress, coinToMint cosmostypes.Coin, ) error
Mint the given coinToMint to destAddress - Mints to migration module account - Sends minted coins to destAddress
func (Keeper) MorseClaimableAccount ¶
func (k Keeper) MorseClaimableAccount( ctx context.Context, req *types.QueryMorseClaimableAccountRequest, ) (*types.QueryMorseClaimableAccountResponse, error)
MorseClaimableAccount returns a MorseClaimableAccount by its hex-encoded Morse address.
func (Keeper) MorseClaimableAccountAll ¶
func (k Keeper) MorseClaimableAccountAll( ctx context.Context, req *types.QueryAllMorseClaimableAccountRequest, ) (*types.QueryAllMorseClaimableAccountResponse, error)
MorseClaimableAccountAll returns all MorseClaimableAccounts created as a result of MsgImportMorseClaimableAccounts.
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetMorseClaimableAccount ¶
func (k Keeper) SetMorseClaimableAccount(ctx context.Context, morseClaimableAccount migrationtypes.MorseClaimableAccount)
Set a specific MorseClaimableAccount in the store by its index - Overwrites any existing account with the same index
Source Files
¶
- events.go
- keeper.go
- morse_claimable_account.go
- msg_server.go
- msg_server_claim_morse_account.go
- msg_server_claim_morse_application.go
- msg_server_claim_morse_supplier.go
- msg_server_import_morse_claimable_accounts.go
- msg_server_recover_morse_account.go
- msg_update_params.go
- params.go
- query.go
- query_morse_claimable_account.go
- query_params.go