Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendContractToEntry(ctx context.Context, contract types.RegisteredContract)
- func (k Keeper) AppendEncryptedTx(ctx context.Context, encryptedTx types.EncryptedTx) uint64
- func (k Keeper) AppendTxToEntry(ctx context.Context, identity string, encTx types.GeneralEncryptedTx) uint64
- func (k *Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k *Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k *Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) DecryptData(goCtx context.Context, req *types.QueryDecryptDataRequest) (*types.QueryDecryptDataResponse, error)
- func (k Keeper) DeleteActivePubkey(ctx context.Context)
- func (k Keeper) DeleteQueuedPubkey(ctx context.Context)
- func (k Keeper) EncryptedTx(c context.Context, req *types.QueryEncryptedTxRequest) (*types.QueryEncryptedTxResponse, error)
- func (k Keeper) EncryptedTxAll(c context.Context, req *types.QueryEncryptedTxAllRequest) (*types.QueryEncryptedTxAllResponse, error)
- func (k Keeper) EncryptedTxAllFromHeight(c context.Context, req *types.QueryEncryptedTxAllFromHeightRequest) (*types.QueryEncryptedTxAllFromHeightResponse, error)
- func (k Keeper) ExecuteContract(ctx sdk.Context, contractAddr string, msg types.ExecuteContractMsg)
- func (k Keeper) GeneralIdentity(c context.Context, req *types.QueryGeneralIdentityRequest) (*types.QueryGeneralIdentityResponse, error)
- func (k Keeper) GeneralIdentityAll(c context.Context, req *types.QueryGeneralIdentityAllRequest) (*types.QueryGeneralIdentityAllResponse, error)
- func (k Keeper) GetActivePubkey(ctx context.Context) (val commontypes.ActivePublicKey, found bool)
- func (k Keeper) GetAllContractEntries(ctx context.Context) (list []types.RegisteredContract)
- func (k Keeper) GetAllDecryptionKeys(ctx context.Context) (list []types.DecryptionKey)
- func (k Keeper) GetAllEncryptedArray(ctx context.Context) (arr []types.EncryptedTxArray)
- func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityExecutionEntry)
- func (k Keeper) GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []types.IdentityExecutionEntry)
- func (k Keeper) GetAllGenEncTxReqQueueEntry(ctx context.Context) (list []commontypes.RequestDecryptionKey)
- func (k Keeper) GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []commontypes.GetDecryptionKey)
- func (k Keeper) GetAllPepNonce(ctx context.Context) (list []types.PepNonce)
- func (k Keeper) GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestPrivateDecryptionKey)
- func (k Keeper) GetAllPrivateRequest(ctx context.Context) (list []types.PrivateRequest)
- func (k Keeper) GetAllPrivateSignalQueueEntry(ctx context.Context) (list []commontypes.GetPrivateDecryptionKey)
- func (k Keeper) GetAllRequestId(ctx context.Context) (list []types.RequestId)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetContractEntriesByID(ctx context.Context, identity string) (val types.RegisteredContract, found bool)
- func (k Keeper) GetContractEntry(ctx context.Context, reqID string, contractAddr string) (val types.ContractDetails, found bool)
- func (k Keeper) GetDecryptionKey(ctx context.Context, height uint64) (val types.DecryptionKey, found bool)
- func (k Keeper) GetEncryptedTx(ctx context.Context, targetHeight uint64, index uint64) (val types.EncryptedTx, found bool)
- func (k Keeper) GetEncryptedTxAllFromHeight(ctx context.Context, targetHeight uint64) types.EncryptedTxArray
- func (k Keeper) GetEntry(ctx context.Context, identity string) (val types.IdentityExecutionEntry, found bool)
- func (k Keeper) GetExecutionQueueEntry(ctx context.Context, identity string) (val types.IdentityExecutionEntry, found bool)
- func (k Keeper) GetLastExecutedHeight(ctx context.Context) string
- func (k Keeper) GetLatestHeight(ctx context.Context) string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetPepNonce(ctx context.Context, address string) (val types.PepNonce, found bool)
- func (k *Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetPrivateRequest(ctx context.Context, reqID string) (val types.PrivateRequest, found bool)
- func (k Keeper) GetPrivateRequestQueueEntry(ctx context.Context, identity string) (val commontypes.RequestPrivateDecryptionKey, found bool)
- func (k Keeper) GetPrivateSignalQueueEntry(ctx context.Context, identity string) (val commontypes.GetPrivateDecryptionKey, found bool)
- func (k Keeper) GetPubkeyPoint(pubkey string, suite pairing.Suite) (kyber.Point, error)
- func (k Keeper) GetQueuedPubkey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool)
- func (k Keeper) GetRequestCount(ctx sdk.Context) string
- func (k Keeper) GetRequestId(ctx context.Context, creator string, reqID string) (val types.RequestId, found bool)
- func (k Keeper) GetRequestQueueEntry(ctx context.Context, identity string) (val commontypes.RequestDecryptionKey, found bool)
- func (k Keeper) GetSKPoint(key string, suite pairing.Suite) (kyber.Point, error)
- func (k Keeper) GetSignalQueueEntry(ctx context.Context, identity string) (val commontypes.GetDecryptionKey, found bool)
- func (k Keeper) IncreasePepNonce(ctx context.Context, address string) uint64
- func (k Keeper) IsSourceChain(ctx context.Context) (res bool)
- func (k Keeper) KeyshareChannelID(ctx context.Context) (res string)
- func (k Keeper) LatestHeight(goCtx context.Context, req *types.QueryLatestHeightRequest) (*types.QueryLatestHeightResponse, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) MinGasPrice(ctx context.Context) (res sdk.Coin)
- func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnAcknowledgementGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnAcknowledgementGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnAcknowledgementRequestDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnAcknowledgementRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnRecvDecryptionKeyDataPacket(ctx context.Context, packet channeltypes.Packet, ...) (packetAck kstypes.DecryptionKeyPacketAck, err error)
- func (k Keeper) OnRecvPrivDecryptionKeyDataPacket(ctx context.Context, packet channeltypes.Packet, ...) (packetAck kstypes.PrivateDecryptionKeyPacketAck, err error)
- func (k Keeper) OnTimeoutCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PepNonce(c context.Context, req *types.QueryPepNonceRequest) (*types.QueryPepNonceResponse, error)
- func (k Keeper) PepNonceAll(c context.Context, req *types.QueryPepNonceAllRequest) (*types.QueryPepNonceAllResponse, error)
- func (k Keeper) PrivateIdentity(goCtx context.Context, req *types.QueryPrivateIdentityRequest) (*types.QueryPrivateIdentityResponse, error)
- func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error)
- func (k Keeper) QueryFairyringCurrentKeys(ctx sdk.Context) error
- func (k Keeper) RemoveAllEncryptedTxFromHeight(ctx context.Context, targetHeight uint64)
- func (k Keeper) RemoveContractEntry(ctx context.Context, identity string)
- func (k Keeper) RemoveDecryptionKey(ctx context.Context, height uint64)
- func (k Keeper) RemoveEntry(ctx context.Context, identity string)
- func (k Keeper) RemoveExecutionQueueEntry(ctx context.Context, identity string)
- func (k Keeper) RemovePepNonce(ctx context.Context, address string)
- func (k Keeper) RemovePrivateReqQueueEntry(ctx context.Context, identity string)
- func (k Keeper) RemovePrivateSignalQueueEntry(ctx context.Context, identity string)
- func (k Keeper) RemoveReqQueueEntry(ctx context.Context, identity string)
- func (k Keeper) RemoveSignalQueueEntry(ctx context.Context, identity string)
- func (k *Keeper) ScopedKeeper() exported.ScopedKeeper
- func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey commontypes.ActivePublicKey)
- func (k Keeper) SetAllEncryptedTxExpired(ctx context.Context, height uint64)
- func (k Keeper) SetContractEntry(ctx context.Context, contract types.RegisteredContract)
- func (k Keeper) SetContractKeeper(ck types.ContractKeeper)
- func (k Keeper) SetDecryptionKey(ctx context.Context, decryptionKey types.DecryptionKey)
- func (k Keeper) SetEncryptedTx(ctx context.Context, height uint64, encryptedTxArr types.EncryptedTxArray)
- func (k Keeper) SetEncryptedTxProcessedHeight(ctx context.Context, height uint64, index uint64, processedHeight uint64)
- func (k Keeper) SetEntry(ctx context.Context, val types.IdentityExecutionEntry)
- func (k Keeper) SetExecutionQueueEntry(ctx context.Context, val types.IdentityExecutionEntry)
- func (k Keeper) SetLastExecutedHeight(ctx context.Context, height string)
- func (k Keeper) SetLatestHeight(ctx context.Context, height string)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetPepNonce(ctx context.Context, pepNonce types.PepNonce)
- func (k *Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetPrivateReqQueueEntry(ctx context.Context, val commontypes.RequestPrivateDecryptionKey)
- func (k Keeper) SetPrivateRequest(ctx context.Context, request types.PrivateRequest)
- func (k Keeper) SetPrivateSignalQueueEntry(ctx context.Context, val commontypes.GetPrivateDecryptionKey)
- func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey commontypes.QueuedPublicKey)
- func (k Keeper) SetReqQueueEntry(ctx context.Context, val commontypes.RequestDecryptionKey)
- func (k Keeper) SetRequestCount(ctx sdk.Context, requestNumber uint64)
- func (k Keeper) SetRequestId(ctx context.Context, requestId types.RequestId)
- func (k Keeper) SetSignalQueueEntry(ctx context.Context, val commontypes.GetDecryptionKey)
- func (k Keeper) SetWasmKeeper(wk types.WasmKeeper)
- func (k *Keeper) ShouldBound(ctx sdk.Context, portID string) bool
- func (k Keeper) TransmitCurrentKeysPacket(ctx sdk.Context, packetData kstypes.CurrentKeysPacketData, ...) error
- func (k Keeper) TransmitGetDecryptionKeyPacket(ctx sdk.Context, packetData kstypes.GetDecryptionKeyPacketData, ...) (uint64, error)
- func (k Keeper) TransmitGetPrivateDecryptionKeyPacket(ctx sdk.Context, packetData kstypes.GetPrivateDecryptionKeyPacketData, ...) (uint64, error)
- func (k Keeper) TransmitRequestDecryptionKeyPacket(ctx sdk.Context, packetData kstypes.RequestDecryptionKeyPacketData, ...) (uint64, error)
- func (k Keeper) TransmitRequestPrivateDecryptionKey(ctx sdk.Context, packetData kstypes.RequestPrivateDecryptionKeyPacketData, ...) (uint64, error)
- func (k Keeper) TrustedAddresses(ctx context.Context) (res []string)
- func (k Keeper) TrustedCounterParties(ctx context.Context) (res []*types.TrustedCounterParty)
- type Migrator
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, 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 ¶
AppendEncryptedTx append a specific encryptedTx in the store
func (Keeper) AppendTxToEntry ¶ added in v0.6.0
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
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
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 (k Keeper) DecryptData(goCtx context.Context, req *types.QueryDecryptDataRequest) (*types.QueryDecryptDataResponse, error)
func (Keeper) DeleteActivePubkey ¶ added in v0.10.0
DeleteActivePubkey deletes the active public key in the store
func (Keeper) DeleteQueuedPubkey ¶ added in v0.10.0
DeleteQueuedPubkey deletes the queued public key in the store
func (Keeper) EncryptedTx ¶
func (k Keeper) EncryptedTx( c context.Context, req *types.QueryEncryptedTxRequest, ) (*types.QueryEncryptedTxResponse, error)
EncryptedTx returns a singe encrypted Tx by index
func (Keeper) EncryptedTxAll ¶
func (k Keeper) EncryptedTxAll( c context.Context, req *types.QueryEncryptedTxAllRequest, ) (*types.QueryEncryptedTxAllResponse, error)
EncryptedTxAll returns the paginated list of all encrypted Txs
func (Keeper) EncryptedTxAllFromHeight ¶
func (k Keeper) EncryptedTxAllFromHeight( c context.Context, req *types.QueryEncryptedTxAllFromHeightRequest, ) (*types.QueryEncryptedTxAllFromHeightResponse, error)
EncryptedTxAllFromHeight returns all the encrypted TXs for a particular height
func (Keeper) ExecuteContract ¶ added in v0.9.0
func (Keeper) GeneralIdentity ¶ added in v0.10.0
func (k Keeper) GeneralIdentity( c context.Context, req *types.QueryGeneralIdentityRequest, ) (*types.QueryGeneralIdentityResponse, error)
func (Keeper) GeneralIdentityAll ¶ added in v0.10.0
func (k Keeper) GeneralIdentityAll( c context.Context, req *types.QueryGeneralIdentityAllRequest, ) (*types.QueryGeneralIdentityAllResponse, error)
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 ¶
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
GetAllRequestId returns all requestId
func (Keeper) GetAuthority ¶ added in v0.7.0
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 ¶
GetLastExecutedHeight gets the last execution height
func (Keeper) GetLatestHeight ¶
GetLatestHeight gets the last registered fairyring Height
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
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 (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
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 (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 ¶
IncreasePepNonce increase specific pepNonce by 1 and returns the new nonce
func (Keeper) IsSourceChain ¶ added in v0.6.0
func (Keeper) KeyshareChannelID ¶ added in v0.4.0
KeyshareChannelID returns the KeyshareChannelID param
func (Keeper) LatestHeight ¶
func (k Keeper) LatestHeight(goCtx context.Context, req *types.QueryLatestHeightRequest) (*types.QueryLatestHeightResponse, error)
LatestHeight returns the last registered height
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 (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PepNonce ¶
func (k Keeper) PepNonce( c context.Context, req *types.QueryPepNonceRequest, ) (*types.QueryPepNonceResponse, error)
PepNonce returns a single Nonce by address
func (Keeper) PepNonceAll ¶
func (k Keeper) PepNonceAll( c context.Context, req *types.QueryPepNonceAllRequest, ) (*types.QueryPepNonceAllResponse, error)
PepNonceAll returns the list of all Nonce
func (Keeper) PrivateIdentity ¶ added in v0.10.0
func (k Keeper) PrivateIdentity( goCtx context.Context, req *types.QueryPrivateIdentityRequest, ) (*types.QueryPrivateIdentityResponse, error)
func (Keeper) Pubkey ¶ added in v0.10.0
func (k Keeper) Pubkey( goCtx context.Context, req *types.QueryPubkeyRequest, ) (*types.QueryPubkeyResponse, error)
Pubkey returns the lates public keys
func (Keeper) QueryFairyringCurrentKeys ¶
func (Keeper) RemoveAllEncryptedTxFromHeight ¶
RemoveAllEncryptedTxFromHeight removes all encryptedTx from the store for a particular height
func (Keeper) RemoveContractEntry ¶ added in v0.9.0
RemoveContractEntry removes a specific contract entry in the store by identity
func (Keeper) RemoveDecryptionKey ¶ added in v0.10.0
RemoveDecryptionKey removes a decryption key from the store
func (Keeper) RemoveEntry ¶ added in v0.6.0
RemoveEntry removes an entry from the store
func (Keeper) RemoveExecutionQueueEntry ¶ added in v0.6.0
RemoveQueueEntry removes an entry from the store
func (Keeper) RemovePepNonce ¶
RemovePepNonce removes a pepNonce from the store
func (Keeper) RemovePrivateReqQueueEntry ¶ added in v0.9.0
RemovePrivateReqQueueEntry removes an entry from the store
func (Keeper) RemovePrivateSignalQueueEntry ¶ added in v0.9.0
RemovePrivateSignalQueueEntry removes an entry from the store
func (Keeper) RemoveReqQueueEntry ¶ added in v0.6.0
RemoveQueueEntry removes an entry from the store
func (Keeper) RemoveSignalQueueEntry ¶ added in v0.6.0
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 (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 (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 ¶
SetLastExecutedHeight sets the last execution height
func (Keeper) SetLatestHeight ¶
SetLatestHeight sets the last registered fairyring Height
func (Keeper) SetPepNonce ¶
SetPepNonce set a specific pepNonce in the store from its index
func (*Keeper) SetPort ¶ added in v0.7.0
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
SetRequestCount sets RequestCount
func (Keeper) SetRequestId ¶ added in v0.8.3
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
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 ¶
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
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v0.8.0
Migrate1to2 migrates from version 1 to 2.
Source Files
¶
- aggregated_key_share.go
- contract.go
- current_keys.go
- encrypted_tx.go
- gen_enc_tx.go
- keeper.go
- latest_height.go
- migrations.go
- msg_register_contract.go
- msg_request_general_decryption_key.go
- msg_request_general_identity.go
- msg_request_private_decryption_key.go
- msg_request_private_identity.go
- msg_server.go
- msg_submit_decryption_key.go
- msg_submit_encrypted_tx.go
- msg_submit_gen_enc_tx.go
- msg_unregister_contract.go
- msg_update_params.go
- params.go
- pep_nonce.go
- pub_key.go
- query.go
- query_decrypt_data.go
- query_encrypted_tx.go
- query_general_identity.go
- query_latest_height.go
- query_params.go
- query_pep_nonce.go
- query_private_identity.go
- query_pubkey.go
- request_id.go