Documentation
¶
Index ¶
- Constants
- func AccountBalanceCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func AllBalancesCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func ApplyDeltasToIntent(requests types.Allocations, deltas types.Diffs, currentState types.Allocations) types.Allocations
- func DelegationCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func DelegationsCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func DepositIntervalCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func DistributeRewardsFromWithdrawAccount(k Keeper, ctx sdk.Context, args []byte, query queryTypes.Query) error
- func GetDelegationKey(zone *types.RegisteredZone, delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetDelegationPlanKey(zone *types.RegisteredZone, txhash string, delAddr sdk.AccAddress, ...) []byte
- func GetDelegationPlansKey(zone *types.RegisteredZone, txhash string, delAddr sdk.AccAddress) []byte
- func GetDelegationsKey(zone *types.RegisteredZone, delAddr sdk.AccAddress) []byte
- func GetReceiptKey(zone types.RegisteredZone, txhash string) string
- func GetWithdrawalKey(delegator string, txhash string) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func PerfBalanceCallback(k Keeper, ctx sdk.Context, response []byte, query icqtypes.Query) error
- func RewardsCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func SatisfyRequestsForBins(requests types.Allocations, bins types.Allocations, deltas types.Diffs) types.Allocations
- func SetAccountBalanceForDenom(k Keeper, ctx sdk.Context, zone types.RegisteredZone, address string, ...) error
- func SetValidatorForZone(k Keeper, ctx sdk.Context, zoneInfo types.RegisteredZone, data []byte) error
- func SetValidatorsForZone(k Keeper, ctx sdk.Context, zoneInfo types.RegisteredZone, data []byte) error
- func ValidatorCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- func ValsetCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error
- type Callback
- type Callbacks
- type Hooks
- type Keeper
- func (k Keeper) AddWithdrawalRecord(ctx sdk.Context, delegator string, validator string, recipient string, ...)
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64)
- func (k *Keeper) AggregateIntents(ctx sdk.Context, zone types.RegisteredZone)
- func (k Keeper) AllIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool) []types.DelegatorIntent
- func (k Keeper) AllOrdinalizedIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool) []types.DelegatorIntent
- func (k Keeper) AllRegisteredZones(ctx sdk.Context) []types.RegisteredZone
- func (k Keeper) AllWithdrawalRecords(ctx sdk.Context, delegator string) []types.WithdrawalRecord
- func (k Keeper) AllWithdrawalRecordsWithHash(ctx sdk.Context, txhash string, delegator string) []types.WithdrawalRecord
- func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64)
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) CallbackHandler() Callbacks
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k *Keeper) Delegate(ctx sdk.Context, zone types.RegisteredZone, account *types.ICAAccount, ...) error
- func (k Keeper) DelegationPlans(c context.Context, req *types.QueryDelegationPlansRequest) (*types.QueryDelegationPlansResponse, error)
- func (k Keeper) Delegations(c context.Context, req *types.QueryDelegationsRequest) (*types.QueryDelegationsResponse, error)
- func (k Keeper) DelegatorDelegations(c context.Context, req *types.QueryDelegatorDelegationsRequest) (*types.QueryDelegatorDelegationsResponse, error)
- func (k Keeper) DelegatorIntent(c context.Context, req *types.QueryDelegatorIntentRequest) (*types.QueryDelegatorIntentResponse, error)
- func (k Keeper) DeleteIntent(ctx sdk.Context, zone types.RegisteredZone, delegator string, snapshot bool)
- func (k Keeper) DeleteReceipt(ctx sdk.Context, key string)
- func (k Keeper) DeleteRegisteredZone(ctx sdk.Context, chain_id string)
- func (k Keeper) DeleteWithdrawalRecord(ctx sdk.Context, txhash string, delegator string, validator string, ...)
- func (k Keeper) DepositAccount(c context.Context, req *types.QueryDepositAccountForChainRequest) (*types.QueryDepositAccountForChainResponse, error)
- func (k Keeper) DeterminePlanForDelegation(ctx sdk.Context, zone types.RegisteredZone, amount sdk.Coins, delegator string, ...) (types.Allocations, error)
- func (k Keeper) EmitPerformanceBalanceQuery(ctx sdk.Context, zone *types.RegisteredZone) error
- func (k Keeper) EmitValsetRequery(ctx sdk.Context, connectionId string, chainId string) error
- func (k Keeper) GetAllDelegationPlans(ctx sdk.Context, zone *types.RegisteredZone) []types.DelegationPlan
- func (k Keeper) GetAllDelegations(ctx sdk.Context, zone *types.RegisteredZone) (delegations []types.Delegation)
- func (k Keeper) GetChainID(ctx sdk.Context, connectionID string) (string, error)
- func (k Keeper) GetChainIdFromContext(ctx sdk.Context) (string, error)
- func (k Keeper) GetCodec() codec.Codec
- func (k *Keeper) GetCommissionRate(ctx sdk.Context) sdk.Dec
- func (k *Keeper) GetConnectionForPort(ctx sdk.Context, port string) (string, error)
- func (k Keeper) GetDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegatorAddress string, ...) (delegation types.Delegation, found bool)
- func (k *Keeper) GetDelegationBinsMap(ctx sdk.Context, zone *types.RegisteredZone) types.Allocations
- func (k Keeper) GetDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, ...) (delegationPlan types.DelegationPlan, found bool)
- func (k Keeper) GetDelegatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, delegator sdk.AccAddress) (delegations []types.Delegation)
- func (k Keeper) GetICAForDelegateAccount(ctx sdk.Context, address string) (*types.RegisteredZone, *types.ICAAccount)
- func (k Keeper) GetIntent(ctx sdk.Context, zone types.RegisteredZone, delegator string, snapshot bool) (types.DelegatorIntent, bool)
- func (k *Keeper) GetParam(ctx sdk.Context, key []byte) uint64
- func (k Keeper) GetParams(clientCtx sdk.Context) (params types.Params)
- func (k Keeper) GetReceipt(ctx sdk.Context, key string) (types.Receipt, bool)
- func (k *Keeper) GetRedemptionTargets(ctx sdk.Context, zone types.RegisteredZone, requests types.Allocations) RedemptionTargets
- func (k Keeper) GetRegisteredZoneInfo(ctx sdk.Context, chain_id string) (types.RegisteredZone, bool)
- func (k Keeper) GetValidatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, valAddr sdk.ValAddress) (delegations []types.Delegation)
- func (k *Keeper) GetValidatorForToken(ctx sdk.Context, delegatorAddress string, amount sdk.Coin) (string, error)
- func (k Keeper) GetWithdrawalRecord(ctx sdk.Context, txhash string, delegator string, validator string, ...) (types.WithdrawalRecord, bool)
- func (k Keeper) GetZoneForDelegateAccount(ctx sdk.Context, address string) *types.RegisteredZone
- func (k Keeper) GetZoneForPerformanceAccount(ctx sdk.Context, address string) *types.RegisteredZone
- func (k Keeper) GetZoneFromContext(ctx sdk.Context) (*types.RegisteredZone, error)
- func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte) error
- func (k *Keeper) HandleBeginRedelegate(ctx sdk.Context, msg sdk.Msg, completion time.Time) error
- func (k *Keeper) HandleCompleteMultiSend(ctx sdk.Context, msg sdk.Msg, memo string) error
- func (k *Keeper) HandleCompleteSend(ctx sdk.Context, msg sdk.Msg, memo string) error
- func (k *Keeper) HandleDelegate(ctx sdk.Context, msg sdk.Msg) error
- func (k *Keeper) HandleDistributeFeesFromModuleAccount(ctx sdk.Context) error
- func (k *Keeper) HandleMsgTransfer(ctx sdk.Context, msg sdk.Msg) error
- func (k Keeper) HandleReceiptTransaction(ctx sdk.Context, txr *sdk.TxResponse, txn *tx.Tx, zone types.RegisteredZone)
- func (k *Keeper) HandleRedeemTokens(ctx sdk.Context, msg sdk.Msg, amount sdk.Coin) error
- func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet) error
- func (k *Keeper) HandleTokenizedShares(ctx sdk.Context, msg sdk.Msg, amount sdk.Coin, memo string) error
- func (k *Keeper) HandleUpdatedWithdrawAddress(ctx sdk.Context, msg sdk.Msg) error
- func (k *Keeper) HandleWithdrawRewards(ctx sdk.Context, msg sdk.Msg, amount sdk.Coins) error
- func (k Keeper) Hooks() Hooks
- func (k Keeper) InitPerformanceDelegations(ctx sdk.Context, zone types.RegisteredZone, response []byte) error
- func (k Keeper) IterateAllDelegationPlans(ctx sdk.Context, zone *types.RegisteredZone, ...)
- func (k Keeper) IterateAllDelegationPlansForHash(ctx sdk.Context, zone *types.RegisteredZone, txhash string, ...)
- func (k Keeper) IterateAllDelegationPlansForHashAndDelegator(ctx sdk.Context, zone *types.RegisteredZone, txhash string, ...)
- func (k Keeper) IterateAllDelegations(ctx sdk.Context, zone *types.RegisteredZone, ...)
- func (k Keeper) IterateDelegatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, delegator sdk.AccAddress, ...)
- func (k Keeper) IterateIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool, ...)
- func (k Keeper) IterateReceipts(ctx sdk.Context, fn func(index int64, receiptInfo types.Receipt) (stop bool))
- func (k Keeper) IterateRegisteredZones(ctx sdk.Context, ...)
- func (k Keeper) IterateWithdrawalRecords(ctx sdk.Context, delegator string, ...)
- func (k Keeper) IterateWithdrawalRecordsWithTxhash(ctx sdk.Context, txhash string, delegator string, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) MintQAsset(ctx sdk.Context, sender sdk.AccAddress, zone types.RegisteredZone, ...) error
- func (k Keeper) NewReceipt(ctx sdk.Context, zone types.RegisteredZone, sender string, txhash string, ...) *types.Receipt
- func (k Keeper) RegisteredZoneInfos(c context.Context, req *types.QueryRegisteredZonesInfoRequest) (*types.QueryRegisteredZonesInfoResponse, error)
- func (k Keeper) RemoveDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegation types.Delegation) error
- func (k Keeper) RemoveDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, ...) error
- func (k Keeper) SetAccountBalance(ctx sdk.Context, zone types.RegisteredZone, address string, queryResult []byte) error
- func (k *Keeper) SetConnectionForPort(ctx sdk.Context, connectionId string, port string) error
- func (k Keeper) SetDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegation types.Delegation)
- func (k Keeper) SetDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, ...)
- func (k Keeper) SetIntent(ctx sdk.Context, zone types.RegisteredZone, intent types.DelegatorIntent, ...)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetReceipt(ctx sdk.Context, receipt types.Receipt)
- func (k Keeper) SetRegisteredZone(ctx sdk.Context, zone types.RegisteredZone)
- func (k Keeper) SetWithdrawalRecord(ctx sdk.Context, record *types.WithdrawalRecord)
- func (k *Keeper) SubmitTx(ctx sdk.Context, msgs []sdk.Msg, account *types.ICAAccount, memo string) error
- func (k *Keeper) TransferToDelegate(ctx sdk.Context, zone types.RegisteredZone, plan types.Allocations, ...) error
- func (k *Keeper) UpdateDelegationRecordForAddress(ctx sdk.Context, delegatorAddress string, validatorAddress string, ...) error
- func (k *Keeper) UpdateDelegationRecordsForAddress(ctx sdk.Context, zone *types.RegisteredZone, delegatorAddress string, ...) error
- func (k *Keeper) UpdateIntent(ctx sdk.Context, sender sdk.AccAddress, zone types.RegisteredZone, ...)
- func (k Keeper) ValidatorDelegations(c context.Context, req *types.QueryValidatorDelegationsRequest) (*types.QueryValidatorDelegationsResponse, error)
- func (k *Keeper) WithdrawDelegationRewardsForResponse(ctx sdk.Context, zone *types.RegisteredZone, delegator string, response []byte) error
- type RedemptionTarget
- type RedemptionTargets
Constants ¶
const ( // setting WITHDRAW_STATUS_TOKENIZE as 0 causes the value to be omitted when (un)marshalling :/ WITHDRAW_STATUS_TOKENIZE int32 = iota + 1 WITHDRAW_STATUS_SEND int32 = iota + 1 )
Variables ¶
This section is empty.
Functions ¶
func AccountBalanceCallback ¶ added in v0.3.0
setAccountCb is a callback handler for Balance queries.
func AllBalancesCallback ¶ added in v0.3.0
func ApplyDeltasToIntent ¶ added in v0.2.0
func ApplyDeltasToIntent(requests types.Allocations, deltas types.Diffs, currentState types.Allocations) types.Allocations
func DelegationCallback ¶ added in v0.3.0
func DelegationsCallback ¶ added in v0.3.0
func DepositIntervalCallback ¶ added in v0.3.0
func GetDelegationKey ¶ added in v0.2.0
func GetDelegationKey(zone *types.RegisteredZone, delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the key for delegator bond with validator VALUE: staking/Delegation
func GetDelegationPlanKey ¶ added in v0.2.0
func GetDelegationPlanKey(zone *types.RegisteredZone, txhash string, delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
gets the key for delegator bond with validator VALUE: staking/DelegationPlan
func GetDelegationPlansKey ¶ added in v0.2.0
func GetDelegationPlansKey(zone *types.RegisteredZone, txhash string, delAddr sdk.AccAddress) []byte
gets the prefix for a delegator for all validators
func GetDelegationsKey ¶ added in v0.2.0
func GetDelegationsKey(zone *types.RegisteredZone, delAddr sdk.AccAddress) []byte
gets the prefix for a delegator for all validators
func GetReceiptKey ¶
func GetReceiptKey(zone types.RegisteredZone, txhash string) string
func GetWithdrawalKey ¶ added in v0.2.0
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the interchainstaking MsgServer interface for the provided Keeper.
func PerfBalanceCallback ¶ added in v0.3.0
func RewardsCallback ¶ added in v0.3.0
func SatisfyRequestsForBins ¶ added in v0.2.0
func SatisfyRequestsForBins(requests types.Allocations, bins types.Allocations, deltas types.Diffs) types.Allocations
func SetAccountBalanceForDenom ¶ added in v0.2.0
func SetAccountBalanceForDenom(k Keeper, ctx sdk.Context, zone types.RegisteredZone, address string, coin sdk.Coin) error
SetAccountBalanceForDenom sets the balance on an account for a given denominination.
func SetValidatorForZone ¶ added in v0.2.0
func SetValidatorsForZone ¶
func ValidatorCallback ¶ added in v0.3.0
Types ¶
type Callbacks ¶
type Callbacks struct {
// contains filtered or unexported fields
}
func (Callbacks) AddCallback ¶
func (c Callbacks) AddCallback(id string, fn interface{}) types.QueryCallbacks
func (Callbacks) RegisterCallbacks ¶ added in v0.3.0
func (c Callbacks) RegisterCallbacks() types.QueryCallbacks
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for incentives keeper
func (Hooks) AfterEpochEnd ¶
type Keeper ¶
type Keeper struct {
ICAControllerKeeper icacontrollerkeeper.Keeper
ICQKeeper interchainquerykeeper.Keeper
AccountKeeper authKeeper.AccountKeeper
BankKeeper bankkeeper.Keeper
IBCKeeper ibckeeper.Keeper
// contains filtered or unexported fields
}
Keeper of this module maintains collections of registered zones.
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, accountKeeper authKeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, icacontrollerkeeper icacontrollerkeeper.Keeper, scopedKeeper capabilitykeeper.ScopedKeeper, icqKeeper interchainquerykeeper.Keeper, ibcKeeper ibckeeper.Keeper, ps paramtypes.Subspace) Keeper
NewKeeper returns a new instance of zones Keeper
func (Keeper) AddWithdrawalRecord ¶
func (Keeper) AfterEpochEnd ¶
func (*Keeper) AggregateIntents ¶
func (k *Keeper) AggregateIntents(ctx sdk.Context, zone types.RegisteredZone)
func (Keeper) AllIntents ¶
func (k Keeper) AllIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool) []types.DelegatorIntent
AllIntents returns every intent in the store for the specified zone
func (Keeper) AllOrdinalizedIntents ¶
func (k Keeper) AllOrdinalizedIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool) []types.DelegatorIntent
AllOrdinalizedIntents returns every intent in the store for the specified zone
func (Keeper) AllRegisteredZones ¶
func (k Keeper) AllRegisteredZones(ctx sdk.Context) []types.RegisteredZone
AllRegisteredZonesInfos returns every zoneInfo in the store
func (Keeper) AllWithdrawalRecords ¶
AllWithdrawalRecords returns every record in the store for the specified zone
func (Keeper) AllWithdrawalRecordsWithHash ¶ added in v0.2.0
func (k Keeper) AllWithdrawalRecordsWithHash(ctx sdk.Context, txhash string, delegator string) []types.WithdrawalRecord
AllWithdrawalRecords returns every record in the store for the specified zone
func (Keeper) BeforeEpochStart ¶
func (Keeper) BeginBlocker ¶
BeginBlocker of interchainstaking module
func (Keeper) CallbackHandler ¶
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) Delegate ¶
func (k *Keeper) Delegate(ctx sdk.Context, zone types.RegisteredZone, account *types.ICAAccount, allocations types.Allocations) error
Delegate determines how the balance of a DelegateAccount should be distributed across validators.
func (Keeper) DelegationPlans ¶ added in v0.2.0
func (k Keeper) DelegationPlans(c context.Context, req *types.QueryDelegationPlansRequest) (*types.QueryDelegationPlansResponse, error)
func (Keeper) Delegations ¶ added in v0.2.0
func (k Keeper) Delegations(c context.Context, req *types.QueryDelegationsRequest) (*types.QueryDelegationsResponse, error)
func (Keeper) DelegatorDelegations ¶ added in v0.2.0
func (k Keeper) DelegatorDelegations(c context.Context, req *types.QueryDelegatorDelegationsRequest) (*types.QueryDelegatorDelegationsResponse, error)
func (Keeper) DelegatorIntent ¶
func (k Keeper) DelegatorIntent(c context.Context, req *types.QueryDelegatorIntentRequest) (*types.QueryDelegatorIntentResponse, error)
DelegatorIntent returns information about the delegation intent of the caller for the given zone.
func (Keeper) DeleteIntent ¶
func (k Keeper) DeleteIntent(ctx sdk.Context, zone types.RegisteredZone, delegator string, snapshot bool)
DeleteIntent deletes delegator intent
func (Keeper) DeleteReceipt ¶
DeleteReceipt delete receipt info
func (Keeper) DeleteRegisteredZone ¶
DeleteRegisteredZone delete zone info
func (Keeper) DeleteWithdrawalRecord ¶
func (k Keeper) DeleteWithdrawalRecord(ctx sdk.Context, txhash string, delegator string, validator string, recipient string)
DeleteWithdrawalRecord deletes withdrawal record
func (Keeper) DepositAccount ¶ added in v0.2.0
func (k Keeper) DepositAccount(c context.Context, req *types.QueryDepositAccountForChainRequest) (*types.QueryDepositAccountForChainResponse, error)
DepositAccount returns the deposit account address for the given zone.
func (Keeper) DeterminePlanForDelegation ¶ added in v0.2.0
func (Keeper) EmitPerformanceBalanceQuery ¶ added in v0.2.0
func (Keeper) EmitValsetRequery ¶ added in v0.2.0
func (Keeper) GetAllDelegationPlans ¶ added in v0.2.0
func (k Keeper) GetAllDelegationPlans(ctx sdk.Context, zone *types.RegisteredZone) []types.DelegationPlan
func (Keeper) GetAllDelegations ¶ added in v0.2.0
func (k Keeper) GetAllDelegations(ctx sdk.Context, zone *types.RegisteredZone) (delegations []types.Delegation)
GetAllDelegations returns all delegations used during genesis dump.
func (Keeper) GetChainID ¶
func (Keeper) GetChainIdFromContext ¶ added in v0.2.0
func (*Keeper) GetConnectionForPort ¶
func (Keeper) GetDelegation ¶ added in v0.2.0
func (k Keeper) GetDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegatorAddress string, validatorAddress string) (delegation types.Delegation, found bool)
GetDelegation returns a specific delegation.
func (*Keeper) GetDelegationBinsMap ¶ added in v0.2.0
func (k *Keeper) GetDelegationBinsMap(ctx sdk.Context, zone *types.RegisteredZone) types.Allocations
func (Keeper) GetDelegationPlan ¶ added in v0.2.0
func (k Keeper) GetDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, delegatorAddress string, validatorAddress string) (delegationPlan types.DelegationPlan, found bool)
GetDelegationPlan returns a specific delegation.
func (Keeper) GetDelegatorDelegations ¶ added in v0.2.0
func (k Keeper) GetDelegatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, delegator sdk.AccAddress) (delegations []types.Delegation)
GetDelegatorDelegations returns a given amount of all the delegations from a delegator.
func (Keeper) GetICAForDelegateAccount ¶
func (k Keeper) GetICAForDelegateAccount(ctx sdk.Context, address string) (*types.RegisteredZone, *types.ICAAccount)
GetZoneForDelegateAccount determines the zone, and returns the ICAAccount for a given address.
func (Keeper) GetIntent ¶
func (k Keeper) GetIntent(ctx sdk.Context, zone types.RegisteredZone, delegator string, snapshot bool) (types.DelegatorIntent, bool)
GetIntent returns intent info by zone and delegator
func (Keeper) GetReceipt ¶
GetReceipt returns receipt
func (*Keeper) GetRedemptionTargets ¶ added in v0.2.0
func (k *Keeper) GetRedemptionTargets(ctx sdk.Context, zone types.RegisteredZone, requests types.Allocations) RedemptionTargets
func (Keeper) GetRegisteredZoneInfo ¶
func (k Keeper) GetRegisteredZoneInfo(ctx sdk.Context, chain_id string) (types.RegisteredZone, bool)
GetRegisteredZoneInfo returns zone info by chain_id
func (Keeper) GetValidatorDelegations ¶ added in v0.2.0
func (k Keeper) GetValidatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, valAddr sdk.ValAddress) (delegations []types.Delegation)
GetValidatorDelegations returns all delegations to a specific validator. Useful for querier.
func (*Keeper) GetValidatorForToken ¶
func (k *Keeper) GetValidatorForToken(ctx sdk.Context, delegatorAddress string, amount sdk.Coin) (string, error)
TODO: this should be part of Keeper, but part of zone. Refactor me.
func (Keeper) GetWithdrawalRecord ¶
func (k Keeper) GetWithdrawalRecord(ctx sdk.Context, txhash string, delegator string, validator string, recipient string) (types.WithdrawalRecord, bool)
GetWithdrawalRecord returns withdrawal record info by zone and delegator
func (Keeper) GetZoneForDelegateAccount ¶
GetZoneForDelegateAccount determines the zone for a given address.
func (Keeper) GetZoneForPerformanceAccount ¶ added in v0.2.0
func (Keeper) GetZoneFromContext ¶ added in v0.2.0
GetZoneFromContext determines the zone from the current context
func (*Keeper) HandleAcknowledgement ¶
func (*Keeper) HandleBeginRedelegate ¶
func (*Keeper) HandleCompleteMultiSend ¶
func (*Keeper) HandleCompleteSend ¶
func (*Keeper) HandleDistributeFeesFromModuleAccount ¶ added in v0.1.10
func (*Keeper) HandleMsgTransfer ¶ added in v0.1.10
func (Keeper) HandleReceiptTransaction ¶
func (k Keeper) HandleReceiptTransaction(ctx sdk.Context, txr *sdk.TxResponse, txn *tx.Tx, zone types.RegisteredZone)
func (*Keeper) HandleRedeemTokens ¶
func (*Keeper) HandleTimeout ¶
func (*Keeper) HandleTokenizedShares ¶
func (*Keeper) HandleUpdatedWithdrawAddress ¶
func (*Keeper) HandleWithdrawRewards ¶
func (Keeper) InitPerformanceDelegations ¶ added in v0.2.0
func (Keeper) IterateAllDelegationPlans ¶ added in v0.2.0
func (k Keeper) IterateAllDelegationPlans(ctx sdk.Context, zone *types.RegisteredZone, cb func(delegationPlan types.DelegationPlan) (stop bool))
IterateAllDelegationPlansForHash iterates through all of the delegations for a given transaction.
func (Keeper) IterateAllDelegationPlansForHash ¶ added in v0.2.0
func (k Keeper) IterateAllDelegationPlansForHash(ctx sdk.Context, zone *types.RegisteredZone, txhash string, cb func(delegationPlan types.DelegationPlan) (stop bool))
IterateAllDelegationPlansForHash iterates through all of the delegations for a given transaction.
func (Keeper) IterateAllDelegationPlansForHashAndDelegator ¶ added in v0.2.0
func (k Keeper) IterateAllDelegationPlansForHashAndDelegator(ctx sdk.Context, zone *types.RegisteredZone, txhash string, delegatorAddr sdk.AccAddress, cb func(delegationPlan types.DelegationPlan) (stop bool))
IterateAllDelegationPlansForHashAndDelegator iterates through all of the delegations for a given transaction and delegator tuple.
func (Keeper) IterateAllDelegations ¶ added in v0.2.0
func (k Keeper) IterateAllDelegations(ctx sdk.Context, zone *types.RegisteredZone, cb func(delegation types.Delegation) (stop bool))
IterateAllDelegations iterates through all of the delegations.
func (Keeper) IterateDelegatorDelegations ¶ added in v0.2.0
func (k Keeper) IterateDelegatorDelegations(ctx sdk.Context, zone *types.RegisteredZone, delegator sdk.AccAddress, cb func(delegation types.Delegation) (stop bool))
IterateDelegatorDelegations iterates through one delegator's delegations.
func (Keeper) IterateIntents ¶
func (k Keeper) IterateIntents(ctx sdk.Context, zone types.RegisteredZone, snapshot bool, fn func(index int64, intent types.DelegatorIntent) (stop bool))
IterateIntents iterate through intents for a given zone
func (Keeper) IterateReceipts ¶
func (k Keeper) IterateReceipts(ctx sdk.Context, fn func(index int64, receiptInfo types.Receipt) (stop bool))
IterateQueries iterate through receipts
func (Keeper) IterateRegisteredZones ¶
func (k Keeper) IterateRegisteredZones(ctx sdk.Context, fn func(index int64, zoneInfo types.RegisteredZone) (stop bool))
IterateRegisteredZones iterate through zones
func (Keeper) IterateWithdrawalRecords ¶
func (k Keeper) IterateWithdrawalRecords(ctx sdk.Context, delegator string, fn func(index int64, record types.WithdrawalRecord) (stop bool))
IterateWithdrawalRecords iterate through records for a given zone
func (Keeper) IterateWithdrawalRecordsWithTxhash ¶ added in v0.2.0
func (k Keeper) IterateWithdrawalRecordsWithTxhash(ctx sdk.Context, txhash string, delegator string, fn func(index int64, record types.WithdrawalRecord) (stop bool))
IterateWithdrawalRecords iterate through records for a given zone
func (*Keeper) MintQAsset ¶
func (k *Keeper) MintQAsset(ctx sdk.Context, sender sdk.AccAddress, zone types.RegisteredZone, inCoins sdk.Coins) error
func (Keeper) NewReceipt ¶
func (Keeper) RegisteredZoneInfos ¶
func (k Keeper) RegisteredZoneInfos(c context.Context, req *types.QueryRegisteredZonesInfoRequest) (*types.QueryRegisteredZonesInfoResponse, error)
RegisteredZoneInfos returns information about registered zones.
func (Keeper) RemoveDelegation ¶ added in v0.2.0
func (k Keeper) RemoveDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegation types.Delegation) error
RemoveDelegation removes a delegation
func (Keeper) RemoveDelegationPlan ¶ added in v0.2.0
func (k Keeper) RemoveDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, delegationPlan types.DelegationPlan) error
RemoveDelegationPlan removes a delegation
func (Keeper) SetAccountBalance ¶
func (k Keeper) SetAccountBalance(ctx sdk.Context, zone types.RegisteredZone, address string, queryResult []byte) error
SetAccountBalance triggers provable KV queries to prove an AllBalances query.
func (*Keeper) SetConnectionForPort ¶
func (Keeper) SetDelegation ¶ added in v0.2.0
func (k Keeper) SetDelegation(ctx sdk.Context, zone *types.RegisteredZone, delegation types.Delegation)
SetDelegation sets a delegation.
func (Keeper) SetDelegationPlan ¶ added in v0.2.0
func (k Keeper) SetDelegationPlan(ctx sdk.Context, zone *types.RegisteredZone, txhash string, delegationPlan types.DelegationPlan)
SetDelegationPlan sets a delegation.
func (Keeper) SetIntent ¶
func (k Keeper) SetIntent(ctx sdk.Context, zone types.RegisteredZone, intent types.DelegatorIntent, snapshot bool)
SetIntent store the delegator intent
func (Keeper) SetReceipt ¶
SetReceipt set receipt info
func (Keeper) SetRegisteredZone ¶
func (k Keeper) SetRegisteredZone(ctx sdk.Context, zone types.RegisteredZone)
SetRegisteredZone set zone info
func (Keeper) SetWithdrawalRecord ¶
func (k Keeper) SetWithdrawalRecord(ctx sdk.Context, record *types.WithdrawalRecord)
SetWithdrawalRecord store the withdrawal record
func (*Keeper) TransferToDelegate ¶
func (k *Keeper) TransferToDelegate(ctx sdk.Context, zone types.RegisteredZone, plan types.Allocations, memo string) error
func (*Keeper) UpdateDelegationRecordForAddress ¶
func (*Keeper) UpdateDelegationRecordsForAddress ¶
func (*Keeper) UpdateIntent ¶
func (k *Keeper) UpdateIntent(ctx sdk.Context, sender sdk.AccAddress, zone types.RegisteredZone, inAmount sdk.Coins, memo string)
func (Keeper) ValidatorDelegations ¶ added in v0.2.0
func (k Keeper) ValidatorDelegations(c context.Context, req *types.QueryValidatorDelegationsRequest) (*types.QueryValidatorDelegationsResponse, error)
func (*Keeper) WithdrawDelegationRewardsForResponse ¶
type RedemptionTarget ¶ added in v0.2.0
type RedemptionTarget types.DelegationPlan
type RedemptionTargets ¶ added in v0.2.0
type RedemptionTargets []RedemptionTarget
func (RedemptionTargets) Add ¶ added in v0.2.0
func (r RedemptionTargets) Add(delAddr string, valAddr string, amount sdk.Coins) RedemptionTargets
func (RedemptionTargets) Get ¶ added in v0.2.0
func (r RedemptionTargets) Get(delAddr string, valAddr string) *RedemptionTarget
func (RedemptionTargets) Sorted ¶ added in v0.2.0
func (r RedemptionTargets) Sorted() RedemptionTargets