keeper

package
v0.6.29-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

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,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	channelKeeper types.ChannelKeeper,
	portKeeper types.PortKeeper,
	scopedKeeper exported.ScopedKeeper,

	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	vaultKeeper types.VaultKeeper,
) *Keeper

func (Keeper) AliasAvailable added in v0.6.10

func (Keeper) AuthenticateCapability added in v0.6.28

func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool

AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function

func (Keeper) BindPort added in v0.6.28

func (k Keeper) BindPort(ctx sdk.Context, portID string) error

BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function

func (Keeper) ChanCloseInit added in v0.6.28

func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error

ChanCloseInit defines a wrapper function for the channel Keeper's function.

func (Keeper) CheckAlsoKnownAs added in v0.6.26

func (k Keeper) CheckAlsoKnownAs(ctx sdk.Context, alias string) error

CheckAlsoKnownAs checks if an alias is already used

func (Keeper) ClaimCapability added in v0.6.28

func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it

func (Keeper) CreateAccountForIdentity added in v0.6.26

func (k Keeper) CreateAccountForIdentity(ctx sdk.Context, did string, accName string, coinType crypto.CoinType) (*identity.DIDDocument, *vault.AccountInfo, error)

CreateAccountForIdentity creates a new account for the given identity

func (Keeper) CreateWallet added in v0.6.27

func (Keeper) DIDDocument added in v0.6.28

func (Keeper) DIDDocumentAll added in v0.6.28

func (Keeper) DidByAlsoKnownAs added in v0.4.0

func (Keeper) DidByOwner added in v0.6.16

func (Keeper) GetAllDIDDocument added in v0.6.28

func (k Keeper) GetAllDIDDocument(ctx sdk.Context) (list []types.DIDDocument)

GetAllDIDDocument returns all dIDDocument

func (Keeper) GetDIDDocument added in v0.6.28

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

) (val types.DIDDocument, found bool)

GetDIDDocument returns a dIDDocument from its index

func (Keeper) GetIdentityByPrimaryAlias added in v0.6.26

func (k Keeper) GetIdentityByPrimaryAlias(
	ctx sdk.Context,
	alias string,
) (val types.DIDDocument, found bool)

GetDidDocumentByAlsoKnownAs returns a didDocument from its index

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetPort added in v0.6.28

func (k Keeper) GetPort(ctx sdk.Context) string

GetPort returns the portID for the IBC app module. Used in ExportGenesis

func (Keeper) GetWallet added in v0.6.27

GetWallet returns an individual account for the given identity by resolving all capability invocations

func (Keeper) IsBound added in v0.6.28

func (k Keeper) IsBound(ctx sdk.Context, portID string) bool

IsBound checks if the IBC app module is already bound to the desired port

func (Keeper) ListAccountsForIdentity added in v0.6.26

func (k Keeper) ListAccountsForIdentity(ctx sdk.Context, did string) (*identity.DIDDocument, []*vault.AccountInfo, error)

ListAccountsForIdentity lists all accounts for the given identity by resolving all capability invocations

func (Keeper) ListWallets added in v0.6.27

ListWalllets lists all accounts for the given identity by resolving all capability invocations

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RegisterIdentity added in v0.6.26

RegisterIdentity registers a new identity with the provided Identity and Verification Relationships. Fails if not at least one Authentication relationship is provided.

func (Keeper) RemoveDIDDocument added in v0.6.28

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

)

RemoveDIDDocument removes a dIDDocument from the store

func (Keeper) SetDIDDocument added in v0.6.28

func (k Keeper) SetDIDDocument(ctx sdk.Context, dIDDocument types.DIDDocument)

SetDIDDocument set a specific dIDDocument 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) SetPort added in v0.6.28

func (k Keeper) SetPort(ctx sdk.Context, portID string)

SetPort sets the portID for the IBC app module. Used in InitGenesis

func (Keeper) SignAndBroadcastCosmosTx added in v0.6.29

func (k Keeper) SignAndBroadcastCosmosTx(account vault.Account, msgs ...sdk.Msg)

SignAndBroadcastCosmosTx is a method of the `Keeper` struct and is used to broadcast a transaction to the blockchain. It takes a context, a `vaulttypes.Account` and a `sdk.Msg` as input and returns nothing. The function first unwraps the context and then signs the message using the `SignCosmosTx`

func (Keeper) SignWallet added in v0.6.27

SignWallet signs a message with the given account

func (Keeper) SignWithIdentity added in v0.6.26

func (k Keeper) SignWithIdentity(ctx sdk.Context, primaryDid string, accDid string, message []byte) (*identity.DIDDocument, []byte, error)

SignWithIdentity signs the given message with the given identity and an account did

func (Keeper) VerifyWallet added in v0.6.27

VerifyWallet verifies a signature with the given account

func (Keeper) VerifyWithIdentity added in v0.6.26

func (k Keeper) VerifyWithIdentity(ctx sdk.Context, primaryDid string, accDid string, message []byte, sig []byte) (*identity.DIDDocument, bool, *vault.AccountInfo, error)

VerifyWithIdentity signs the given message with the given identity and an account did

Jump to

Keyboard shortcuts

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