keeper

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 24 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,
	storeKey,
	memKey storetypes.StoreKey,
	tmkeeper types.TokenmanagerKeeper,
	staking types.StakingKeeper,
	bank types.BankKeeper,
) *Keeper

func (Keeper) ApplyOperation

func (k Keeper) ApplyOperation(ctx sdk.Context, op types.Operation, confirmationId string) error

ApplyOperation method that should be called to apply operation successful signing. Should implement certain logic depending on operation type.

func (Keeper) ApproveOperation

func (k Keeper) ApproveOperation(ctx sdk.Context, op types.Operation) error

func (Keeper) ApproveOperationDefault

func (k Keeper) ApproveOperationDefault(ctx sdk.Context, op types.Operation)

func (Keeper) ApproveTransferOperation

func (k Keeper) ApproveTransferOperation(ctx sdk.Context, transfer *types.Transfer) error

func (Keeper) CreateAddFeeTokenOperation

func (k Keeper) CreateAddFeeTokenOperation(ctx sdk.Context, token tokentypes.FeeToken, chain string, nonce string) error

func (Keeper) CreateChangePartiesOperation

func (k Keeper) CreateChangePartiesOperation(ctx sdk.Context, creator string, change *types.ChangeParties) error

func (Keeper) CreateContractUpgradeOperation

func (k Keeper) CreateContractUpgradeOperation(ctx sdk.Context, upgradeDetails *tokenmanagertypes.ContractUpgradeDetails) error

func (Keeper) CreateFeeTokenManagementOperation

func (k Keeper) CreateFeeTokenManagementOperation(ctx sdk.Context, op *types.FeeTokenManagement) error

func (Keeper) CreateIdentityAggregatedTransferOperation

func (k Keeper) CreateIdentityAggregatedTransferOperation(ctx sdk.Context, creator string, transfer *types.IdentityAggregatedTransfer) (string, error)

func (Keeper) CreateIdentityDefaultTransferOperation

func (k Keeper) CreateIdentityDefaultTransferOperation(ctx sdk.Context, creator string, transfer *types.IdentityDefaultTransfer) error

func (Keeper) CreateRemoveFeeTokenOperation

func (k Keeper) CreateRemoveFeeTokenOperation(ctx sdk.Context, token tokentypes.FeeToken, chain string, nonce string) error

func (Keeper) CreateTransferOperation

func (k Keeper) CreateTransferOperation(ctx sdk.Context, creator string, transfer *types.Transfer, approved bool) error

func (Keeper) CreateUpdateFeeTokenOperation

func (k Keeper) CreateUpdateFeeTokenOperation(ctx sdk.Context, token tokentypes.FeeToken, chain string, nonce string) error

func (Keeper) CreateVote

func (k Keeper) CreateVote(ctx sdk.Context, vote types.Vote) (bool, error)

func (Keeper) CreateWithdrawFeeOperation

func (k Keeper) CreateWithdrawFeeOperation(ctx sdk.Context, token tokentypes.FeeToken, chain string, receiver string, nonce string) error

func (Keeper) DropPartiesProposal

func (k Keeper) DropPartiesProposal(ctx sdk.Context, _ *types.DropPartiesProposal) error

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) GetAllConfirmation

func (k Keeper) GetAllConfirmation(ctx sdk.Context) (list []types.Confirmation)

GetAllConfirmation returns all confirmation

func (Keeper) GetAllOperation

func (k Keeper) GetAllOperation(ctx sdk.Context) (list []types.Operation)

GetAllOperation returns all operation

func (Keeper) GetAllViolationReport

func (k Keeper) GetAllViolationReport(ctx sdk.Context) (list []types.ViolationReport)

GetAllViolationReport returns all ViolationReport

func (Keeper) GetAllVote

func (k Keeper) GetAllVote(ctx sdk.Context) (list []types.Vote)

GetAllVote returns all Vote

func (Keeper) GetConfirmation

func (k Keeper) GetConfirmation(
	ctx sdk.Context,
	root string,

) (val types.Confirmation, found bool)

GetConfirmation returns a confirmation from its index

func (Keeper) GetKeyECDSA

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

func (Keeper) GetOperation

func (k Keeper) GetOperation(
	ctx sdk.Context,
	index string,
) (val types.Operation, found bool)

GetOperation returns an operation from its index

func (Keeper) GetOperationConfirmationId

func (k Keeper) GetOperationConfirmationId(ctx sdk.Context, op string) (string, bool)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetTransfer

func (k Keeper) GetTransfer(ctx sdk.Context, msg *oracletypes.MsgCreateTransferOp) (*types.Transfer, error)

func (Keeper) GetViolationReport

func (k Keeper) GetViolationReport(
	ctx sdk.Context,
	index *types.ViolationReportIndex,
) (val types.ViolationReport, found bool)

GetViolationReport returns a ViolationReport from its index

func (Keeper) GetVote

func (k Keeper) GetVote(
	ctx sdk.Context,
	index *types.VoteIndex,
) (val types.Vote, found bool)

GetVote returns a Vote from its index

func (Keeper) IterateViolationReports

func (k Keeper) IterateViolationReports(ctx sdk.Context, sessionId, offender string, f func(report types.ViolationReport) (stop bool))

func (Keeper) IterateVotes

func (k Keeper) IterateVotes(ctx sdk.Context, operation string, f func(vote types.Vote) (stop bool))

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) RemoveConfirmation

func (k Keeper) RemoveConfirmation(
	ctx sdk.Context,
	height string,

)

RemoveConfirmation removes a confirmation from the store

func (Keeper) RemoveOperation

func (k Keeper) RemoveOperation(
	ctx sdk.Context,
	index string,
)

RemoveOperation removes an operation from the store

func (Keeper) RemoveOperationConfirmationId

func (k Keeper) RemoveOperationConfirmationId(ctx sdk.Context, op string)

func (Keeper) RemoveViolationReport

func (k Keeper) RemoveViolationReport(
	ctx sdk.Context,
	index *types.ViolationReportIndex,
)

RemoveViolationReport removes a ViolationReport from the store

func (Keeper) RemoveVote

func (k Keeper) RemoveVote(
	ctx sdk.Context,
	index *types.VoteIndex,
)

RemoveVote removes a Vote from the store

func (Keeper) ReshareKeysProposal

func (k Keeper) ReshareKeysProposal(ctx sdk.Context, _ *types.ReshareKeysProposal) error

func (Keeper) SetConfirmation

func (k Keeper) SetConfirmation(ctx sdk.Context, confirmation types.Confirmation)

SetConfirmation set a specific confirmation in the store from its index

func (Keeper) SetOperation

func (k Keeper) SetOperation(ctx sdk.Context, op types.Operation)

SetOperation set a specific deposit in the store from its index

func (Keeper) SetOperationConfirmationId

func (k Keeper) SetOperationConfirmationId(ctx sdk.Context, op, conf string)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetViolationReport

func (k Keeper) SetViolationReport(ctx sdk.Context, v types.ViolationReport)

SetViolationReport set a violation report in the store from its index

func (Keeper) SetVote

func (k Keeper) SetVote(ctx sdk.Context, v types.Vote)

SetVote set a specific deposit in the store from its index

func (Keeper) SlashProposal

func (k Keeper) SlashProposal(ctx sdk.Context, proposal *types.SlashProposal) error

func (Keeper) UnapproveOperation

func (k Keeper) UnapproveOperation(ctx sdk.Context, op types.Operation) error

func (Keeper) UnfreezeSignerPartyProposal

func (k Keeper) UnfreezeSignerPartyProposal(ctx sdk.Context, proposal *types.UnfreezeSignerPartyProposal) error

func (Keeper) UpdateLastSignature

func (k Keeper) UpdateLastSignature(ctx sdk.Context, sig string)

Jump to

Keyboard shortcuts

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