keeper

package
v0.0.0-...-4285c94 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 10

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.

func VerifyAttestationSignatures

func VerifyAttestationSignatures(
	message []byte,
	attestation []byte,
	publicKeys []types.Attester,
	signatureThreshold uint32,
) error

* Rules for valid attestation: * 1. length of `_attestation` == 65 (signature length) * signatureThreshold * 2. addresses recovered from attestation must be in increasing order. * For example, if signature A is signed by address 0x1..., and signature B * is signed by address 0x2..., attestation must be passed as AB. * 3. no duplicate signers * 4. all signers must be enabled attesters

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	logger log.Logger,
	storeService store.KVStoreService,
	bank types.BankKeeper,
	fiattokenfactory types.FiatTokenfactoryKeeper,
) *Keeper

func (Keeper) DeleteAttester

func (k Keeper) DeleteAttester(ctx context.Context, key string)

DeleteAttester removes an attester

func (Keeper) DeletePendingOwner

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

DeletePendingOwner deletes the pending owner of the CCTP module from state.

func (Keeper) DeleteRemoteTokenMessenger

func (k Keeper) DeleteRemoteTokenMessenger(
	ctx context.Context,
	remoteDomain uint32,
)

DeleteRemoteTokenMessenger removes a remote token messenger

func (Keeper) DeleteTokenPair

func (k Keeper) DeleteTokenPair(
	ctx context.Context,
	remoteDomain uint32,
	remoteToken []byte,
)

DeleteTokenPair removes a token pair

func (Keeper) GetAllAttesters

func (k Keeper) GetAllAttesters(ctx context.Context) (list []types.Attester)

GetAllAttesters returns all attesters

func (Keeper) GetAllPerMessageBurnLimits

func (k Keeper) GetAllPerMessageBurnLimits(ctx context.Context) (list []types.PerMessageBurnLimit)

GetAllMessageBurnLimit gets all PerMessageBurnLimits from the store

func (Keeper) GetAllTokenPairs

func (k Keeper) GetAllTokenPairs(ctx context.Context) (list []types.TokenPair)

GetAllTokenPairs returns all token pairs

func (Keeper) GetAllUsedNonces

func (k Keeper) GetAllUsedNonces(ctx context.Context) (list []types.Nonce)

GetAllUsedNonces returns all UsedNonces

func (Keeper) GetAttester

func (k Keeper) GetAttester(ctx context.Context, key string) (val types.Attester, found bool)

GetAttester returns an attester

func (Keeper) GetAttesterManager

func (k Keeper) GetAttesterManager(ctx context.Context) (attesterManager string)

GetAttesterManager returns the attester manager of the CCTP module from state.

func (Keeper) GetBurningAndMintingPaused

func (k Keeper) GetBurningAndMintingPaused(ctx context.Context) (val types.BurningAndMintingPaused, found bool)

GetBurningAndMintingPaused returns BurningAndMintingPaused

func (Keeper) GetMaxMessageBodySize

func (k Keeper) GetMaxMessageBodySize(ctx context.Context) (val types.MaxMessageBodySize, found bool)

GetMaxMessageBodySize returns the MaxMessageBodySize

func (Keeper) GetNextAvailableNonce

func (k Keeper) GetNextAvailableNonce(ctx context.Context) (val types.Nonce, found bool)

GetNextAvailableNonce returns the next available nonce

func (Keeper) GetOwner

func (k Keeper) GetOwner(ctx context.Context) (owner string)

GetOwner returns the owner of the CCTP module from state.

func (Keeper) GetPauser

func (k Keeper) GetPauser(ctx context.Context) (pauser string)

GetPauser returns the pauser of the CCTP module from state.

func (Keeper) GetPendingOwner

func (k Keeper) GetPendingOwner(ctx context.Context) (pendingOwner string, found bool)

GetPendingOwner returns the pending owner of the CCTP module from state.

func (Keeper) GetPerMessageBurnLimit

func (k Keeper) GetPerMessageBurnLimit(ctx context.Context, denom string) (val types.PerMessageBurnLimit, found bool)

GetPerMessageBurnLimit returns a PerMessageBurnLimit

func (Keeper) GetRemoteTokenMessenger

func (k Keeper) GetRemoteTokenMessenger(ctx context.Context, remoteDomain uint32) (val types.RemoteTokenMessenger, found bool)

GetRemoteTokenMessenger returns a remote token messenger

func (Keeper) GetRemoteTokenMessengers

func (k Keeper) GetRemoteTokenMessengers(ctx context.Context) (list []types.RemoteTokenMessenger)

GetRemoteTokenMessengers returns all remote token messengers

func (Keeper) GetSendingAndReceivingMessagesPaused

func (k Keeper) GetSendingAndReceivingMessagesPaused(ctx context.Context) (val types.SendingAndReceivingMessagesPaused, found bool)

GetSendingAndReceivingMessagesPaused returns SendingAndReceivingMessagesPaused

func (Keeper) GetSignatureThreshold

func (k Keeper) GetSignatureThreshold(ctx context.Context) (val types.SignatureThreshold, found bool)

GetSignatureThreshold returns the SignatureThreshold

func (Keeper) GetTokenController

func (k Keeper) GetTokenController(ctx context.Context) (tokenController string)

GetTokenController returns the token controller of the CCTP module from state.

func (Keeper) GetTokenPair

func (k Keeper) GetTokenPair(ctx context.Context, remoteDomain uint32, remoteToken []byte) (val types.TokenPair, found bool)

GetTokenPair returns a token pair

func (Keeper) GetTokenPairHex

func (k Keeper) GetTokenPairHex(ctx context.Context, remoteDomain uint32, remoteTokenHex string) (val types.TokenPair, found bool)

GetTokenPair returns a token pair

func (Keeper) GetUsedNonce

func (k Keeper) GetUsedNonce(ctx context.Context, nonce types.Nonce) (found bool)

GetUsedNonce returns a nonce

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

func (Keeper) ReserveAndIncrementNonce

func (k Keeper) ReserveAndIncrementNonce(ctx context.Context) (val types.Nonce)

func (Keeper) Roles

func (Keeper) SetAttester

func (k Keeper) SetAttester(ctx context.Context, key types.Attester)

SetAttester sets an attester in the store

func (Keeper) SetAttesterManager

func (k Keeper) SetAttesterManager(ctx context.Context, attesterManager string)

SetAttesterManager stores the attester manager of the CCTP module in state.

func (Keeper) SetBurningAndMintingPaused

func (k Keeper) SetBurningAndMintingPaused(ctx context.Context, paused types.BurningAndMintingPaused)

SetBurningAndMintingPaused set BurningAndMintingPaused in the store

func (Keeper) SetMaxMessageBodySize

func (k Keeper) SetMaxMessageBodySize(ctx context.Context, amount types.MaxMessageBodySize)

SetMaxMessageBodySize sets MaxMessageBodySize in the store

func (Keeper) SetNextAvailableNonce

func (k Keeper) SetNextAvailableNonce(ctx context.Context, key types.Nonce)

SetNextAvailableNonce sets the next available nonce in the store

func (Keeper) SetOwner

func (k Keeper) SetOwner(ctx context.Context, owner string)

SetOwner stores the owner of the CCTP module in state.

func (Keeper) SetPauser

func (k Keeper) SetPauser(ctx context.Context, pauser string)

SetPauser stores the pauser of the CCTP module in state.

func (Keeper) SetPendingOwner

func (k Keeper) SetPendingOwner(ctx context.Context, pendingOwner string)

SetPendingOwner stores the pending owner of the CCTP module in state.

func (Keeper) SetPerMessageBurnLimit

func (k Keeper) SetPerMessageBurnLimit(ctx context.Context, limit types.PerMessageBurnLimit)

SetPerMessageBurnLimit sets a PerMessageBurnLimit in the store

func (Keeper) SetRemoteTokenMessenger

func (k Keeper) SetRemoteTokenMessenger(ctx context.Context, remoteTokenMessenger types.RemoteTokenMessenger)

SetRemoteTokenMessenger sets a remote token messenger in the store

func (Keeper) SetSendingAndReceivingMessagesPaused

func (k Keeper) SetSendingAndReceivingMessagesPaused(ctx context.Context, paused types.SendingAndReceivingMessagesPaused)

SetSendingAndReceivingMessagesPaused sets SendingAndReceivingMessagesPaused in the store

func (Keeper) SetSignatureThreshold

func (k Keeper) SetSignatureThreshold(ctx context.Context, key types.SignatureThreshold)

SetSignatureThreshold sets a SignatureThreshold in the store

func (Keeper) SetTokenController

func (k Keeper) SetTokenController(ctx context.Context, tokenController string)

SetTokenController stores the token controller of the CCTP module in state.

func (Keeper) SetTokenPair

func (k Keeper) SetTokenPair(ctx context.Context, tokenPair types.TokenPair)

SetTokenPair sets a token pair in the store

func (Keeper) SetUsedNonce

func (k Keeper) SetUsedNonce(ctx context.Context, nonce types.Nonce)

SetUsedNonce sets a nonce in the store

Source Files

Jump to

Keyboard shortcuts

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