keeper

package
v0.0.0-...-5724848 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetECredentialRecordIDBytes

func GetECredentialRecordIDBytes(id uint64) []byte

GetECredentialRecordIDBytes returns the byte representation of the ID

func GetECredentialRecordIDFromBytes

func GetECredentialRecordIDFromBytes(bz []byte) uint64

GetECredentialRecordIDFromBytes returns ID in uint64 format from a byte array

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.Marshaler,
	storeKey,
	memKey sdk.StoreKey,
	channelKeeper types.ChannelKeeper,
	portKeeper types.PortKeeper,
	scopedKeeper types.ScopedKeeper,
) *Keeper

func (Keeper) AppendECredentialRecord

func (k Keeper) AppendECredentialRecord(
	ctx sdk.Context,
	eCredentialRecord types.ECredentialRecord,
) uint64

AppendECredentialRecord appends a eCredentialRecord in the store with a new id and update the count

func (Keeper) AuthenticateCapability

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

AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function

func (Keeper) BindPort

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

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

func (Keeper) ChanCloseInit

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

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

func (Keeper) ClaimCapability

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

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

func (Keeper) GetAllECredentialRecord

func (k Keeper) GetAllECredentialRecord(ctx sdk.Context) (list []types.ECredentialRecord)

GetAllECredentialRecord returns all eCredentialRecord

func (Keeper) GetECredentialRecord

func (k Keeper) GetECredentialRecord(ctx sdk.Context, id uint64) types.ECredentialRecord

GetECredentialRecord returns a eCredentialRecord from its id

func (Keeper) GetECredentialRecordCount

func (k Keeper) GetECredentialRecordCount(ctx sdk.Context) uint64

GetECredentialRecordCount get the total number of eCredentialRecord

func (Keeper) GetECredentialRecordOwner

func (k Keeper) GetECredentialRecordOwner(ctx sdk.Context, id uint64) string

GetECredentialRecordOwner returns the creator of the eCredentialRecord

func (Keeper) GetPort

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

GetPort returns the portID for the module. Used in ExportGenesis

func (Keeper) HasECredentialRecord

func (k Keeper) HasECredentialRecord(ctx sdk.Context, id uint64) bool

HasECredentialRecord checks if the eCredentialRecord exists in the store

func (Keeper) IsBound

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

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

func (Keeper) Logger

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

func (Keeper) OnAcknowledgementECredentialPacket

func (k Keeper) OnAcknowledgementECredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.ECredentialPacketData, ack channeltypes.Acknowledgement) error

OnAcknowledgementECredentialPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.

func (Keeper) OnRecvECredentialPacket

func (k Keeper) OnRecvECredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.ECredentialPacketData) (packetAck types.ECredentialPacketAck, err error)

OnRecvECredentialPacket processes packet reception

func (Keeper) OnTimeoutECredentialPacket

func (k Keeper) OnTimeoutECredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.ECredentialPacketData) error

OnTimeoutECredentialPacket responds to the case where a packet has not been transmitted because of a timeout

func (Keeper) RemoveECredentialRecord

func (k Keeper) RemoveECredentialRecord(ctx sdk.Context, id uint64)

RemoveECredentialRecord removes a eCredentialRecord from the store

func (Keeper) SetECredentialRecord

func (k Keeper) SetECredentialRecord(ctx sdk.Context, eCredentialRecord types.ECredentialRecord)

SetECredentialRecord set a specific eCredentialRecord in the store

func (Keeper) SetECredentialRecordCount

func (k Keeper) SetECredentialRecordCount(ctx sdk.Context, count uint64)

SetECredentialRecordCount set the total number of eCredentialRecord

func (Keeper) SetPort

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

SetPort sets the portID for the module. Used in InitGenesis

func (Keeper) TransmitECredentialPacket

func (k Keeper) TransmitECredentialPacket(
	ctx sdk.Context,
	packetData types.ECredentialPacketData,
	sourcePort,
	sourceChannel string,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
) error

TransmitECredentialPacket transmits the packet over IBC with the specified source port and source channel

Jump to

Keyboard shortcuts

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