keeper

package
v0.0.0-...-3315d20 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 29 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 {
	ICAControllerKeeper icacontrollerkeeper.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,

	sudoKeeper types.SudoKeeper,
	bankKeeper types.BankKeeper,
	relayerKeeper types.RelayerKeeper,
	mintrewardKeeper types.MintRewardKeeper,
	rbankKeeepr types.RBankKeeper,

	icaControllerKeeper icacontrollerkeeper.Keeper,
	scopedKeeper capabilitykeeper.ScopedKeeper,
) *Keeper

func (Keeper) AddBondedPool

func (k Keeper) AddBondedPool(ctx sdk.Context, denom string, addr string)

func (Keeper) CheckAddress

func (k Keeper) CheckAddress(ctx sdk.Context, denom string, addresses ...string) error

func (Keeper) ClaimCapability

func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

ClaimCapability claims the channel capability passed via the OnOpenChanInit callback

func (Keeper) ClearCurrentEraSnapshots

func (k Keeper) ClearCurrentEraSnapshots(ctx sdk.Context, denom string)

func (Keeper) CurrentEraSnapshotList

func (k Keeper) CurrentEraSnapshotList(ctx sdk.Context) []*types.EraSnapshot

func (Keeper) CurrentEraSnapshots

func (k Keeper) CurrentEraSnapshots(ctx sdk.Context, denom string) types.EraSnapshot

func (Keeper) DeletePoolUnbondSequence

func (k Keeper) DeletePoolUnbondSequence(ctx sdk.Context, denom string, pool string, era uint32)

func (Keeper) DeletePoolUnbonding

func (k Keeper) DeletePoolUnbonding(ctx sdk.Context, denom string, pool string, era, seq uint32)

func (Keeper) EraSnapshot

func (k Keeper) EraSnapshot(ctx sdk.Context, denom string, era uint32) (val types.EraSnapshot)

func (Keeper) EraSnapshotList

func (k Keeper) EraSnapshotList(ctx sdk.Context) []*types.GenesisEraSnapshot

func (Keeper) GetAllExchangeRate

func (k Keeper) GetAllExchangeRate(ctx sdk.Context) (list []types.ExchangeRate)

GetAllExchangeRate returns all exchangeRate

func (Keeper) GetAllIcaPoolDetailList

func (k Keeper) GetAllIcaPoolDetailList(ctx sdk.Context) []*types.IcaPoolDetail

prefix + denomLen + denom + 4

func (Keeper) GetAllTotalProtocolFee

func (k Keeper) GetAllTotalProtocolFee(ctx sdk.Context) (list []*types.TotalProtocolFee)

func (Keeper) GetBondPipeline

func (k Keeper) GetBondPipeline(ctx sdk.Context, denom string, pool string) (val types.BondPipeline, found bool)

func (Keeper) GetBondPipelineList

func (k Keeper) GetBondPipelineList(ctx sdk.Context) []*types.BondPipeline

func (Keeper) GetBondRecord

func (k Keeper) GetBondRecord(ctx sdk.Context, denom, txHash string) (val types.BondRecord, found bool)

func (Keeper) GetBondRecordList

func (k Keeper) GetBondRecordList(ctx sdk.Context) []*types.BondRecord

func (Keeper) GetBondedPool

func (k Keeper) GetBondedPool(ctx sdk.Context, denom string) (pool types.Pool, found bool)

func (Keeper) GetBondedPoolList

func (k Keeper) GetBondedPoolList(ctx sdk.Context) []*types.Pool

func (Keeper) GetChainEra

func (k Keeper) GetChainEra(ctx sdk.Context, denom string) (val types.ChainEra, found bool)

func (Keeper) GetChainEraList

func (k Keeper) GetChainEraList(ctx sdk.Context) []*types.ChainEra

func (Keeper) GetEraExchangeRate

func (k Keeper) GetEraExchangeRate(ctx sdk.Context, denom string, era uint32) (val types.EraExchangeRate, found bool)

func (Keeper) GetEraExchangeRateByDenom

func (k Keeper) GetEraExchangeRateByDenom(ctx sdk.Context, denom string) (list []types.EraExchangeRate)

func (Keeper) GetEraExchangeRateList

func (k Keeper) GetEraExchangeRateList(ctx sdk.Context) []*types.EraExchangeRate

func (Keeper) GetEraUnbondLimit

func (k Keeper) GetEraUnbondLimit(ctx sdk.Context, denom string) (val types.EraUnbondLimit)

func (Keeper) GetEraUnbondLimitList

func (k Keeper) GetEraUnbondLimitList(ctx sdk.Context) []*types.EraUnbondLimit

func (Keeper) GetExchangeRate

func (k Keeper) GetExchangeRate(ctx sdk.Context, denom string) (val types.ExchangeRate, found bool)

func (Keeper) GetIcaPoolByDelegationAddr

func (k Keeper) GetIcaPoolByDelegationAddr(ctx sdk.Context, delegationAddr string) (val *types.IcaPoolDetail, found bool)

func (Keeper) GetIcaPoolDetail

func (k Keeper) GetIcaPoolDetail(ctx sdk.Context, denom string, index uint32) (val *types.IcaPoolDetail, found bool)

func (Keeper) GetIcaPoolDetailList

func (k Keeper) GetIcaPoolDetailList(ctx sdk.Context, denom string) []*types.IcaPoolDetail

func (Keeper) GetIcaPoolNextIndex

func (k Keeper) GetIcaPoolNextIndex(ctx sdk.Context, denom string) uint32

func (Keeper) GetInterchainTxPropIdBySeq

func (k Keeper) GetInterchainTxPropIdBySeq(ctx sdk.Context, ctrPortId, ctrChannelId string, sequence uint64) (propId string, found bool)

func (Keeper) GetInterchainTxProposalInfoList

func (k Keeper) GetInterchainTxProposalInfoList(ctx sdk.Context) []*types.GenesisInterchainTxProposalInfo

func (Keeper) GetInterchainTxProposalStatus

func (k Keeper) GetInterchainTxProposalStatus(ctx sdk.Context, propId string) (status types.InterchainTxStatus, found bool)

func (Keeper) GetPoolDetail

func (k Keeper) GetPoolDetail(ctx sdk.Context, denom string, pool string) (val types.PoolDetail, found bool)

func (Keeper) GetPoolDetailList

func (k Keeper) GetPoolDetailList(ctx sdk.Context) []*types.PoolDetail

func (Keeper) GetPoolUnbondNextSequence

func (k Keeper) GetPoolUnbondNextSequence(ctx sdk.Context, denom string, pool string, era uint32) uint32

func (Keeper) GetPoolUnbonding

func (k Keeper) GetPoolUnbonding(ctx sdk.Context, denom string, pool string, era, seq uint32) (*types.Unbonding, bool)

func (Keeper) GetPoolUnbondingList

func (k Keeper) GetPoolUnbondingList(ctx sdk.Context) []*types.GenesisPoolUnbonding

func (Keeper) GetProtocolFeeReceiver

func (k Keeper) GetProtocolFeeReceiver(ctx sdk.Context) (sdk.AccAddress, bool)

func (Keeper) GetRParams

func (k Keeper) GetRParams(ctx sdk.Context, denom string) (val types.RParams, found bool)

func (Keeper) GetRParamsList

func (k Keeper) GetRParamsList(ctx sdk.Context) []*types.RParams

func (Keeper) GetRelayFeeReceiver

func (k Keeper) GetRelayFeeReceiver(ctx sdk.Context, denom string) (sdk.AccAddress, bool)

func (Keeper) GetRelayFeeReceiverList

func (k Keeper) GetRelayFeeReceiverList(ctx sdk.Context) []*types.RelayFeeReceiver

func (Keeper) GetSignature

func (k Keeper) GetSignature(ctx sdk.Context, denom string, era uint32, pool string,
	txType types.OriginalTxType, propId string) (types.Signature, bool)

func (Keeper) GetSignatureList

func (k Keeper) GetSignatureList(ctx sdk.Context) []*types.Signature

func (Keeper) GetStakingRewardCommission

func (k Keeper) GetStakingRewardCommission(ctx sdk.Context, denom string) utils.Dec

func (Keeper) GetStakingRewardCommissionList

func (k Keeper) GetStakingRewardCommissionList(ctx sdk.Context) []*types.StakingRewardCommission

func (Keeper) GetTotalProtocolFee

func (k Keeper) GetTotalProtocolFee(ctx sdk.Context, denom string) (val types.TotalProtocolFee, found bool)

func (Keeper) GetUnbondCommission

func (k Keeper) GetUnbondCommission(ctx sdk.Context, denom string) utils.Dec

func (Keeper) GetUnbondCommissionList

func (k Keeper) GetUnbondCommissionList(ctx sdk.Context) []*types.UnbondCommission

func (Keeper) GetUnbondRelayFee

func (k Keeper) GetUnbondRelayFee(ctx sdk.Context, denom string) (val types.UnbondRelayFee)

func (Keeper) GetUnbondRelayFeeList

func (k Keeper) GetUnbondRelayFeeList(ctx sdk.Context) []*types.UnbondRelayFee

func (Keeper) GetUnbondSwitch

func (k Keeper) GetUnbondSwitch(ctx sdk.Context, denom string) bool

func (Keeper) GetUnbondSwitchList

func (k Keeper) GetUnbondSwitchList(ctx sdk.Context) []*types.UnbondSwitch

func (Keeper) IncreaseTotalProtocolFee

func (k Keeper) IncreaseTotalProtocolFee(ctx sdk.Context, denom string, increase sdk.Int)

func (Keeper) IsBondedPoolExist

func (k Keeper) IsBondedPoolExist(ctx sdk.Context, denom string, addr string) bool

func (Keeper) Logger

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

func (Keeper) MigrateExchangeRate

func (k Keeper) MigrateExchangeRate(ctx sdk.Context, denom string, rate utils.Dec)

func (Keeper) MigrateInitIsSealed

func (k Keeper) MigrateInitIsSealed(ctx sdk.Context) bool

func (Keeper) OnAcknowledgement

func (k Keeper) OnAcknowledgement(ctx sdk.Context, modulePacket channeltypes.Packet, acknowledgement []byte) error

Implements core logic for OnAcknowledgementPacket

func (Keeper) ProcessActiveReportProposal

func (k Keeper) ProcessActiveReportProposal(ctx sdk.Context, p *types.ActiveReportProposal) error

func (Keeper) ProcessBondReportProposal

func (k Keeper) ProcessBondReportProposal(ctx sdk.Context, p *types.BondReportProposal) error

func (Keeper) ProcessExecuteBondProposal

func (k Keeper) ProcessExecuteBondProposal(ctx sdk.Context, p *types.ExecuteBondProposal) error

func (Keeper) ProcessInterchainTxProposal

func (k Keeper) ProcessInterchainTxProposal(ctx sdk.Context, p *types.InterchainTxProposal) error

func (Keeper) ProcessSetChainEraProposal

func (k Keeper) ProcessSetChainEraProposal(ctx sdk.Context, p *types.SetChainEraProposal) error

func (Keeper) ProcessTransferReportProposal

func (k Keeper) ProcessTransferReportProposal(ctx sdk.Context, p *types.TransferReportProposal) error

func (Keeper) RemoveBondedPool

func (k Keeper) RemoveBondedPool(ctx sdk.Context, denom string, addr string)

func (Keeper) RtokenToToken

func (k Keeper) RtokenToToken(ctx sdk.Context, denom string, rbalance sdk.Int) sdk.Int

rtoken to token

func (Keeper) SealMigrateInit

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

func (Keeper) SetBondPipeline

func (k Keeper) SetBondPipeline(ctx sdk.Context, pipe types.BondPipeline)

func (Keeper) SetBondRecord

func (k Keeper) SetBondRecord(ctx sdk.Context, br types.BondRecord)

func (Keeper) SetBondedPool

func (k Keeper) SetBondedPool(ctx sdk.Context, pool *types.Pool)

func (Keeper) SetChainEra

func (k Keeper) SetChainEra(ctx sdk.Context, denom string, era uint32)

func (Keeper) SetCurrentEraSnapshot

func (k Keeper) SetCurrentEraSnapshot(ctx sdk.Context, shot types.EraSnapshot)

func (Keeper) SetEraExchangeRate

func (k Keeper) SetEraExchangeRate(ctx sdk.Context, denom string, era uint32, rate utils.Dec)

func (Keeper) SetEraSnapshot

func (k Keeper) SetEraSnapshot(ctx sdk.Context, era uint32, shot types.EraSnapshot)

func (Keeper) SetEraUnbondLimit

func (k Keeper) SetEraUnbondLimit(ctx sdk.Context, denom string, limit uint32)

func (Keeper) SetExchangeRate

func (k Keeper) SetExchangeRate(ctx sdk.Context, denom string, total, rtotal sdk.Int)

func (Keeper) SetIcaPoolDelegationAddrIndex

func (k Keeper) SetIcaPoolDelegationAddrIndex(ctx sdk.Context, ica *types.IcaPoolDetail)

need set in genesis

func (Keeper) SetIcaPoolDetail

func (k Keeper) SetIcaPoolDetail(ctx sdk.Context, ica *types.IcaPoolDetail)

func (Keeper) SetIcaPoolIndex

func (k Keeper) SetIcaPoolIndex(ctx sdk.Context, denom string, seq uint32)

func (Keeper) SetInterchainTxProposalSequenceIndex

func (k Keeper) SetInterchainTxProposalSequenceIndex(ctx sdk.Context, ctrPortId, ctrChannelId string, sequence uint64, propId string)

func (Keeper) SetInterchainTxProposalStatus

func (k Keeper) SetInterchainTxProposalStatus(ctx sdk.Context, propId string, status types.InterchainTxStatus)

func (Keeper) SetPoolDetail

func (k Keeper) SetPoolDetail(ctx sdk.Context, poolDetail *types.PoolDetail)

func (Keeper) SetPoolUnbondSequence

func (k Keeper) SetPoolUnbondSequence(ctx sdk.Context, denom string, pool string, era, seq uint32)

func (Keeper) SetPoolUnbonding

func (k Keeper) SetPoolUnbonding(ctx sdk.Context, denom string, pool string, era, seq uint32, pu *types.Unbonding)

func (Keeper) SetProtocolFeeReceiver

func (k Keeper) SetProtocolFeeReceiver(ctx sdk.Context, receiver sdk.AccAddress)

func (Keeper) SetRParams

func (k Keeper) SetRParams(ctx sdk.Context, rParams types.RParams)

func (Keeper) SetRelayFeeReceiver

func (k Keeper) SetRelayFeeReceiver(ctx sdk.Context, denom string, receiver sdk.AccAddress)

func (Keeper) SetSignature

func (k Keeper) SetSignature(ctx sdk.Context, sig types.Signature)

func (Keeper) SetSnapshot

func (k Keeper) SetSnapshot(ctx sdk.Context, shotId string, shot types.BondSnapshot)

func (Keeper) SetStakingRewardCommission

func (k Keeper) SetStakingRewardCommission(ctx sdk.Context, denom string, commission utils.Dec)

func (Keeper) SetTotalExpectedActive

func (k Keeper) SetTotalExpectedActive(ctx sdk.Context, denom string, era uint32, active sdk.Int)

func (Keeper) SetTotalExpectedFee

func (k Keeper) SetTotalExpectedFee(ctx sdk.Context, denom string, era uint32, fee sdk.Int)

func (Keeper) SetTotalProtocolFee

func (k Keeper) SetTotalProtocolFee(ctx sdk.Context, denom string, total sdk.Int)

func (Keeper) SetUnbondCommission

func (k Keeper) SetUnbondCommission(ctx sdk.Context, denom string, value utils.Dec)

func (Keeper) SetUnbondRelayFee

func (k Keeper) SetUnbondRelayFee(ctx sdk.Context, denom string, value sdk.Coin)

func (Keeper) SetUnbondSwitch

func (k Keeper) SetUnbondSwitch(ctx sdk.Context, denom string, isOpen bool)

func (Keeper) SetWithdrawAddressOnHost

func (k Keeper) SetWithdrawAddressOnHost(ctx sdk.Context, delegationAddrOwner, ctrlConnectionId, delegationAddr, withdrawAddr string) error

func (Keeper) Snapshot

func (k Keeper) Snapshot(ctx sdk.Context, shotId string) (val types.BondSnapshot, found bool)

func (Keeper) SnapshotList

func (k Keeper) SnapshotList(ctx sdk.Context) []*types.GenesisSnapshot

func (Keeper) SubmitTxs

func (k Keeper) SubmitTxs(ctx sdk.Context, ctrlConnectionId, owner string, msgs []sdk.Msg, memo string) (uint64, error)

SubmitTxs submits an ICA transaction containing multiple messages

func (Keeper) ToggleUnbondSwitch

func (k Keeper) ToggleUnbondSwitch(ctx sdk.Context, denom string)

func (Keeper) TokenToRtoken

func (k Keeper) TokenToRtoken(ctx sdk.Context, denom string, balance sdk.Int) sdk.Int

token to rtoken

func (Keeper) TotalExpectedActive

func (k Keeper) TotalExpectedActive(ctx sdk.Context, denom string, era uint32) (val sdk.Int)

func (Keeper) TotalExpectedActiveList

func (k Keeper) TotalExpectedActiveList(ctx sdk.Context) []*types.TotalExpectedActive

func (Keeper) TotalExpectedFee

func (k Keeper) TotalExpectedFee(ctx sdk.Context, denom string, era uint32) (val sdk.Int)

func (Keeper) TotalExpectedFeeList

func (k Keeper) TotalExpectedFeeList(ctx sdk.Context) []*types.TotalExpectedFee

func (Keeper) UnSealMigrateInit

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

type Querier

type Querier struct {
	Keeper
}

func (Querier) GetChainEra

func (Querier) GetRParams

func (Querier) GetSnapshot

Jump to

Keyboard shortcuts

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