Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendEncryptedTx(ctx sdk.Context, encryptedTx types.EncryptedTx) uint64
- func (k Keeper) ChannelID(ctx sdk.Context) (res string)
- func (k Keeper) DeleteActivePubKey(ctx sdk.Context)
- func (k Keeper) DeleteQueuedPubKey(ctx sdk.Context)
- func (k Keeper) EncryptedTx(c context.Context, req *types.QueryGetEncryptedTxRequest) (*types.QueryGetEncryptedTxResponse, error)
- func (k Keeper) EncryptedTxAll(c context.Context, req *types.QueryAllEncryptedTxRequest) (*types.QueryAllEncryptedTxResponse, error)
- func (k Keeper) EncryptedTxAllFromHeight(c context.Context, req *types.QueryAllEncryptedTxFromHeightRequest) (*types.QueryAllEncryptedTxFromHeightResponse, error)
- func (k Keeper) GetActivePubKey(ctx sdk.Context) (val types.ActivePubKey, found bool)
- func (k Keeper) GetAggregatedKeyShare(ctx sdk.Context, height uint64) (val types.AggregatedKeyShare, found bool)
- func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.AggregatedKeyShare)
- func (k Keeper) GetAllEncryptedArray(ctx sdk.Context) (arr []types.EncryptedTxArray)
- func (k Keeper) GetAllPepNonce(ctx sdk.Context) (list []types.PepNonce)
- func (k Keeper) GetEncryptedTx(ctx sdk.Context, targetHeight uint64, index uint64) (val types.EncryptedTx, found bool)
- func (k Keeper) GetEncryptedTxAllFromHeight(ctx sdk.Context, targetHeight uint64) types.EncryptedTxArray
- func (k Keeper) GetLastExecutedHeight(ctx sdk.Context) string
- func (k Keeper) GetLatestHeight(ctx sdk.Context) string
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPepNonce(ctx sdk.Context, address string) (val types.PepNonce, found bool)
- func (k Keeper) GetQueuedPubKey(ctx sdk.Context) (val types.QueuedPubKey, found bool)
- func (k Keeper) IncreasePepNonce(ctx sdk.Context, address string) uint64
- func (k Keeper) LatestHeight(goCtx context.Context, req *types.QueryLatestHeightRequest) (*types.QueryLatestHeightResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MinGasPrice(ctx sdk.Context) (res sdk.Coin)
- func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData, ...) error
- func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) (packetAck types.CurrentKeysPacketAck, err error)
- func (k Keeper) OnTimeoutCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PepNonce(c context.Context, req *types.QueryGetPepNonceRequest) (*types.QueryGetPepNonceResponse, error)
- func (k Keeper) PepNonceAll(c context.Context, req *types.QueryAllPepNonceRequest) (*types.QueryAllPepNonceResponse, 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) RemoveAggregatedKeyShare(ctx sdk.Context, height uint64)
- func (k Keeper) RemoveAllEncryptedTxFromHeight(ctx sdk.Context, targetHeight uint64)
- func (k Keeper) RemoveEncryptedTx(ctx sdk.Context, targetHeight uint64, index uint64)
- func (k Keeper) RemovePepNonce(ctx sdk.Context, address string)
- func (k Keeper) SetActivePubKey(ctx sdk.Context, activePubKey types.ActivePubKey)
- func (k Keeper) SetAggregatedKeyShare(ctx sdk.Context, aggregatedKeyShare types.AggregatedKeyShare)
- func (k Keeper) SetEncryptedTx(ctx sdk.Context, height uint64, encryptedTxArr types.EncryptedTxArray)
- func (k Keeper) SetLastExecutedHeight(ctx sdk.Context, height string)
- func (k Keeper) SetLatestHeight(ctx sdk.Context, height string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPepNonce(ctx sdk.Context, pepNonce types.PepNonce)
- func (k Keeper) SetQueuedPubKey(ctx sdk.Context, queuedPubKey types.QueuedPubKey)
- func (k Keeper) TransmitCurrentKeysPacket(ctx sdk.Context, packetData types.CurrentKeysPacketData, ...) error
- func (k Keeper) TrustedAddresses(ctx sdk.Context) (res []string)
- func (k Keeper) TrustedCounterParties(ctx sdk.Context) (res []*types.TrustedCounterParty)
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 ¶
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 ¶
AppendEncryptedTx append a specific encryptedTx in the store
func (Keeper) DeleteActivePubKey ¶
DeleteActivePubKey deletes the active public key in the store
func (Keeper) DeleteQueuedPubKey ¶
DeleteQueuedPubKey deletes the queued public key in the store
func (Keeper) EncryptedTx ¶
func (k Keeper) EncryptedTx(c context.Context, req *types.QueryGetEncryptedTxRequest) (*types.QueryGetEncryptedTxResponse, error)
EncryptedTx returns a singe encrypted Tx by index
func (Keeper) EncryptedTxAll ¶
func (k Keeper) EncryptedTxAll(c context.Context, req *types.QueryAllEncryptedTxRequest) (*types.QueryAllEncryptedTxResponse, error)
EncryptedTxAll returns the paginated list of all encrypted Txs
func (Keeper) EncryptedTxAllFromHeight ¶
func (k Keeper) EncryptedTxAllFromHeight(c context.Context, req *types.QueryAllEncryptedTxFromHeightRequest) (*types.QueryAllEncryptedTxFromHeightResponse, error)
EncryptedTxAllFromHeight returns all the encrypted TXs for a particular height
func (Keeper) GetActivePubKey ¶
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 ¶
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 ¶
GetLastExecutedHeight gets the last execution height
func (Keeper) GetLatestHeight ¶
GetLatestHeight gets the last registered fairyring Height
func (Keeper) GetPepNonce ¶
GetPepNonce returns a pepNonce from its index
func (Keeper) GetQueuedPubKey ¶
GetQueuedPubKey returns the Queued public key
func (Keeper) IncreasePepNonce ¶
IncreasePepNonce increase specific pepNonce by 1 and returns the new nonce
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 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 (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PepNonce ¶
func (k Keeper) PepNonce(c context.Context, req *types.QueryGetPepNonceRequest) (*types.QueryGetPepNonceResponse, error)
PepNonce returns a single Nonce by address
func (Keeper) PepNonceAll ¶
func (k Keeper) PepNonceAll(c context.Context, req *types.QueryAllPepNonceRequest) (*types.QueryAllPepNonceResponse, error)
PepNonceAll returns the list of all Nonce
func (Keeper) PubKey ¶
func (k Keeper) PubKey(goCtx context.Context, req *types.QueryPubKeyRequest) (*types.QueryPubKeyResponse, error)
PubKey returns the lates public keys
func (Keeper) QueryFairyringCurrentKeys ¶
func (Keeper) RemoveAggregatedKeyShare ¶
RemoveAggregatedKeyShare removes a aggregatedKeyShare from the store
func (Keeper) RemoveAllEncryptedTxFromHeight ¶
RemoveAllEncryptedTxFromHeight removes all encryptedTx from the store for a particular height
func (Keeper) RemoveEncryptedTx ¶
RemoveEncryptedTx removes a encryptedTx from the store
func (Keeper) RemovePepNonce ¶
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) 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) 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) 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) TrustedAddresses ¶
TrustedAddresses returns the TrustedAddresses param
func (Keeper) TrustedCounterParties ¶
func (k Keeper) TrustedCounterParties(ctx sdk.Context) (res []*types.TrustedCounterParty)
TrustedCounterParties returns the TrustedCounterParties param
Source Files ¶
- aggregated_key_share.go
- current_keys.go
- encrypted_tx.go
- grpc_query.go
- grpc_query_encrypted_tx.go
- grpc_query_latest_height.go
- grpc_query_params.go
- grpc_query_pep_nonce.go
- grpc_query_pubkey.go
- keeper.go
- latest_height.go
- msg_server.go
- msg_server_aggregated_key_share.go
- msg_server_submit_encrypted_tx.go
- params.go
- pep_nonce.go
- pub_key.go