keeper

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 39 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,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,
	ibcKeeperFn func() *ibckeeper.Keeper,
	scopedKeeper exported.ScopedKeeper,

	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	contractKeeper types.ContractKeeper,
	wasmKeeper types.WasmKeeper,
) Keeper

func (Keeper) AppendContractToEntry added in v0.9.0

func (k Keeper) AppendContractToEntry(
	ctx context.Context,
	contract types.RegisteredContract,
)

AppendContractToEntry appends a new contract detail to an already existing contract entry

func (Keeper) AppendEncryptedTx

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

AppendEncryptedTx append a specific encryptedTx in the store

func (Keeper) AppendTxToEntry added in v0.6.0

func (k Keeper) AppendTxToEntry(
	ctx context.Context,
	identity string,
	encTx types.GeneralEncryptedTx,
) uint64

func (*Keeper) AuthenticateCapability added in v0.7.0

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.7.0

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.7.0

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 added in v0.7.0

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) DecryptData added in v0.9.0

func (Keeper) DeleteActivePubkey added in v0.10.0

func (k Keeper) DeleteActivePubkey(ctx context.Context)

DeleteActivePubkey deletes the active public key in the store

func (Keeper) DeleteQueuedPubkey added in v0.10.0

func (k Keeper) DeleteQueuedPubkey(ctx context.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) ExecuteContract added in v0.9.0

func (k Keeper) ExecuteContract(ctx sdk.Context, contractAddr string, msg types.ExecuteContractMsg)

func (Keeper) GeneralIdentity added in v0.10.0

func (Keeper) GeneralIdentityAll added in v0.10.0

func (Keeper) GetActivePubkey added in v0.10.0

func (k Keeper) GetActivePubkey(
	ctx context.Context,
) (val commontypes.ActivePublicKey, found bool)

GetActivePubkey returns the Active public key

func (Keeper) GetAllContractEntries added in v0.9.0

func (k Keeper) GetAllContractEntries(ctx context.Context) (list []types.RegisteredContract)

GetAllContractEntries returns all contracts for all identities

func (Keeper) GetAllDecryptionKeys added in v0.10.0

func (k Keeper) GetAllDecryptionKeys(ctx context.Context) (list []types.DecryptionKey)

GetAllDecryptionKeys returns all decryption keys

func (Keeper) GetAllEncryptedArray

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

GetAllEncryptedArray returns the list of all encrypted txs

func (Keeper) GetAllGenEncTxEntry added in v0.6.0

func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityExecutionEntry)

GetAllGenEncTxEntry returns all GenEncTxQueue entries

func (Keeper) GetAllGenEncTxExecutionQueueEntry added in v0.6.0

func (k Keeper) GetAllGenEncTxExecutionQueueEntry(
	ctx context.Context,
) (list []types.IdentityExecutionEntry)

GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries

func (Keeper) GetAllGenEncTxReqQueueEntry added in v0.6.0

func (k Keeper) GetAllGenEncTxReqQueueEntry(
	ctx context.Context,
) (list []commontypes.RequestDecryptionKey)

GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries

func (Keeper) GetAllGenEncTxSignalQueueEntry added in v0.6.0

func (k Keeper) GetAllGenEncTxSignalQueueEntry(
	ctx context.Context,
) (list []commontypes.GetDecryptionKey)

GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries

func (Keeper) GetAllPepNonce

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

GetAllPepNonce returns all pepNonce

func (Keeper) GetAllPrivateReqQueueEntry added in v0.9.0

func (k Keeper) GetAllPrivateReqQueueEntry(
	ctx context.Context) (list []commontypes.RequestPrivateDecryptionKey)

GetAllPrivateReqQueueEntry returns all PrivateQueue entries

func (Keeper) GetAllPrivateRequest added in v0.9.0

func (k Keeper) GetAllPrivateRequest(ctx context.Context) (list []types.PrivateRequest)

GetAllRequestId returns all requestId

func (Keeper) GetAllPrivateSignalQueueEntry added in v0.9.0

func (k Keeper) GetAllPrivateSignalQueueEntry(
	ctx context.Context,
) (list []commontypes.GetPrivateDecryptionKey)

GetAllPrivateSignalQueueEntry returns all GenEncTxQueue entries

func (Keeper) GetAllRequestId added in v0.8.3

func (k Keeper) GetAllRequestId(ctx context.Context) (list []types.RequestId)

GetAllRequestId returns all requestId

func (Keeper) GetAuthority added in v0.7.0

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetContractEntriesByID added in v0.9.0

func (k Keeper) GetContractEntriesByID(
	ctx context.Context,
	identity string,
) (val types.RegisteredContract, found bool)

GetContractEntriesByID returns a the list of contracts for an identity

func (Keeper) GetContractEntry added in v0.9.0

func (k Keeper) GetContractEntry(
	ctx context.Context,
	reqID string,
	contractAddr string,
) (val types.ContractDetails, found bool)

GetContractEntry fetches the details of a contract by identity and contract address

func (Keeper) GetDecryptionKey added in v0.10.0

func (k Keeper) GetDecryptionKey(
	ctx context.Context,
	height uint64,

) (val types.DecryptionKey, found bool)

GetDecryptionKey returns a decryption key from its index

func (Keeper) GetEncryptedTx

func (k Keeper) GetEncryptedTx(
	ctx context.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 context.Context,
	targetHeight uint64,

) types.EncryptedTxArray

GetEncryptedTxAllFromHeight returns all encryptedTx from the height provided

func (Keeper) GetEntry added in v0.6.0

func (k Keeper) GetEntry(
	ctx context.Context,
	identity string,
) (val types.IdentityExecutionEntry, found bool)

GetEntry returns a queue entry by its identity

func (Keeper) GetExecutionQueueEntry added in v0.6.0

func (k Keeper) GetExecutionQueueEntry(
	ctx context.Context,
	identity string,
) (val types.IdentityExecutionEntry, found bool)

GetQueueEntry returns a queue entry by its identity

func (Keeper) GetLastExecutedHeight

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

GetLastExecutedHeight gets the last execution height

func (Keeper) GetLatestHeight

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

GetLatestHeight gets the last registered fairyring Height

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetPepNonce

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

) (val types.PepNonce, found bool)

GetPepNonce returns a pepNonce from its index

func (*Keeper) GetPort added in v0.7.0

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

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

func (Keeper) GetPrivateRequest added in v0.9.0

func (k Keeper) GetPrivateRequest(
	ctx context.Context,
	reqID string,
) (val types.PrivateRequest, found bool)

GetPrivateRequest returns a requestId from its index

func (Keeper) GetPrivateRequestQueueEntry added in v0.9.0

func (k Keeper) GetPrivateRequestQueueEntry(
	ctx context.Context,
	identity string,
) (val commontypes.RequestPrivateDecryptionKey, found bool)

GetPrivateRequestQueueEntry returns a queue entry by its identity

func (Keeper) GetPrivateSignalQueueEntry added in v0.9.0

func (k Keeper) GetPrivateSignalQueueEntry(
	ctx context.Context,
	identity string,
) (val commontypes.GetPrivateDecryptionKey, found bool)

GetQueueEntry returns a queue entry by its identity

func (Keeper) GetPubkeyPoint added in v0.10.0

func (k Keeper) GetPubkeyPoint(
	pubkey string,
	suite pairing.Suite,
) (kyber.Point, error)

func (Keeper) GetQueuedPubkey added in v0.10.0

func (k Keeper) GetQueuedPubkey(
	ctx context.Context,
) (val commontypes.QueuedPublicKey, found bool)

GetQueuedPubkey returns the Queued public key

func (Keeper) GetRequestCount added in v0.6.0

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

GetRequestCount returns the request count

func (Keeper) GetRequestId added in v0.8.3

func (k Keeper) GetRequestId(
	ctx context.Context,
	creator string,
	reqID string,
) (val types.RequestId, found bool)

GetRequestId returns a requestId from its index

func (Keeper) GetRequestQueueEntry added in v0.6.0

func (k Keeper) GetRequestQueueEntry(
	ctx context.Context,
	identity string,
) (val commontypes.RequestDecryptionKey, found bool)

GetRequestQueueEntry returns a queue entry by its identity

func (Keeper) GetSKPoint added in v0.9.0

func (k Keeper) GetSKPoint(
	key string,
	suite pairing.Suite) (kyber.Point, error)

func (Keeper) GetSignalQueueEntry added in v0.6.0

func (k Keeper) GetSignalQueueEntry(
	ctx context.Context,
	identity string,
) (val commontypes.GetDecryptionKey, found bool)

GetQueueEntry returns a queue entry by its identity

func (Keeper) IncreasePepNonce

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

IncreasePepNonce increase specific pepNonce by 1 and returns the new nonce

func (Keeper) IsSourceChain added in v0.6.0

func (k Keeper) IsSourceChain(ctx context.Context) (res bool)

func (Keeper) KeyshareChannelID added in v0.4.0

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

KeyshareChannelID returns the KeyshareChannelID param

func (Keeper) LatestHeight

LatestHeight returns the last registered height

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) MinGasPrice

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

func (Keeper) OnAcknowledgementCurrentKeysPacket

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

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

func (Keeper) OnAcknowledgementGetDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnAcknowledgementGetDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data kstypes.GetDecryptionKeyPacketData,
	ack channeltypes.Acknowledgement,
) error

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

func (Keeper) OnAcknowledgementGetPrivateDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnAcknowledgementGetPrivateDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data kstypes.GetPrivateDecryptionKeyPacketData,
	ack channeltypes.Acknowledgement,
) error

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

func (Keeper) OnAcknowledgementRequestDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnAcknowledgementRequestDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data kstypes.RequestDecryptionKeyPacketData,
	ack channeltypes.Acknowledgement,
) error

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

func (Keeper) OnAcknowledgementRequestPrivateDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnAcknowledgementRequestPrivateDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data kstypes.RequestPrivateDecryptionKeyPacketData,
	ack channeltypes.Acknowledgement,
) error

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

func (Keeper) OnRecvDecryptionKeyDataPacket added in v0.10.0

func (k Keeper) OnRecvDecryptionKeyDataPacket(
	ctx context.Context,
	packet channeltypes.Packet,
	data kstypes.DecryptionKeyDataPacketData,
) (packetAck kstypes.DecryptionKeyPacketAck, err error)

OnRecvDecryptionKeyDataPacket processes packet reception

func (Keeper) OnRecvPrivDecryptionKeyDataPacket added in v0.10.0

func (k Keeper) OnRecvPrivDecryptionKeyDataPacket(
	ctx context.Context,
	packet channeltypes.Packet,
	data kstypes.PrivateDecryptionKeyDataPacketData,
) (packetAck kstypes.PrivateDecryptionKeyPacketAck, err error)

OnRecvEncKeyshareDataPacket processes packet reception

func (Keeper) OnTimeoutCurrentKeysPacket

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

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

func (Keeper) Params

func (Keeper) PepNonce

PepNonce returns a single Nonce by address

func (Keeper) PepNonceAll

PepNonceAll returns the list of all Nonce

func (Keeper) PrivateIdentity added in v0.10.0

func (Keeper) Pubkey added in v0.10.0

Pubkey returns the lates public keys

func (Keeper) QueryFairyringCurrentKeys

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

func (Keeper) RemoveAllEncryptedTxFromHeight

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

)

RemoveAllEncryptedTxFromHeight removes all encryptedTx from the store for a particular height

func (Keeper) RemoveContractEntry added in v0.9.0

func (k Keeper) RemoveContractEntry(ctx context.Context, identity string)

RemoveContractEntry removes a specific contract entry in the store by identity

func (Keeper) RemoveDecryptionKey added in v0.10.0

func (k Keeper) RemoveDecryptionKey(
	ctx context.Context,
	height uint64,

)

RemoveDecryptionKey removes a decryption key from the store

func (Keeper) RemoveEntry added in v0.6.0

func (k Keeper) RemoveEntry(
	ctx context.Context,
	identity string,
)

RemoveEntry removes an entry from the store

func (Keeper) RemoveExecutionQueueEntry added in v0.6.0

func (k Keeper) RemoveExecutionQueueEntry(
	ctx context.Context,
	identity string,
)

RemoveQueueEntry removes an entry from the store

func (Keeper) RemovePepNonce

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

)

RemovePepNonce removes a pepNonce from the store

func (Keeper) RemovePrivateReqQueueEntry added in v0.9.0

func (k Keeper) RemovePrivateReqQueueEntry(
	ctx context.Context,
	identity string,
)

RemovePrivateReqQueueEntry removes an entry from the store

func (Keeper) RemovePrivateSignalQueueEntry added in v0.9.0

func (k Keeper) RemovePrivateSignalQueueEntry(
	ctx context.Context,
	identity string,
)

RemovePrivateSignalQueueEntry removes an entry from the store

func (Keeper) RemoveReqQueueEntry added in v0.6.0

func (k Keeper) RemoveReqQueueEntry(
	ctx context.Context,
	identity string,
)

RemoveQueueEntry removes an entry from the store

func (Keeper) RemoveSignalQueueEntry added in v0.6.0

func (k Keeper) RemoveSignalQueueEntry(
	ctx context.Context,
	identity string,
)

RemoveQueueEntry removes an entry from the store

func (*Keeper) ScopedKeeper added in v0.7.0

func (k *Keeper) ScopedKeeper() exported.ScopedKeeper

ScopedKeeper returns the ScopedKeeper

func (Keeper) SetActivePubkey added in v0.10.0

func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey commontypes.ActivePublicKey)

SetActivePubkey set a specific public key to active in the store

func (Keeper) SetAllEncryptedTxExpired added in v0.4.0

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

func (Keeper) SetContractEntry added in v0.9.0

func (k Keeper) SetContractEntry(ctx context.Context, contract types.RegisteredContract)

SetContractEntry set a specific contract entry in the store by identity

func (Keeper) SetContractKeeper added in v0.9.0

func (k Keeper) SetContractKeeper(ck types.ContractKeeper)

func (Keeper) SetDecryptionKey added in v0.10.0

func (k Keeper) SetDecryptionKey(ctx context.Context, decryptionKey types.DecryptionKey)

SetDecryptionKey set a specific decryption key in the store from its index

func (Keeper) SetEncryptedTx

func (k Keeper) SetEncryptedTx(
	ctx context.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 context.Context,
	height uint64,
	index uint64,
	processedHeight uint64,
)

func (Keeper) SetEntry added in v0.6.0

func (k Keeper) SetEntry(
	ctx context.Context,
	val types.IdentityExecutionEntry,
)

SetEntry sets a queue entry by its identity

func (Keeper) SetExecutionQueueEntry added in v0.6.0

func (k Keeper) SetExecutionQueueEntry(
	ctx context.Context,
	val types.IdentityExecutionEntry,
)

SetQueueEntry sets a queue entry by its identity

func (Keeper) SetLastExecutedHeight

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

SetLastExecutedHeight sets the last execution height

func (Keeper) SetLatestHeight

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

SetLatestHeight sets the last registered fairyring Height

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetPepNonce

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

SetPepNonce set a specific pepNonce in the store from its index

func (*Keeper) SetPort added in v0.7.0

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

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

func (Keeper) SetPrivateReqQueueEntry added in v0.9.0

func (k Keeper) SetPrivateReqQueueEntry(
	ctx context.Context,
	val commontypes.RequestPrivateDecryptionKey,
)

SetPrivateReqQueueEntry sets a queue entry by its identity

func (Keeper) SetPrivateRequest added in v0.9.0

func (k Keeper) SetPrivateRequest(ctx context.Context, request types.PrivateRequest)

SetPrivateRequest set a specific requestId in the store from its index

func (Keeper) SetPrivateSignalQueueEntry added in v0.9.0

func (k Keeper) SetPrivateSignalQueueEntry(
	ctx context.Context,
	val commontypes.GetPrivateDecryptionKey,
)

SetPrivateSignalQueueEntry sets a queue entry by its identity

func (Keeper) SetQueuedPubkey added in v0.10.0

func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey commontypes.QueuedPublicKey)

SetQueuedPubkey set a specific public key in the store

func (Keeper) SetReqQueueEntry added in v0.6.0

func (k Keeper) SetReqQueueEntry(
	ctx context.Context,
	val commontypes.RequestDecryptionKey,
)

SetQueueEntry sets a queue entry by its identity

func (Keeper) SetRequestCount added in v0.6.0

func (k Keeper) SetRequestCount(ctx sdk.Context, requestNumber uint64)

SetRequestCount sets RequestCount

func (Keeper) SetRequestId added in v0.8.3

func (k Keeper) SetRequestId(ctx context.Context, requestId types.RequestId)

SetRequestId set a specific requestId in the store from its index

func (Keeper) SetSignalQueueEntry added in v0.6.0

func (k Keeper) SetSignalQueueEntry(
	ctx context.Context,
	val commontypes.GetDecryptionKey,
)

SetQueueEntry sets a queue entry by its identity

func (Keeper) SetWasmKeeper added in v0.9.0

func (k Keeper) SetWasmKeeper(wk types.WasmKeeper)

func (*Keeper) ShouldBound added in v0.7.0

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

ShouldBound checks if the IBC app module can be bound to the desired port

func (Keeper) TransmitCurrentKeysPacket

func (k Keeper) TransmitCurrentKeysPacket(
	ctx sdk.Context,
	packetData kstypes.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) TransmitGetDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) TransmitGetPrivateDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) TransmitRequestDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) TransmitRequestPrivateDecryptionKey added in v0.10.0

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

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

func (Keeper) TrustedAddresses

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

TrustedAddresses returns the TrustedAddresses param

func (Keeper) TrustedCounterParties

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

TrustedCounterParties returns the TrustedCounterParties param

type Migrator added in v0.8.0

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator added in v0.8.0

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v0.8.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

func (Migrator) Migrate2to3 added in v0.9.0

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 migrates from version 2 to 3.

Jump to

Keyboard shortcuts

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