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: 38 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_RETRIES = 5
View Source
const (
	PrivateGovIdentity = "private-gov-identity"
)

Variables

View Source
var SupportedIDTypes = []string{PrivateGovIdentity}

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,
	pepKeeper types.PepKeeper,
	slashingKeeper types.SlashingKeeper,
	stakingKeeper types.StakingKeeper,
	govKeeper types.GovKeeper,
) Keeper

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) Commitments

Commitments returns the list of all keyshares submitted

func (Keeper) DecreaseAuthorizedCount

func (k Keeper) DecreaseAuthorizedCount(
	ctx context.Context,
	creator string,
)

func (Keeper) DecryptionKey added in v0.10.0

DecryptionKey returns the decryption key for a particular height

func (Keeper) DecryptionKeyAll added in v0.10.0

DecryptionKeyAll returns the paginated list of all decryption keys

func (Keeper) DeleteActiveCommitments

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

DeleteActiveCommitments deletes the active public key in the store

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) DeleteQueuedCommitments

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

DeleteQueuedCommitments deletes the queued 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) GeneralKeyshare added in v0.10.0

func (Keeper) GeneralKeyshareAll added in v0.10.0

func (Keeper) GetActiveCommitments

func (k Keeper) GetActiveCommitments(
	ctx context.Context,
) (val types.Commitments, found bool)

GetActiveCommitments returns the Active public key

func (Keeper) GetActivePubkey added in v0.10.0

func (k Keeper) GetActivePubkey(
	ctx context.Context,
) (val types.ActivePubkey, found bool)

GetActivePubkey returns the Active public key

func (Keeper) GetAllAuthorizedAddress

func (k Keeper) GetAllAuthorizedAddress(ctx context.Context) (list []types.AuthorizedAddress)

GetAllAuthorizedAddress returns all authorizedAddress

func (Keeper) GetAllDecryptionKeyRequests added in v0.10.0

func (k Keeper) GetAllDecryptionKeyRequests(ctx context.Context) (list []types.DecryptionKeyRequest)

GetAllDecryptionKeyRequests returns all decryption key requests

func (Keeper) GetAllDecryptionKeys added in v0.10.0

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

GetAllDecryptionKeys returns all decryption keys

func (Keeper) GetAllGeneralKeyshare added in v0.10.0

func (k Keeper) GetAllGeneralKeyshare(ctx context.Context) (list []types.GeneralKeyshare)

GetAllGeneralKeyshare returns all generalKeyshare

func (Keeper) GetAllKeyshare added in v0.10.0

func (k Keeper) GetAllKeyshare(ctx context.Context) (list []types.Keyshare)

GetAllKeyshare returns all keyshares

func (Keeper) GetAllPrivateDecryptionKeyRequests added in v0.10.0

func (k Keeper) GetAllPrivateDecryptionKeyRequests(
	ctx context.Context,
) (list []types.PrivateDecryptionKeyRequest)

GetAllPrivateDecryptionKeyRequests returns all private keyShare requests

func (Keeper) GetAllPrivateKeyshare added in v0.10.0

func (k Keeper) GetAllPrivateKeyshare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare)

GetAllPrivateKeyshare returns all private Keyshares

func (Keeper) GetAllValidatorSet

func (k Keeper) GetAllValidatorSet(ctx context.Context) (list []types.ValidatorSet)

GetAllValidatorSet returns all validatorSet

func (Keeper) GetAuthority added in v0.7.0

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetAuthorizedAddress

func (k Keeper) GetAuthorizedAddress(
	ctx context.Context,
	target string,

) (val types.AuthorizedAddress, found bool)

GetAuthorizedAddress returns a authorizedAddress from its index

func (Keeper) GetAuthorizedCount

func (k Keeper) GetAuthorizedCount(
	ctx context.Context,
	creator string,
) uint64

func (Keeper) GetDecryptionKey added in v0.10.0

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

) (val types.DecryptionKey, found bool)

GetDecryptionKey returns a decryption key from its index

func (Keeper) GetDecryptionKeyLength added in v0.10.0

func (k Keeper) GetDecryptionKeyLength(
	ctx sdk.Context,
) uint64

GetDecryptionKeyLength returns the length of decryption key

func (Keeper) GetDecryptionKeyRequest added in v0.10.0

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

) (val types.DecryptionKeyRequest, found bool)

GetDecryptionKeyRequest returns a decryption key request from its index

func (Keeper) GetGeneralKeyshare added in v0.10.0

func (k Keeper) GetGeneralKeyshare(
	ctx context.Context,
	validator string,
	idType string,
	idValue string,
) (val types.GeneralKeyshare, found bool)

GetGeneralKeyshare returns a generalKeyshare from its index

func (Keeper) GetKeyshare added in v0.10.0

func (k Keeper) GetKeyshare(
	ctx context.Context,
	validator string,
	blockHeight uint64,

) (val types.Keyshare, found bool)

GetKeyshare returns a keyshare from its index

func (Keeper) GetLastSubmittedHeight

func (k Keeper) GetLastSubmittedHeight(ctx context.Context, validator string) uint64

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

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) GetPrivateDecryptionKeyRequest added in v0.10.0

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

GetPrivateDecryptionKeyRequest returns a private decryption key request from its index

func (Keeper) GetPrivateKeyshare added in v0.10.0

func (k Keeper) GetPrivateKeyshare(
	ctx context.Context,
	validator string,
	identity string,
	requester string,
) (val types.ValidatorEncryptedKeyshare, found bool)

GetPrivateKeyshare returns a private Keyshare from its index

func (Keeper) GetQueuedCommitments

func (k Keeper) GetQueuedCommitments(
	ctx context.Context,
) (val types.Commitments, found bool)

GetQueuedCommitments returns the Queued public key

func (Keeper) GetQueuedPubkey added in v0.10.0

func (k Keeper) GetQueuedPubkey(
	ctx context.Context,
) (val types.QueuedPubkey, found bool)

GetQueuedPubkey returns the Queued public key

func (Keeper) GetRequestCount

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

GetRequestCount returns the request count

func (Keeper) GetValidatorSet

func (k Keeper) GetValidatorSet(
	ctx context.Context,
	index string,

) (val types.ValidatorSet, found bool)

GetValidatorSet returns a validatorSet from its index

func (Keeper) IncreaseAuthorizedCount

func (k Keeper) IncreaseAuthorizedCount(
	ctx context.Context,
	creator string,
)

func (Keeper) KeyExpiry

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

KeyExpiry returns the KeyExpiry param

func (Keeper) Keyshare added in v0.10.0

Keyshare returns a single keyshare submitted by a particular validator for a particular block height

func (Keeper) KeyshareAll added in v0.10.0

KeyshareAll returns the list of all keyshares submitted

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) MaxIdledBlock

func (k Keeper) MaxIdledBlock(ctx sdk.Context) (res uint64)

MaxIdledBlock returns the MaxIdledBlock param

func (Keeper) MinimumBonded

func (k Keeper) MinimumBonded(ctx sdk.Context) (res uint64)

MinimumBonded returns the MinimumBonded param

func (Keeper) OnAcknowledgementDecryptionKeyDataPacket added in v0.10.0

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

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

func (Keeper) OnAcknowledgementPrivateDecryptionKeyDataPacket added in v0.10.0

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

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

func (Keeper) OnRecvCurrentKeysPacket added in v0.6.0

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

OnRecvCurrentKeysPacket processes packet reception

func (Keeper) OnRecvGetDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnRecvGetDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data types.GetDecryptionKeyPacketData,
) (packetAck types.GetDecryptionKeyPacketAck, err error)

OnRecvGetDecryptionKeyPacket processes packet reception

func (Keeper) OnRecvGetPrivateDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data types.GetPrivateDecryptionKeyPacketData,
) (packetAck types.GetPrivateDecryptionKeyPacketAck, err error)

OnRecvGetPrivateDecryptionKeyPacket processes packet reception

func (Keeper) OnRecvRequestDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnRecvRequestDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data types.RequestDecryptionKeyPacketData,
) (packetAck types.RequestDecryptionKeyPacketAck, err error)

OnRecvRequestDecryptionKeyPacket processes packet reception

func (Keeper) OnRecvRequestPrivateDecryptionKeyPacket added in v0.10.0

func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	data types.RequestPrivateDecryptionKeyPacketData,
) (packetAck types.RequestPrivateDecryptionKeyPacketAck, err error)

OnRecvRequestPrivateKeysharePacket processes packet reception

func (Keeper) OnTimeoutDecryptionKeyDataPacket added in v0.10.0

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

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

func (Keeper) OnTimeoutGetDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) OnTimeoutGetPrivateDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) OnTimeoutPrivateDecryptionKeyDataPacket added in v0.10.0

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

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

func (Keeper) OnTimeoutRequestDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket added in v0.10.0

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

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

func (Keeper) Params

func (Keeper) ProcessGovRequestQueue added in v0.6.0

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

func (Keeper) ProcessGovSignalQueue added in v0.6.0

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

func (Keeper) ProcessPepRequestQueue added in v0.6.0

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

func (Keeper) ProcessPepSignalQueue added in v0.6.0

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

func (Keeper) ProcessPrivateRequestQueue added in v0.9.0

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

func (Keeper) ProcessPrivateSignalQueue added in v0.9.0

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

func (Keeper) Pubkey added in v0.10.0

Pubkey returns the lates public keys

func (Keeper) RemoveAuthorizedAddress

func (k Keeper) RemoveAuthorizedAddress(
	ctx context.Context,
	target string,

)

RemoveAuthorizedAddress removes a authorizedAddress from the store

func (Keeper) RemoveDecryptionKey added in v0.10.0

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

)

RemoveDecryptionKey removes a decryption key from the store

func (Keeper) RemoveDecryptionKeyRequest added in v0.10.0

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

)

RemoveDecryptionKeyRequest removes a decryption key request from the store

func (Keeper) RemoveGeneralKeyshare added in v0.10.0

func (k Keeper) RemoveGeneralKeyshare(
	ctx context.Context,
	validator string,
	idType string,
	idValue string,
)

RemoveGeneralKeyshare removes a generalKeyshare from the store

func (Keeper) RemoveKeyshare added in v0.10.0

func (k Keeper) RemoveKeyshare(
	ctx context.Context,
	validator string,
	blockHeight uint64,

)

RemoveKeyshare removes a keyShare from the store

func (Keeper) RemovePrivateDecryptionKeyRequest added in v0.10.0

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

RemovePrivateDecryptionKeyRequest removes a private decryption key request from the store

func (Keeper) RemovePrivateKeyshare added in v0.10.0

func (k Keeper) RemovePrivateKeyshare(
	ctx context.Context,
	validator string,
	identiy string,
	requester string,
)

RemovePrivateKeyshare removes an private Keyshare from the store

func (Keeper) RemoveValidatorSet

func (k Keeper) RemoveValidatorSet(
	ctx context.Context,
	index string,

)

RemoveValidatorSet removes a validatorSet from the store

func (*Keeper) ScopedKeeper added in v0.7.0

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

ScopedKeeper returns the ScopedKeeper

func (Keeper) SetActiveCommitments

func (k Keeper) SetActiveCommitments(ctx context.Context, commits types.Commitments)

SetActiveCommitments set a specific public key to active in the store

func (Keeper) SetActivePubkey added in v0.10.0

func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey types.ActivePubkey)

SetActivePubkey set a specific public key to active in the store

func (Keeper) SetAuthorizedAddress

func (k Keeper) SetAuthorizedAddress(ctx context.Context, authorizedAddress types.AuthorizedAddress)

SetAuthorizedAddress set a specific authorizedAddress in the store from its index

func (Keeper) SetDecryptionKey added in v0.10.0

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

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

func (Keeper) SetDecryptionKeyLength added in v0.10.0

func (k Keeper) SetDecryptionKeyLength(ctx sdk.Context, length uint64)

SetDecryptionKeyLength set a specific length to decryption key length

func (Keeper) SetDecryptionKeyRequest added in v0.10.0

func (k Keeper) SetDecryptionKeyRequest(ctx context.Context, decryptionKeyReq types.DecryptionKeyRequest)

SetDecryptionKeyRequest set a specific decryption key request in the store by its index

func (Keeper) SetGeneralKeyshare added in v0.10.0

func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.GeneralKeyshare)

SetGeneralKeyshare set a specific generalKeyshare in the store from its index

func (Keeper) SetKeyshare added in v0.10.0

func (k Keeper) SetKeyshare(ctx context.Context, keyShare types.Keyshare)

SetKeyshare set a specific keyShare in the store from its index

func (Keeper) SetLastSubmittedHeight

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

func (Keeper) SetParams

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

SetParams set the params

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) SetPrivateDecryptionKeyRequest added in v0.10.0

func (k Keeper) SetPrivateDecryptionKeyRequest(
	ctx context.Context,
	privDecryptionKeyReq types.PrivateDecryptionKeyRequest,
)

SetPrivateDecryptionKeyRequest set a specific private decryption key request in the store by its index

func (Keeper) SetPrivateKeyshare added in v0.10.0

func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyshare types.ValidatorEncryptedKeyshare)

SetPrivateKeyshare set a specific private Keyshare in the store from its index

func (Keeper) SetQueuedCommitments

func (k Keeper) SetQueuedCommitments(ctx context.Context, commits types.Commitments)

SetQueuedCommitments set a specific public key in the store

func (Keeper) SetQueuedPubkey added in v0.10.0

func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey types.QueuedPubkey)

SetQueuedPubkey set a specific public key in the store

func (Keeper) SetRequestCount

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

SetRequestCount sets RequestCount

func (Keeper) SetValidatorSet

func (k Keeper) SetValidatorSet(ctx context.Context, validatorSet types.ValidatorSet)

SetValidatorSet set a specific validatorSet in the store from its index

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) SlashFractionNoKeyshare

func (k Keeper) SlashFractionNoKeyshare(ctx sdk.Context) (res math.LegacyDec)

SlashFractionNoKeyshare returns the SlashFractionNoKeyshare param

func (Keeper) SlashFractionWrongKeyshare

func (k Keeper) SlashFractionWrongKeyshare(ctx sdk.Context) (res math.LegacyDec)

SlashFractionWrongKeyshare returns the SlashFractionWrongKeyshare param

func (Keeper) SlashingKeeper added in v0.7.0

func (k Keeper) SlashingKeeper() types.SlashingKeeper

func (Keeper) TransmitDecryptionKeyDataPacket added in v0.10.0

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

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

func (Keeper) TransmitPrivateDecryptionKeyDataPacket added in v0.10.0

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

TransmitPrivateDecryptionKeyDataPacket 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 types.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) TrustedAddresses

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

TrustedAddresses returns the TrustedAddresses param

func (Keeper) ValidatorSetAll

ValidatorSetAll returns the complete list of registered validators

func (Keeper) VerifiableRandomness added in v0.7.0

type Migrator added in v0.7.1

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

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

func NewMigrator added in v0.7.1

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v0.7.1

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

Migrate1to2 migrates from version 1 to 2.

Jump to

Keyboard shortcuts

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