Documentation ¶
Index ¶
- Constants
- func GetDepositRecordIDBytes(id uint64) []byte
- func GetEpochUnbondingRecordIDBytes(id uint64) []byte
- func GetEpochUnbondingRecordIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func TransferCallback(k Keeper, ctx sdk.Context, packet channeltypes.Packet, ...) error
- type ICACallback
- type ICACallbacks
- func (c ICACallbacks) AddICACallback(id string, fn interface{}) icacallbackstypes.ICACallbackHandler
- func (c ICACallbacks) CallICACallback(ctx sdk.Context, id string, packet channeltypes.Packet, ...) error
- func (c ICACallbacks) HasICACallback(id string) bool
- func (c ICACallbacks) RegisterICACallbacks() icacallbackstypes.ICACallbackHandler
- type Keeper
- func (k Keeper) AddHostZoneToEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64, chainId string, ...) (val *types.EpochUnbondingRecord, success bool)
- func (k Keeper) AppendDepositRecord(ctx sdk.Context, depositRecord types.DepositRecord) uint64
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) DepositRecord(c context.Context, req *types.QueryGetDepositRecordRequest) (*types.QueryGetDepositRecordResponse, error)
- func (k Keeper) DepositRecordAll(c context.Context, req *types.QueryAllDepositRecordRequest) (*types.QueryAllDepositRecordResponse, error)
- func (k Keeper) EpochUnbondingRecord(c context.Context, req *types.QueryGetEpochUnbondingRecordRequest) (*types.QueryGetEpochUnbondingRecordResponse, error)
- func (k Keeper) EpochUnbondingRecordAll(c context.Context, req *types.QueryAllEpochUnbondingRecordRequest) (*types.QueryAllEpochUnbondingRecordResponse, error)
- func (k Keeper) GetAllDepositRecord(ctx sdk.Context) (list []types.DepositRecord)
- func (k Keeper) GetAllEpochUnbondingRecord(ctx sdk.Context) (list []types.EpochUnbondingRecord)
- func (k Keeper) GetAllPreviousEpochUnbondingRecords(ctx sdk.Context, epochNumber uint64) (list []types.EpochUnbondingRecord)
- func (k Keeper) GetAllUserRedemptionRecord(ctx sdk.Context) (list []types.UserRedemptionRecord)
- func (k Keeper) GetDepositRecord(ctx sdk.Context, id uint64) (val types.DepositRecord, found bool)
- func (k Keeper) GetDepositRecordByEpochAndChain(ctx sdk.Context, epochNumber uint64, chainId string) (val *types.DepositRecord, found bool)
- func (k Keeper) GetDepositRecordCount(ctx sdk.Context) uint64
- func (k Keeper) GetEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64) (val types.EpochUnbondingRecord, found bool)
- func (k Keeper) GetHostZoneUnbondingByChainId(ctx sdk.Context, epochNumber uint64, chainId string) (val *types.HostZoneUnbonding, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetUserRedemptionRecord(ctx sdk.Context, id string) (val types.UserRedemptionRecord, found bool)
- func (k Keeper) ICACallbackHandler() ICACallbacks
- func (k Keeper) IterateUserRedemptionRecords(ctx sdk.Context, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarshalTransferCallbackArgs(ctx sdk.Context, delegateCallback types.TransferCallback) ([]byte, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveDepositRecord(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64)
- func (k Keeper) RemoveUserRedemptionRecord(ctx sdk.Context, id string)
- func (k Keeper) SetDepositRecord(ctx sdk.Context, depositRecord types.DepositRecord)
- func (k Keeper) SetDepositRecordCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetEpochUnbondingRecord(ctx sdk.Context, epochUnbondingRecord types.EpochUnbondingRecord)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetUserRedemptionRecord(ctx sdk.Context, userRedemptionRecord types.UserRedemptionRecord)
- func (k Keeper) Transfer(ctx sdk.Context, msg *ibctypes.MsgTransfer, depositRecordId uint64) error
- func (k Keeper) UnmarshalTransferCallbackArgs(ctx sdk.Context, delegateCallback []byte) (*types.TransferCallback, error)
- func (k Keeper) UserRedemptionRecord(c context.Context, req *types.QueryGetUserRedemptionRecordRequest) (*types.QueryGetUserRedemptionRecordResponse, error)
- func (k Keeper) UserRedemptionRecordAll(c context.Context, req *types.QueryAllUserRedemptionRecordRequest) (*types.QueryAllUserRedemptionRecordResponse, error)
- func (k Keeper) UserRedemptionRecordForUser(c context.Context, req *types.QueryAllUserRedemptionRecordForUserRequest) (*types.QueryAllUserRedemptionRecordForUserResponse, error)
Constants ¶
const TRANSFER = "transfer"
Variables ¶
This section is empty.
Functions ¶
func GetDepositRecordIDBytes ¶
GetDepositRecordIDBytes returns the byte representation of the ID
func GetEpochUnbondingRecordIDBytes ¶
GetEpochUnbondingRecordIDBytes returns the byte representation of the ID
func GetEpochUnbondingRecordIDFromBytes ¶
GetEpochUnbondingRecordIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func TransferCallback ¶ added in v0.5.1
func TransferCallback(k Keeper, ctx sdk.Context, packet channeltypes.Packet, ack *channeltypes.Acknowledgement, args []byte) error
Types ¶
type ICACallback ¶ added in v0.5.1
type ICACallback func(Keeper, sdk.Context, channeltypes.Packet, *channeltypes.Acknowledgement, []byte) error
ICACallbacks wrapper struct for stakeibc keeper
type ICACallbacks ¶ added in v0.5.1
type ICACallbacks struct {
// contains filtered or unexported fields
}
func (ICACallbacks) AddICACallback ¶ added in v0.5.1
func (c ICACallbacks) AddICACallback(id string, fn interface{}) icacallbackstypes.ICACallbackHandler
func (ICACallbacks) CallICACallback ¶ added in v0.5.1
func (c ICACallbacks) CallICACallback(ctx sdk.Context, id string, packet channeltypes.Packet, ack *channeltypes.Acknowledgement, args []byte) error
func (ICACallbacks) HasICACallback ¶ added in v0.5.1
func (c ICACallbacks) HasICACallback(id string) bool
func (ICACallbacks) RegisterICACallbacks ¶ added in v0.5.1
func (c ICACallbacks) RegisterICACallbacks() icacallbackstypes.ICACallbackHandler
type Keeper ¶
type Keeper struct { // *cosmosibckeeper.Keeper Cdc codec.BinaryCodec AccountKeeper types.AccountKeeper TransferKeeper ibctransferkeeper.Keeper IBCKeeper ibckeeper.Keeper ICACallbacksKeeper icacallbackskeeper.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( Cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, scopedKeeper capabilitykeeper.ScopedKeeper, AccountKeeper types.AccountKeeper, TransferKeeper ibctransferkeeper.Keeper, ibcKeeper ibckeeper.Keeper, ICACallbacksKeeper icacallbackskeeper.Keeper, ) *Keeper
func (Keeper) AddHostZoneToEpochUnbondingRecord ¶ added in v0.5.1
func (k Keeper) AddHostZoneToEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64, chainId string, hzu *types.HostZoneUnbonding) (val *types.EpochUnbondingRecord, success bool)
func (Keeper) AppendDepositRecord ¶
AppendDepositRecord appends a depositRecord in the store with a new id and update the count
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) DepositRecord ¶
func (k Keeper) DepositRecord(c context.Context, req *types.QueryGetDepositRecordRequest) (*types.QueryGetDepositRecordResponse, error)
func (Keeper) DepositRecordAll ¶
func (k Keeper) DepositRecordAll(c context.Context, req *types.QueryAllDepositRecordRequest) (*types.QueryAllDepositRecordResponse, error)
func (Keeper) EpochUnbondingRecord ¶
func (k Keeper) EpochUnbondingRecord(c context.Context, req *types.QueryGetEpochUnbondingRecordRequest) (*types.QueryGetEpochUnbondingRecordResponse, error)
func (Keeper) EpochUnbondingRecordAll ¶
func (k Keeper) EpochUnbondingRecordAll(c context.Context, req *types.QueryAllEpochUnbondingRecordRequest) (*types.QueryAllEpochUnbondingRecordResponse, error)
func (Keeper) GetAllDepositRecord ¶
func (k Keeper) GetAllDepositRecord(ctx sdk.Context) (list []types.DepositRecord)
GetAllDepositRecord returns all depositRecord
func (Keeper) GetAllEpochUnbondingRecord ¶
func (k Keeper) GetAllEpochUnbondingRecord(ctx sdk.Context) (list []types.EpochUnbondingRecord)
GetAllEpochUnbondingRecord returns all epochUnbondingRecord
func (Keeper) GetAllPreviousEpochUnbondingRecords ¶ added in v0.5.1
func (k Keeper) GetAllPreviousEpochUnbondingRecords(ctx sdk.Context, epochNumber uint64) (list []types.EpochUnbondingRecord)
GetAllPreviousEpochUnbondingRecords returns all epochUnbondingRecords prior to a given epoch
func (Keeper) GetAllUserRedemptionRecord ¶
func (k Keeper) GetAllUserRedemptionRecord(ctx sdk.Context) (list []types.UserRedemptionRecord)
GetAllUserRedemptionRecord returns all userRedemptionRecord
func (Keeper) GetDepositRecord ¶
GetDepositRecord returns a depositRecord from its id
func (Keeper) GetDepositRecordByEpochAndChain ¶
func (Keeper) GetDepositRecordCount ¶
GetDepositRecordCount get the total number of depositRecord
func (Keeper) GetEpochUnbondingRecord ¶
func (k Keeper) GetEpochUnbondingRecord(ctx sdk.Context, epochNumber uint64) (val types.EpochUnbondingRecord, found bool)
GetEpochUnbondingRecord returns a epochUnbondingRecord from its id
func (Keeper) GetHostZoneUnbondingByChainId ¶ added in v0.5.1
func (k Keeper) GetHostZoneUnbondingByChainId(ctx sdk.Context, epochNumber uint64, chainId string) (val *types.HostZoneUnbonding, found bool)
GetEpochUnbondingRecordByEpoch returns a epochUnbondingRecord from its epochNumber
func (Keeper) GetUserRedemptionRecord ¶
func (k Keeper) GetUserRedemptionRecord(ctx sdk.Context, id string) (val types.UserRedemptionRecord, found bool)
GetUserRedemptionRecord returns a userRedemptionRecord from its id
func (Keeper) ICACallbackHandler ¶ added in v0.5.1
func (k Keeper) ICACallbackHandler() ICACallbacks
func (Keeper) IterateUserRedemptionRecords ¶
func (k Keeper) IterateUserRedemptionRecords(ctx sdk.Context, fn func(index int64, userRedemptionRecord types.UserRedemptionRecord) (stop bool))
IterateUserRedemptionRecords iterates zones
func (Keeper) MarshalTransferCallbackArgs ¶ added in v0.5.1
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveDepositRecord ¶
RemoveDepositRecord removes a depositRecord from the store
func (Keeper) RemoveEpochUnbondingRecord ¶
RemoveEpochUnbondingRecord removes a epochUnbondingRecord from the store
func (Keeper) RemoveUserRedemptionRecord ¶
RemoveUserRedemptionRecord removes a userRedemptionRecord from the store
func (Keeper) SetDepositRecord ¶
func (k Keeper) SetDepositRecord(ctx sdk.Context, depositRecord types.DepositRecord)
SetDepositRecord set a specific depositRecord in the store
func (Keeper) SetDepositRecordCount ¶
SetDepositRecordCount set the total number of depositRecord
func (Keeper) SetEpochUnbondingRecord ¶
func (k Keeper) SetEpochUnbondingRecord(ctx sdk.Context, epochUnbondingRecord types.EpochUnbondingRecord)
SetEpochUnbondingRecord set a specific epochUnbondingRecord in the store
func (Keeper) SetUserRedemptionRecord ¶
func (k Keeper) SetUserRedemptionRecord(ctx sdk.Context, userRedemptionRecord types.UserRedemptionRecord)
SetUserRedemptionRecord set a specific userRedemptionRecord in the store
func (Keeper) UnmarshalTransferCallbackArgs ¶ added in v0.5.1
func (Keeper) UserRedemptionRecord ¶
func (k Keeper) UserRedemptionRecord(c context.Context, req *types.QueryGetUserRedemptionRecordRequest) (*types.QueryGetUserRedemptionRecordResponse, error)
func (Keeper) UserRedemptionRecordAll ¶
func (k Keeper) UserRedemptionRecordAll(c context.Context, req *types.QueryAllUserRedemptionRecordRequest) (*types.QueryAllUserRedemptionRecordResponse, error)
func (Keeper) UserRedemptionRecordForUser ¶ added in v1.0.1
func (k Keeper) UserRedemptionRecordForUser(c context.Context, req *types.QueryAllUserRedemptionRecordForUserRequest) (*types.QueryAllUserRedemptionRecordForUserResponse, error)
Source Files ¶
- callback_transfer.go
- callbacks.go
- deposit_record.go
- epoch_unbonding_record.go
- grpc_query.go
- grpc_query_deposit_record.go
- grpc_query_epoch_unbonding_record.go
- grpc_query_params.go
- grpc_query_user_redemption_record.go
- grpc_query_user_redemption_record_for_user.go
- keeper.go
- msg_server.go
- params.go
- user_redemption_record.go