keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 26 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 {
	*types.IBCKeeper
	// 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 types.ScopedKeeper,
	connectionKeeper types.ConnectionKeeper,
	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) AppendEncryptedTx

func (k Keeper) AppendEncryptedTx(
	ctx sdk.Context,
	encryptedTx types.EncryptedTx,
) uint64

AppendEncryptedTx append a specific encryptedTx in the store

func (Keeper) DeleteActivePubKey

func (k Keeper) DeleteActivePubKey(ctx sdk.Context)

DeleteActivePubKey deletes the active public key in the store

func (Keeper) DeleteQueuedPubKey

func (k Keeper) DeleteQueuedPubKey(ctx sdk.Context)

DeleteQueuedPubKey deletes the queued public key in the store

func (Keeper) EncryptedTx

EncryptedTx returns a singe encrypted Tx by index

func (Keeper) EncryptedTxAll

EncryptedTxAll returns the paginated list of all encrypted Txs

func (Keeper) EncryptedTxAllFromHeight

EncryptedTxAllFromHeight returns all the encrypted TXs for a particular height

func (Keeper) GetActivePubKey

func (k Keeper) GetActivePubKey(
	ctx sdk.Context,
) (val types.ActivePubKey, found bool)

GetActivePubKey returns the Active public key

func (Keeper) GetAggregatedKeyShare

func (k Keeper) GetAggregatedKeyShare(
	ctx sdk.Context,
	height uint64,

) (val types.AggregatedKeyShare, found bool)

GetAggregatedKeyShare returns a aggregatedKeyShare from its index

func (Keeper) GetAllAggregatedKeyShare

func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.AggregatedKeyShare)

GetAllAggregatedKeyShare returns all aggregatedKeyShare

func (Keeper) GetAllEncryptedArray

func (k Keeper) GetAllEncryptedArray(ctx sdk.Context) (arr []types.EncryptedTxArray)

GetAllEncryptedArray returns the list of all encrypted txs

func (Keeper) GetAllPepNonce

func (k Keeper) GetAllPepNonce(ctx sdk.Context) (list []types.PepNonce)

GetAllPepNonce returns all pepNonce

func (Keeper) GetEncryptedTx

func (k Keeper) GetEncryptedTx(
	ctx sdk.Context,
	targetHeight uint64,
	index uint64,

) (val types.EncryptedTx, found bool)

GetEncryptedTx returns a encryptedTx from its index

func (Keeper) GetEncryptedTxAllFromHeight

func (k Keeper) GetEncryptedTxAllFromHeight(
	ctx sdk.Context,
	targetHeight uint64,

) types.EncryptedTxArray

GetEncryptedTxAllFromHeight returns all encryptedTx from the height provided

func (Keeper) GetLastExecutedHeight

func (k Keeper) GetLastExecutedHeight(
	ctx sdk.Context,
) string

GetLastExecutedHeight gets the last execution height

func (Keeper) GetLatestHeight

func (k Keeper) GetLatestHeight(
	ctx sdk.Context,
) string

GetLatestHeight gets the last registered fairyring Height

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetPepNonce

func (k Keeper) GetPepNonce(
	ctx sdk.Context,
	address string,

) (val types.PepNonce, found bool)

GetPepNonce returns a pepNonce from its index

func (Keeper) GetQueuedPubKey

func (k Keeper) GetQueuedPubKey(
	ctx sdk.Context,
) (val types.QueuedPubKey, found bool)

GetQueuedPubKey returns the Queued public key

func (Keeper) IncreasePepNonce

func (k Keeper) IncreasePepNonce(
	ctx sdk.Context,
	address string,
) uint64

IncreasePepNonce increase specific pepNonce by 1 and returns the new nonce

func (Keeper) KeyshareChannelID added in v0.4.0

func (k Keeper) KeyshareChannelID(ctx sdk.Context) (res string)

KeyshareChannelID returns the KeyshareChannelID param

func (Keeper) LatestHeight

LatestHeight returns the last registered height

func (Keeper) Logger

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

func (Keeper) MinGasPrice

func (k Keeper) MinGasPrice(ctx sdk.Context) (res sdk.Coin)

func (Keeper) OnAcknowledgementCurrentKeysPacket

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

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

func (Keeper) OnRecvCurrentKeysPacket

func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) (packetAck types.CurrentKeysPacketAck, err error)

OnRecvCurrentKeysPacket processes packet reception

func (Keeper) OnTimeoutCurrentKeysPacket

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

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

func (Keeper) Params

func (Keeper) PepChannelID added in v0.4.0

func (k Keeper) PepChannelID(ctx sdk.Context) (res string)

ChannelID returns the PepChannelID param

func (Keeper) PepNonce

PepNonce returns a single Nonce by address

func (Keeper) PepNonceAll

PepNonceAll returns the list of all Nonce

func (Keeper) PubKey

PubKey returns the lates public keys

func (Keeper) QueryFairyringCurrentKeys

func (k Keeper) QueryFairyringCurrentKeys(ctx sdk.Context) error

func (Keeper) RemoveAggregatedKeyShare

func (k Keeper) RemoveAggregatedKeyShare(
	ctx sdk.Context,
	height uint64,

)

RemoveAggregatedKeyShare removes a aggregatedKeyShare from the store

func (Keeper) RemoveAllEncryptedTxFromHeight

func (k Keeper) RemoveAllEncryptedTxFromHeight(
	ctx sdk.Context,
	targetHeight uint64,

)

RemoveAllEncryptedTxFromHeight removes all encryptedTx from the store for a particular height

func (Keeper) RemoveEncryptedTx

func (k Keeper) RemoveEncryptedTx(
	ctx sdk.Context,
	targetHeight uint64,
	index uint64,
)

RemoveEncryptedTx removes a encryptedTx from the store

func (Keeper) RemovePepNonce

func (k Keeper) RemovePepNonce(
	ctx sdk.Context,
	address string,

)

RemovePepNonce removes a pepNonce from the store

func (Keeper) SetActivePubKey

func (k Keeper) SetActivePubKey(ctx sdk.Context, activePubKey types.ActivePubKey)

SetActivePubKey set a specific public key to active in the store

func (Keeper) SetAggregatedKeyShare

func (k Keeper) SetAggregatedKeyShare(ctx sdk.Context, aggregatedKeyShare types.AggregatedKeyShare)

SetAggregatedKeyShare set a specific aggregatedKeyShare in the store from its index

func (Keeper) SetAllEncryptedTxExpired added in v0.4.0

func (k Keeper) SetAllEncryptedTxExpired(
	ctx sdk.Context,
	height uint64,
)

func (Keeper) SetEncryptedTx

func (k Keeper) SetEncryptedTx(
	ctx sdk.Context,
	height uint64,
	encryptedTxArr types.EncryptedTxArray,
)

SetEncryptedTx add a specific encryptedTx in the store from its index

func (Keeper) SetEncryptedTxProcessedHeight added in v0.4.0

func (k Keeper) SetEncryptedTxProcessedHeight(
	ctx sdk.Context,
	height uint64,
	index uint64,
	processedHeight uint64,
)

func (Keeper) SetLastExecutedHeight

func (k Keeper) SetLastExecutedHeight(
	ctx sdk.Context,
	height string,
)

SetLastExecutedHeight sets the last execution height

func (Keeper) SetLatestHeight

func (k Keeper) SetLatestHeight(
	ctx sdk.Context,
	height string,
)

SetLatestHeight sets the last registered fairyring Height

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetPepNonce

func (k Keeper) SetPepNonce(ctx sdk.Context, pepNonce types.PepNonce)

SetPepNonce set a specific pepNonce in the store from its index

func (Keeper) SetQueuedPubKey

func (k Keeper) SetQueuedPubKey(ctx sdk.Context, queuedPubKey types.QueuedPubKey)

SetQueuedPubKey set a specific public key in the store

func (Keeper) TransmitCurrentKeysPacket

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

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

func (Keeper) TransmitRequestAggrKeysharePacket added in v0.4.0

func (k Keeper) TransmitRequestAggrKeysharePacket(
	ctx sdk.Context,
	packetData kstypes.RequestAggrKeysharePacketData,
	sourcePort,
	sourceChannel string,
	timeoutHeight clienttypes.Height,
	timeoutTimestamp uint64,
) (uint64, error)

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

func (Keeper) TrustedAddresses

func (k Keeper) TrustedAddresses(ctx sdk.Context) (res []string)

TrustedAddresses returns the TrustedAddresses param

func (Keeper) TrustedCounterParties

func (k Keeper) TrustedCounterParties(ctx sdk.Context) (res []*types.TrustedCounterParty)

TrustedCounterParties returns the TrustedCounterParties param

Jump to

Keyboard shortcuts

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