Documentation ¶
Index ¶
- Constants
- Variables
- func GetMultiStakingAgentIDKey(denom, valAddr string) []byte
- func GetMultiStakingAgentKey(agentID uint64) []byte
- func GetMultiStakingSharesKey(agentID uint64, delegator string) []byte
- func GetMultiStakingUnbondingDelegationTimeKey(timestamp time.Time) []byte
- func GetMultiStakingUnbondingKey(agentID uint64, delegator string) []byte
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type AccountKeeper
- type BankKeeper
- type DAPair
- func (*DAPair) Descriptor() ([]byte, []int)
- func (m *DAPair) GetAgentId() uint64
- func (m *DAPair) GetDelegatorAddress() string
- func (m *DAPair) Marshal() (dAtA []byte, err error)
- func (m *DAPair) MarshalTo(dAtA []byte) (int, error)
- func (m *DAPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DAPair) ProtoMessage()
- func (m *DAPair) Reset()
- func (m *DAPair) Size() (n int)
- func (m *DAPair) String() string
- func (m *DAPair) Unmarshal(dAtA []byte) error
- func (m *DAPair) XXX_DiscardUnknown()
- func (m *DAPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DAPair) XXX_Merge(src proto.Message)
- func (m *DAPair) XXX_Size() int
- func (m *DAPair) XXX_Unmarshal(b []byte) error
- type DAPairs
- func (*DAPairs) Descriptor() ([]byte, []int)
- func (m *DAPairs) GetPairs() []DAPair
- func (m *DAPairs) Marshal() (dAtA []byte, err error)
- func (m *DAPairs) MarshalTo(dAtA []byte) (int, error)
- func (m *DAPairs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DAPairs) ProtoMessage()
- func (m *DAPairs) Reset()
- func (m *DAPairs) Size() (n int)
- func (m *DAPairs) String() string
- func (m *DAPairs) Unmarshal(dAtA []byte) error
- func (m *DAPairs) XXX_DiscardUnknown()
- func (m *DAPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DAPairs) XXX_Merge(src proto.Message)
- func (m *DAPairs) XXX_Size() int
- func (m *DAPairs) XXX_Unmarshal(b []byte) error
- type Dec
- type DistributionKeeper
- type EpochKeeper
- type EquivalentMultiplierRecord
- func (*EquivalentMultiplierRecord) Descriptor() ([]byte, []int)
- func (m *EquivalentMultiplierRecord) GetDenom() string
- func (m *EquivalentMultiplierRecord) GetEpochNumber() int64
- func (m *EquivalentMultiplierRecord) Marshal() (dAtA []byte, err error)
- func (m *EquivalentMultiplierRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *EquivalentMultiplierRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EquivalentMultiplierRecord) ProtoMessage()
- func (m *EquivalentMultiplierRecord) Reset()
- func (m *EquivalentMultiplierRecord) Size() (n int)
- func (m *EquivalentMultiplierRecord) String() string
- func (m *EquivalentMultiplierRecord) Unmarshal(dAtA []byte) error
- func (m *EquivalentMultiplierRecord) XXX_DiscardUnknown()
- func (m *EquivalentMultiplierRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EquivalentMultiplierRecord) XXX_Merge(src proto.Message)
- func (m *EquivalentMultiplierRecord) XXX_Size() int
- func (m *EquivalentMultiplierRecord) XXX_Unmarshal(b []byte) error
- type Int
- type MsgAddMultiStakingDenom
- func (*MsgAddMultiStakingDenom) Descriptor() ([]byte, []int)
- func (m *MsgAddMultiStakingDenom) GetDeonm() string
- func (m *MsgAddMultiStakingDenom) GetSender() string
- func (m *MsgAddMultiStakingDenom) Marshal() (dAtA []byte, err error)
- func (m *MsgAddMultiStakingDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddMultiStakingDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddMultiStakingDenom) ProtoMessage()
- func (m *MsgAddMultiStakingDenom) Reset()
- func (m *MsgAddMultiStakingDenom) Size() (n int)
- func (m *MsgAddMultiStakingDenom) String() string
- func (m *MsgAddMultiStakingDenom) Unmarshal(dAtA []byte) error
- func (m *MsgAddMultiStakingDenom) XXX_DiscardUnknown()
- func (m *MsgAddMultiStakingDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddMultiStakingDenom) XXX_Merge(src proto.Message)
- func (m *MsgAddMultiStakingDenom) XXX_Size() int
- func (m *MsgAddMultiStakingDenom) XXX_Unmarshal(b []byte) error
- type MsgAddMultiStakingDenomResponse
- func (*MsgAddMultiStakingDenomResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddMultiStakingDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddMultiStakingDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddMultiStakingDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddMultiStakingDenomResponse) ProtoMessage()
- func (m *MsgAddMultiStakingDenomResponse) Reset()
- func (m *MsgAddMultiStakingDenomResponse) Size() (n int)
- func (m *MsgAddMultiStakingDenomResponse) String() string
- func (m *MsgAddMultiStakingDenomResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddMultiStakingDenomResponse) XXX_DiscardUnknown()
- func (m *MsgAddMultiStakingDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddMultiStakingDenomResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddMultiStakingDenomResponse) XXX_Size() int
- func (m *MsgAddMultiStakingDenomResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMultiStakingDelegate
- func (*MsgMultiStakingDelegate) Descriptor() ([]byte, []int)
- func (m *MsgMultiStakingDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiStakingDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiStakingDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiStakingDelegate) ProtoMessage()
- func (m *MsgMultiStakingDelegate) Reset()
- func (m *MsgMultiStakingDelegate) Size() (n int)
- func (m *MsgMultiStakingDelegate) String() string
- func (m *MsgMultiStakingDelegate) Unmarshal(dAtA []byte) error
- func (m *MsgMultiStakingDelegate) XXX_DiscardUnknown()
- func (m *MsgMultiStakingDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiStakingDelegate) XXX_Merge(src proto.Message)
- func (m *MsgMultiStakingDelegate) XXX_Size() int
- func (m *MsgMultiStakingDelegate) XXX_Unmarshal(b []byte) error
- type MsgMultiStakingDelegateResponse
- func (*MsgMultiStakingDelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgMultiStakingDelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiStakingDelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiStakingDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiStakingDelegateResponse) ProtoMessage()
- func (m *MsgMultiStakingDelegateResponse) Reset()
- func (m *MsgMultiStakingDelegateResponse) Size() (n int)
- func (m *MsgMultiStakingDelegateResponse) String() string
- func (m *MsgMultiStakingDelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMultiStakingDelegateResponse) XXX_DiscardUnknown()
- func (m *MsgMultiStakingDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiStakingDelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgMultiStakingDelegateResponse) XXX_Size() int
- func (m *MsgMultiStakingDelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgMultiStakingUndelegate
- func (*MsgMultiStakingUndelegate) Descriptor() ([]byte, []int)
- func (m *MsgMultiStakingUndelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiStakingUndelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiStakingUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiStakingUndelegate) ProtoMessage()
- func (m *MsgMultiStakingUndelegate) Reset()
- func (m *MsgMultiStakingUndelegate) Size() (n int)
- func (m *MsgMultiStakingUndelegate) String() string
- func (m *MsgMultiStakingUndelegate) Unmarshal(dAtA []byte) error
- func (m *MsgMultiStakingUndelegate) XXX_DiscardUnknown()
- func (m *MsgMultiStakingUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiStakingUndelegate) XXX_Merge(src proto.Message)
- func (m *MsgMultiStakingUndelegate) XXX_Size() int
- func (m *MsgMultiStakingUndelegate) XXX_Unmarshal(b []byte) error
- type MsgMultiStakingUndelegateResponse
- func (*MsgMultiStakingUndelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgMultiStakingUndelegateResponse) GetAmount() types.Coin
- func (m *MsgMultiStakingUndelegateResponse) GetCompletionTime() time.Time
- func (m *MsgMultiStakingUndelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiStakingUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiStakingUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiStakingUndelegateResponse) ProtoMessage()
- func (m *MsgMultiStakingUndelegateResponse) Reset()
- func (m *MsgMultiStakingUndelegateResponse) Size() (n int)
- func (m *MsgMultiStakingUndelegateResponse) String() string
- func (m *MsgMultiStakingUndelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMultiStakingUndelegateResponse) XXX_DiscardUnknown()
- func (m *MsgMultiStakingUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiStakingUndelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgMultiStakingUndelegateResponse) XXX_Size() int
- func (m *MsgMultiStakingUndelegateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MultiStakingAgent
- func (ma MultiStakingAgent) CalculateCoins(shareAmt math.Int) math.Int
- func (ma MultiStakingAgent) CalculateShares(tokenAmt math.Int) math.Int
- func (*MultiStakingAgent) Descriptor() ([]byte, []int)
- func (m *MultiStakingAgent) GetDelegateAddress() string
- func (m *MultiStakingAgent) GetId() uint64
- func (m *MultiStakingAgent) GetStakeDenom() string
- func (m *MultiStakingAgent) GetValidatorAddress() string
- func (m *MultiStakingAgent) GetWithdrawAddress() string
- func (m *MultiStakingAgent) Marshal() (dAtA []byte, err error)
- func (m *MultiStakingAgent) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiStakingAgent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiStakingAgent) ProtoMessage()
- func (m *MultiStakingAgent) Reset()
- func (m *MultiStakingAgent) Size() (n int)
- func (m *MultiStakingAgent) String() string
- func (m *MultiStakingAgent) Unmarshal(dAtA []byte) error
- func (m *MultiStakingAgent) XXX_DiscardUnknown()
- func (m *MultiStakingAgent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiStakingAgent) XXX_Merge(src proto.Message)
- func (m *MultiStakingAgent) XXX_Size() int
- func (m *MultiStakingAgent) XXX_Unmarshal(b []byte) error
- type MultiStakingDelegation
- func (*MultiStakingDelegation) Descriptor() ([]byte, []int)
- func (m *MultiStakingDelegation) GetDelegationAmount() types.Coin
- func (m *MultiStakingDelegation) GetDelegatorAddress() string
- func (m *MultiStakingDelegation) GetEquivalentStakedAmount() *types.Coin
- func (m *MultiStakingDelegation) GetValidatorAddress() string
- func (m *MultiStakingDelegation) Marshal() (dAtA []byte, err error)
- func (m *MultiStakingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiStakingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiStakingDelegation) ProtoMessage()
- func (m *MultiStakingDelegation) Reset()
- func (m *MultiStakingDelegation) Size() (n int)
- func (m *MultiStakingDelegation) String() string
- func (m *MultiStakingDelegation) Unmarshal(dAtA []byte) error
- func (m *MultiStakingDelegation) XXX_DiscardUnknown()
- func (m *MultiStakingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiStakingDelegation) XXX_Merge(src proto.Message)
- func (m *MultiStakingDelegation) XXX_Size() int
- func (m *MultiStakingDelegation) XXX_Unmarshal(b []byte) error
- type MultiStakingDenomWhiteList
- func (*MultiStakingDenomWhiteList) Descriptor() ([]byte, []int)
- func (m *MultiStakingDenomWhiteList) GetDenomList() []string
- func (m *MultiStakingDenomWhiteList) Marshal() (dAtA []byte, err error)
- func (m *MultiStakingDenomWhiteList) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiStakingDenomWhiteList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiStakingDenomWhiteList) ProtoMessage()
- func (m *MultiStakingDenomWhiteList) Reset()
- func (m *MultiStakingDenomWhiteList) Size() (n int)
- func (m *MultiStakingDenomWhiteList) String() string
- func (m *MultiStakingDenomWhiteList) Unmarshal(dAtA []byte) error
- func (m *MultiStakingDenomWhiteList) XXX_DiscardUnknown()
- func (m *MultiStakingDenomWhiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiStakingDenomWhiteList) XXX_Merge(src proto.Message)
- func (m *MultiStakingDenomWhiteList) XXX_Size() int
- func (m *MultiStakingDenomWhiteList) XXX_Unmarshal(b []byte) error
- type MultiStakingUnbonding
- func (*MultiStakingUnbonding) Descriptor() ([]byte, []int)
- func (m *MultiStakingUnbonding) GetAgentId() uint64
- func (m *MultiStakingUnbonding) GetDelegatorAddress() string
- func (m *MultiStakingUnbonding) GetEntries() []MultiStakingUnbondingEntry
- func (m *MultiStakingUnbonding) Marshal() (dAtA []byte, err error)
- func (m *MultiStakingUnbonding) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiStakingUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiStakingUnbonding) ProtoMessage()
- func (ubd *MultiStakingUnbonding) RemoveEntry(i int64)
- func (m *MultiStakingUnbonding) Reset()
- func (m *MultiStakingUnbonding) Size() (n int)
- func (m *MultiStakingUnbonding) String() string
- func (m *MultiStakingUnbonding) Unmarshal(dAtA []byte) error
- func (m *MultiStakingUnbonding) XXX_DiscardUnknown()
- func (m *MultiStakingUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiStakingUnbonding) XXX_Merge(src proto.Message)
- func (m *MultiStakingUnbonding) XXX_Size() int
- func (m *MultiStakingUnbonding) XXX_Unmarshal(b []byte) error
- type MultiStakingUnbondingEntry
- func (*MultiStakingUnbondingEntry) Descriptor() ([]byte, []int)
- func (m *MultiStakingUnbondingEntry) GetBalance() types.Coin
- func (m *MultiStakingUnbondingEntry) GetCompletionTime() time.Time
- func (m *MultiStakingUnbondingEntry) GetInitialBalance() types.Coin
- func (e MultiStakingUnbondingEntry) IsMature(currentTime time.Time) bool
- func (m *MultiStakingUnbondingEntry) Marshal() (dAtA []byte, err error)
- func (m *MultiStakingUnbondingEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiStakingUnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiStakingUnbondingEntry) ProtoMessage()
- func (m *MultiStakingUnbondingEntry) Reset()
- func (m *MultiStakingUnbondingEntry) Size() (n int)
- func (m *MultiStakingUnbondingEntry) String() string
- func (m *MultiStakingUnbondingEntry) Unmarshal(dAtA []byte) error
- func (m *MultiStakingUnbondingEntry) XXX_DiscardUnknown()
- func (m *MultiStakingUnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiStakingUnbondingEntry) XXX_Merge(src proto.Message)
- func (m *MultiStakingUnbondingEntry) XXX_Size() int
- func (m *MultiStakingUnbondingEntry) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddMultiStakingDenom(ctx context.Context, req *MsgAddMultiStakingDenom) (*MsgAddMultiStakingDenomResponse, error)
- func (*UnimplementedMsgServer) MultiStakingDelegate(ctx context.Context, req *MsgMultiStakingDelegate) (*MsgMultiStakingDelegateResponse, error)
- func (*UnimplementedMsgServer) MultiStakingUndelegate(ctx context.Context, req *MsgMultiStakingUndelegate) (*MsgMultiStakingDelegateResponse, error)
Constants ¶
View Source
const ( RefreshAgentDelegationEpochID = "MultiStakingRefreshAgentDelegation" CollectAgentStakingRewardEpochID = "MultiStakingCollectReward" )
View Source
const ( // ModuleName is the name of the multistaking module ModuleName = "multistaking" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the msg router key for the multistaking module RouterKey = ModuleName QuerierRoute = ModuleName )
Variables ¶
View Source
var ( ErrForbidStakingDenom = sdkioerrors.Register(ModuleName, 1, "The denom is forbidden in multistaking module") ErrNotExistedValidator = sdkioerrors.Register(ModuleName, 2, "The validator is not exist") ErrNotExistedAgent = sdkioerrors.Register(ModuleName, 4, "The validator has't multistaking agent") ErrNoUnbondingDelegation = sdkioerrors.Register(ModuleName, 5, "The unbonding delegation is not existed") )
View Source
var ( // Key for the denom white list which allow used for multistaking MultiStakingDenomWhiteListKey = []byte{0x11} // Prefix for key which used in `{denom + validator_address} => MultiStakingAgent's ID` MultiStakingAgentIDPrefix = []byte{0x21} // Prefix for Key which used in `id => MultiStakingAgent` MultiStakingAgentPrefix = []byte{0x22} MultiStakingLatestAgentIDKey = []byte{0x23} // Prefix for key which used in `{agent_id + delegator_address} => MultiStakingUnbonding` MultiStakingUnbondingPrefix = []byte{0x31} MultiStakingUnbondingQueueKey = []byte{0x32} MultiStakingSharesPrefix = []byte{0x41} )
Functions ¶
func GetMultiStakingAgentKey ¶
func RegisterMsgServer ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccount(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, acc authtypes.AccountI) GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI GetModuleAddress(name string) sdk.AccAddress }
AccountKeeper defines the expected account keeper
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type DAPair ¶
type DAPair struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` AgentId uint64 `protobuf:"varint,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` }
func (*DAPair) Descriptor ¶
func (*DAPair) GetAgentId ¶
func (*DAPair) GetDelegatorAddress ¶
func (*DAPair) MarshalToSizedBuffer ¶
func (*DAPair) ProtoMessage ¶
func (*DAPair) ProtoMessage()
func (*DAPair) XXX_DiscardUnknown ¶
func (m *DAPair) XXX_DiscardUnknown()
func (*DAPair) XXX_Marshal ¶
func (*DAPair) XXX_Unmarshal ¶
type DAPairs ¶
type DAPairs struct {
Pairs []DAPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}
func (*DAPairs) Descriptor ¶
func (*DAPairs) MarshalToSizedBuffer ¶
func (*DAPairs) ProtoMessage ¶
func (*DAPairs) ProtoMessage()
func (*DAPairs) XXX_DiscardUnknown ¶
func (m *DAPairs) XXX_DiscardUnknown()
func (*DAPairs) XXX_Marshal ¶
func (*DAPairs) XXX_Unmarshal ¶
type DistributionKeeper ¶
type DistributionKeeper interface {
WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
}
type EpochKeeper ¶
type EquivalentMultiplierRecord ¶
type EquivalentMultiplierRecord struct { EpochNumber int64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Multiplier Dec `protobuf:"bytes,3,opt,name=multiplier,proto3,customtype=Dec" json:"multiplier"` }
func (*EquivalentMultiplierRecord) Descriptor ¶
func (*EquivalentMultiplierRecord) Descriptor() ([]byte, []int)
func (*EquivalentMultiplierRecord) GetDenom ¶
func (m *EquivalentMultiplierRecord) GetDenom() string
func (*EquivalentMultiplierRecord) GetEpochNumber ¶
func (m *EquivalentMultiplierRecord) GetEpochNumber() int64
func (*EquivalentMultiplierRecord) Marshal ¶
func (m *EquivalentMultiplierRecord) Marshal() (dAtA []byte, err error)
func (*EquivalentMultiplierRecord) MarshalTo ¶
func (m *EquivalentMultiplierRecord) MarshalTo(dAtA []byte) (int, error)
func (*EquivalentMultiplierRecord) MarshalToSizedBuffer ¶
func (m *EquivalentMultiplierRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EquivalentMultiplierRecord) ProtoMessage ¶
func (*EquivalentMultiplierRecord) ProtoMessage()
func (*EquivalentMultiplierRecord) Reset ¶
func (m *EquivalentMultiplierRecord) Reset()
func (*EquivalentMultiplierRecord) Size ¶
func (m *EquivalentMultiplierRecord) Size() (n int)
func (*EquivalentMultiplierRecord) String ¶
func (m *EquivalentMultiplierRecord) String() string
func (*EquivalentMultiplierRecord) Unmarshal ¶
func (m *EquivalentMultiplierRecord) Unmarshal(dAtA []byte) error
func (*EquivalentMultiplierRecord) XXX_DiscardUnknown ¶
func (m *EquivalentMultiplierRecord) XXX_DiscardUnknown()
func (*EquivalentMultiplierRecord) XXX_Marshal ¶
func (m *EquivalentMultiplierRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EquivalentMultiplierRecord) XXX_Merge ¶
func (m *EquivalentMultiplierRecord) XXX_Merge(src proto.Message)
func (*EquivalentMultiplierRecord) XXX_Size ¶
func (m *EquivalentMultiplierRecord) XXX_Size() int
func (*EquivalentMultiplierRecord) XXX_Unmarshal ¶
func (m *EquivalentMultiplierRecord) XXX_Unmarshal(b []byte) error
type MsgAddMultiStakingDenom ¶
type MsgAddMultiStakingDenom struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Deonm string `protobuf:"bytes,2,opt,name=deonm,proto3" json:"deonm,omitempty"` }
func (*MsgAddMultiStakingDenom) Descriptor ¶
func (*MsgAddMultiStakingDenom) Descriptor() ([]byte, []int)
func (*MsgAddMultiStakingDenom) GetDeonm ¶
func (m *MsgAddMultiStakingDenom) GetDeonm() string
func (*MsgAddMultiStakingDenom) GetSender ¶
func (m *MsgAddMultiStakingDenom) GetSender() string
func (*MsgAddMultiStakingDenom) Marshal ¶
func (m *MsgAddMultiStakingDenom) Marshal() (dAtA []byte, err error)
func (*MsgAddMultiStakingDenom) MarshalTo ¶
func (m *MsgAddMultiStakingDenom) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddMultiStakingDenom) MarshalToSizedBuffer ¶
func (m *MsgAddMultiStakingDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddMultiStakingDenom) ProtoMessage ¶
func (*MsgAddMultiStakingDenom) ProtoMessage()
func (*MsgAddMultiStakingDenom) Reset ¶
func (m *MsgAddMultiStakingDenom) Reset()
func (*MsgAddMultiStakingDenom) Size ¶
func (m *MsgAddMultiStakingDenom) Size() (n int)
func (*MsgAddMultiStakingDenom) String ¶
func (m *MsgAddMultiStakingDenom) String() string
func (*MsgAddMultiStakingDenom) Unmarshal ¶
func (m *MsgAddMultiStakingDenom) Unmarshal(dAtA []byte) error
func (*MsgAddMultiStakingDenom) XXX_DiscardUnknown ¶
func (m *MsgAddMultiStakingDenom) XXX_DiscardUnknown()
func (*MsgAddMultiStakingDenom) XXX_Marshal ¶
func (m *MsgAddMultiStakingDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddMultiStakingDenom) XXX_Merge ¶
func (m *MsgAddMultiStakingDenom) XXX_Merge(src proto.Message)
func (*MsgAddMultiStakingDenom) XXX_Size ¶
func (m *MsgAddMultiStakingDenom) XXX_Size() int
func (*MsgAddMultiStakingDenom) XXX_Unmarshal ¶
func (m *MsgAddMultiStakingDenom) XXX_Unmarshal(b []byte) error
type MsgAddMultiStakingDenomResponse ¶
type MsgAddMultiStakingDenomResponse struct { }
func (*MsgAddMultiStakingDenomResponse) Descriptor ¶
func (*MsgAddMultiStakingDenomResponse) Descriptor() ([]byte, []int)
func (*MsgAddMultiStakingDenomResponse) Marshal ¶
func (m *MsgAddMultiStakingDenomResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddMultiStakingDenomResponse) MarshalTo ¶
func (m *MsgAddMultiStakingDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddMultiStakingDenomResponse) MarshalToSizedBuffer ¶
func (m *MsgAddMultiStakingDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddMultiStakingDenomResponse) ProtoMessage ¶
func (*MsgAddMultiStakingDenomResponse) ProtoMessage()
func (*MsgAddMultiStakingDenomResponse) Reset ¶
func (m *MsgAddMultiStakingDenomResponse) Reset()
func (*MsgAddMultiStakingDenomResponse) Size ¶
func (m *MsgAddMultiStakingDenomResponse) Size() (n int)
func (*MsgAddMultiStakingDenomResponse) String ¶
func (m *MsgAddMultiStakingDenomResponse) String() string
func (*MsgAddMultiStakingDenomResponse) Unmarshal ¶
func (m *MsgAddMultiStakingDenomResponse) Unmarshal(dAtA []byte) error
func (*MsgAddMultiStakingDenomResponse) XXX_DiscardUnknown ¶
func (m *MsgAddMultiStakingDenomResponse) XXX_DiscardUnknown()
func (*MsgAddMultiStakingDenomResponse) XXX_Marshal ¶
func (m *MsgAddMultiStakingDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddMultiStakingDenomResponse) XXX_Merge ¶
func (m *MsgAddMultiStakingDenomResponse) XXX_Merge(src proto.Message)
func (*MsgAddMultiStakingDenomResponse) XXX_Size ¶
func (m *MsgAddMultiStakingDenomResponse) XXX_Size() int
func (*MsgAddMultiStakingDenomResponse) XXX_Unmarshal ¶
func (m *MsgAddMultiStakingDenomResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddMultiStakingDenom(ctx context.Context, in *MsgAddMultiStakingDenom, opts ...grpc.CallOption) (*MsgAddMultiStakingDenomResponse, error) MultiStakingDelegate(ctx context.Context, in *MsgMultiStakingDelegate, opts ...grpc.CallOption) (*MsgMultiStakingDelegateResponse, error) MultiStakingUndelegate(ctx context.Context, in *MsgMultiStakingUndelegate, opts ...grpc.CallOption) (*MsgMultiStakingDelegateResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgMultiStakingDelegate ¶
type MsgMultiStakingDelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
func (*MsgMultiStakingDelegate) Descriptor ¶
func (*MsgMultiStakingDelegate) Descriptor() ([]byte, []int)
func (*MsgMultiStakingDelegate) Marshal ¶
func (m *MsgMultiStakingDelegate) Marshal() (dAtA []byte, err error)
func (*MsgMultiStakingDelegate) MarshalTo ¶
func (m *MsgMultiStakingDelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgMultiStakingDelegate) MarshalToSizedBuffer ¶
func (m *MsgMultiStakingDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiStakingDelegate) ProtoMessage ¶
func (*MsgMultiStakingDelegate) ProtoMessage()
func (*MsgMultiStakingDelegate) Reset ¶
func (m *MsgMultiStakingDelegate) Reset()
func (*MsgMultiStakingDelegate) Size ¶
func (m *MsgMultiStakingDelegate) Size() (n int)
func (*MsgMultiStakingDelegate) String ¶
func (m *MsgMultiStakingDelegate) String() string
func (*MsgMultiStakingDelegate) Unmarshal ¶
func (m *MsgMultiStakingDelegate) Unmarshal(dAtA []byte) error
func (*MsgMultiStakingDelegate) XXX_DiscardUnknown ¶
func (m *MsgMultiStakingDelegate) XXX_DiscardUnknown()
func (*MsgMultiStakingDelegate) XXX_Marshal ¶
func (m *MsgMultiStakingDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiStakingDelegate) XXX_Merge ¶
func (m *MsgMultiStakingDelegate) XXX_Merge(src proto.Message)
func (*MsgMultiStakingDelegate) XXX_Size ¶
func (m *MsgMultiStakingDelegate) XXX_Size() int
func (*MsgMultiStakingDelegate) XXX_Unmarshal ¶
func (m *MsgMultiStakingDelegate) XXX_Unmarshal(b []byte) error
type MsgMultiStakingDelegateResponse ¶
type MsgMultiStakingDelegateResponse struct { }
func (*MsgMultiStakingDelegateResponse) Descriptor ¶
func (*MsgMultiStakingDelegateResponse) Descriptor() ([]byte, []int)
func (*MsgMultiStakingDelegateResponse) Marshal ¶
func (m *MsgMultiStakingDelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgMultiStakingDelegateResponse) MarshalTo ¶
func (m *MsgMultiStakingDelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMultiStakingDelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgMultiStakingDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiStakingDelegateResponse) ProtoMessage ¶
func (*MsgMultiStakingDelegateResponse) ProtoMessage()
func (*MsgMultiStakingDelegateResponse) Reset ¶
func (m *MsgMultiStakingDelegateResponse) Reset()
func (*MsgMultiStakingDelegateResponse) Size ¶
func (m *MsgMultiStakingDelegateResponse) Size() (n int)
func (*MsgMultiStakingDelegateResponse) String ¶
func (m *MsgMultiStakingDelegateResponse) String() string
func (*MsgMultiStakingDelegateResponse) Unmarshal ¶
func (m *MsgMultiStakingDelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgMultiStakingDelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgMultiStakingDelegateResponse) XXX_DiscardUnknown()
func (*MsgMultiStakingDelegateResponse) XXX_Marshal ¶
func (m *MsgMultiStakingDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiStakingDelegateResponse) XXX_Merge ¶
func (m *MsgMultiStakingDelegateResponse) XXX_Merge(src proto.Message)
func (*MsgMultiStakingDelegateResponse) XXX_Size ¶
func (m *MsgMultiStakingDelegateResponse) XXX_Size() int
func (*MsgMultiStakingDelegateResponse) XXX_Unmarshal ¶
func (m *MsgMultiStakingDelegateResponse) XXX_Unmarshal(b []byte) error
type MsgMultiStakingUndelegate ¶
type MsgMultiStakingUndelegate struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
func (*MsgMultiStakingUndelegate) Descriptor ¶
func (*MsgMultiStakingUndelegate) Descriptor() ([]byte, []int)
func (*MsgMultiStakingUndelegate) Marshal ¶
func (m *MsgMultiStakingUndelegate) Marshal() (dAtA []byte, err error)
func (*MsgMultiStakingUndelegate) MarshalTo ¶
func (m *MsgMultiStakingUndelegate) MarshalTo(dAtA []byte) (int, error)
func (*MsgMultiStakingUndelegate) MarshalToSizedBuffer ¶
func (m *MsgMultiStakingUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiStakingUndelegate) ProtoMessage ¶
func (*MsgMultiStakingUndelegate) ProtoMessage()
func (*MsgMultiStakingUndelegate) Reset ¶
func (m *MsgMultiStakingUndelegate) Reset()
func (*MsgMultiStakingUndelegate) Size ¶
func (m *MsgMultiStakingUndelegate) Size() (n int)
func (*MsgMultiStakingUndelegate) String ¶
func (m *MsgMultiStakingUndelegate) String() string
func (*MsgMultiStakingUndelegate) Unmarshal ¶
func (m *MsgMultiStakingUndelegate) Unmarshal(dAtA []byte) error
func (*MsgMultiStakingUndelegate) XXX_DiscardUnknown ¶
func (m *MsgMultiStakingUndelegate) XXX_DiscardUnknown()
func (*MsgMultiStakingUndelegate) XXX_Marshal ¶
func (m *MsgMultiStakingUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiStakingUndelegate) XXX_Merge ¶
func (m *MsgMultiStakingUndelegate) XXX_Merge(src proto.Message)
func (*MsgMultiStakingUndelegate) XXX_Size ¶
func (m *MsgMultiStakingUndelegate) XXX_Size() int
func (*MsgMultiStakingUndelegate) XXX_Unmarshal ¶
func (m *MsgMultiStakingUndelegate) XXX_Unmarshal(b []byte) error
type MsgMultiStakingUndelegateResponse ¶
type MsgMultiStakingUndelegateResponse struct { CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
func (*MsgMultiStakingUndelegateResponse) Descriptor ¶
func (*MsgMultiStakingUndelegateResponse) Descriptor() ([]byte, []int)
func (*MsgMultiStakingUndelegateResponse) GetAmount ¶
func (m *MsgMultiStakingUndelegateResponse) GetAmount() types.Coin
func (*MsgMultiStakingUndelegateResponse) GetCompletionTime ¶
func (m *MsgMultiStakingUndelegateResponse) GetCompletionTime() time.Time
func (*MsgMultiStakingUndelegateResponse) Marshal ¶
func (m *MsgMultiStakingUndelegateResponse) Marshal() (dAtA []byte, err error)
func (*MsgMultiStakingUndelegateResponse) MarshalTo ¶
func (m *MsgMultiStakingUndelegateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMultiStakingUndelegateResponse) MarshalToSizedBuffer ¶
func (m *MsgMultiStakingUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiStakingUndelegateResponse) ProtoMessage ¶
func (*MsgMultiStakingUndelegateResponse) ProtoMessage()
func (*MsgMultiStakingUndelegateResponse) Reset ¶
func (m *MsgMultiStakingUndelegateResponse) Reset()
func (*MsgMultiStakingUndelegateResponse) Size ¶
func (m *MsgMultiStakingUndelegateResponse) Size() (n int)
func (*MsgMultiStakingUndelegateResponse) String ¶
func (m *MsgMultiStakingUndelegateResponse) String() string
func (*MsgMultiStakingUndelegateResponse) Unmarshal ¶
func (m *MsgMultiStakingUndelegateResponse) Unmarshal(dAtA []byte) error
func (*MsgMultiStakingUndelegateResponse) XXX_DiscardUnknown ¶
func (m *MsgMultiStakingUndelegateResponse) XXX_DiscardUnknown()
func (*MsgMultiStakingUndelegateResponse) XXX_Marshal ¶
func (m *MsgMultiStakingUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiStakingUndelegateResponse) XXX_Merge ¶
func (m *MsgMultiStakingUndelegateResponse) XXX_Merge(src proto.Message)
func (*MsgMultiStakingUndelegateResponse) XXX_Size ¶
func (m *MsgMultiStakingUndelegateResponse) XXX_Size() int
func (*MsgMultiStakingUndelegateResponse) XXX_Unmarshal ¶
func (m *MsgMultiStakingUndelegateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { AddMultiStakingDenom(context.Context, *MsgAddMultiStakingDenom) (*MsgAddMultiStakingDenomResponse, error) MultiStakingDelegate(context.Context, *MsgMultiStakingDelegate) (*MsgMultiStakingDelegateResponse, error) MultiStakingUndelegate(context.Context, *MsgMultiStakingUndelegate) (*MsgMultiStakingDelegateResponse, error) }
MsgServer is the server API for Msg service.
type MultiStakingAgent ¶
type MultiStakingAgent struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` StakeDenom string `protobuf:"bytes,2,opt,name=stake_denom,json=stakeDenom,proto3" json:"stake_denom,omitempty"` DelegateAddress string `protobuf:"bytes,3,opt,name=delegate_address,json=delegateAddress,proto3" json:"delegate_address,omitempty"` ValidatorAddress string `protobuf:"bytes,4,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` WithdrawAddress string `protobuf:"bytes,5,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"` StakedAmount Int `protobuf:"bytes,6,opt,name=staked_amount,json=stakedAmount,proto3,customtype=Int" json:"staked_amount"` RewardAmount Int `protobuf:"bytes,8,opt,name=reward_amount,json=rewardAmount,proto3,customtype=Int" json:"reward_amount"` }
func (MultiStakingAgent) CalculateCoins ¶
func (ma MultiStakingAgent) CalculateCoins(shareAmt math.Int) math.Int
func (MultiStakingAgent) CalculateShares ¶
func (ma MultiStakingAgent) CalculateShares(tokenAmt math.Int) math.Int
func (*MultiStakingAgent) Descriptor ¶
func (*MultiStakingAgent) Descriptor() ([]byte, []int)
func (*MultiStakingAgent) GetDelegateAddress ¶
func (m *MultiStakingAgent) GetDelegateAddress() string
func (*MultiStakingAgent) GetId ¶
func (m *MultiStakingAgent) GetId() uint64
func (*MultiStakingAgent) GetStakeDenom ¶
func (m *MultiStakingAgent) GetStakeDenom() string
func (*MultiStakingAgent) GetValidatorAddress ¶
func (m *MultiStakingAgent) GetValidatorAddress() string
func (*MultiStakingAgent) GetWithdrawAddress ¶
func (m *MultiStakingAgent) GetWithdrawAddress() string
func (*MultiStakingAgent) Marshal ¶
func (m *MultiStakingAgent) Marshal() (dAtA []byte, err error)
func (*MultiStakingAgent) MarshalTo ¶
func (m *MultiStakingAgent) MarshalTo(dAtA []byte) (int, error)
func (*MultiStakingAgent) MarshalToSizedBuffer ¶
func (m *MultiStakingAgent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiStakingAgent) ProtoMessage ¶
func (*MultiStakingAgent) ProtoMessage()
func (*MultiStakingAgent) Reset ¶
func (m *MultiStakingAgent) Reset()
func (*MultiStakingAgent) Size ¶
func (m *MultiStakingAgent) Size() (n int)
func (*MultiStakingAgent) String ¶
func (m *MultiStakingAgent) String() string
func (*MultiStakingAgent) Unmarshal ¶
func (m *MultiStakingAgent) Unmarshal(dAtA []byte) error
func (*MultiStakingAgent) XXX_DiscardUnknown ¶
func (m *MultiStakingAgent) XXX_DiscardUnknown()
func (*MultiStakingAgent) XXX_Marshal ¶
func (m *MultiStakingAgent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiStakingAgent) XXX_Merge ¶
func (m *MultiStakingAgent) XXX_Merge(src proto.Message)
func (*MultiStakingAgent) XXX_Size ¶
func (m *MultiStakingAgent) XXX_Size() int
func (*MultiStakingAgent) XXX_Unmarshal ¶
func (m *MultiStakingAgent) XXX_Unmarshal(b []byte) error
type MultiStakingDelegation ¶
type MultiStakingDelegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` DelegationAmount types.Coin `` /* 152-byte string literal not displayed */ EquivalentStakedAmount *types.Coin `` /* 182-byte string literal not displayed */ }
func (*MultiStakingDelegation) Descriptor ¶
func (*MultiStakingDelegation) Descriptor() ([]byte, []int)
func (*MultiStakingDelegation) GetDelegationAmount ¶
func (m *MultiStakingDelegation) GetDelegationAmount() types.Coin
func (*MultiStakingDelegation) GetDelegatorAddress ¶
func (m *MultiStakingDelegation) GetDelegatorAddress() string
func (*MultiStakingDelegation) GetEquivalentStakedAmount ¶
func (m *MultiStakingDelegation) GetEquivalentStakedAmount() *types.Coin
func (*MultiStakingDelegation) GetValidatorAddress ¶
func (m *MultiStakingDelegation) GetValidatorAddress() string
func (*MultiStakingDelegation) Marshal ¶
func (m *MultiStakingDelegation) Marshal() (dAtA []byte, err error)
func (*MultiStakingDelegation) MarshalTo ¶
func (m *MultiStakingDelegation) MarshalTo(dAtA []byte) (int, error)
func (*MultiStakingDelegation) MarshalToSizedBuffer ¶
func (m *MultiStakingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiStakingDelegation) ProtoMessage ¶
func (*MultiStakingDelegation) ProtoMessage()
func (*MultiStakingDelegation) Reset ¶
func (m *MultiStakingDelegation) Reset()
func (*MultiStakingDelegation) Size ¶
func (m *MultiStakingDelegation) Size() (n int)
func (*MultiStakingDelegation) String ¶
func (m *MultiStakingDelegation) String() string
func (*MultiStakingDelegation) Unmarshal ¶
func (m *MultiStakingDelegation) Unmarshal(dAtA []byte) error
func (*MultiStakingDelegation) XXX_DiscardUnknown ¶
func (m *MultiStakingDelegation) XXX_DiscardUnknown()
func (*MultiStakingDelegation) XXX_Marshal ¶
func (m *MultiStakingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiStakingDelegation) XXX_Merge ¶
func (m *MultiStakingDelegation) XXX_Merge(src proto.Message)
func (*MultiStakingDelegation) XXX_Size ¶
func (m *MultiStakingDelegation) XXX_Size() int
func (*MultiStakingDelegation) XXX_Unmarshal ¶
func (m *MultiStakingDelegation) XXX_Unmarshal(b []byte) error
type MultiStakingDenomWhiteList ¶
type MultiStakingDenomWhiteList struct {
DenomList []string `protobuf:"bytes,1,rep,name=denom_list,json=denomList,proto3" json:"denom_list,omitempty"`
}
func (*MultiStakingDenomWhiteList) Descriptor ¶
func (*MultiStakingDenomWhiteList) Descriptor() ([]byte, []int)
func (*MultiStakingDenomWhiteList) GetDenomList ¶
func (m *MultiStakingDenomWhiteList) GetDenomList() []string
func (*MultiStakingDenomWhiteList) Marshal ¶
func (m *MultiStakingDenomWhiteList) Marshal() (dAtA []byte, err error)
func (*MultiStakingDenomWhiteList) MarshalTo ¶
func (m *MultiStakingDenomWhiteList) MarshalTo(dAtA []byte) (int, error)
func (*MultiStakingDenomWhiteList) MarshalToSizedBuffer ¶
func (m *MultiStakingDenomWhiteList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiStakingDenomWhiteList) ProtoMessage ¶
func (*MultiStakingDenomWhiteList) ProtoMessage()
func (*MultiStakingDenomWhiteList) Reset ¶
func (m *MultiStakingDenomWhiteList) Reset()
func (*MultiStakingDenomWhiteList) Size ¶
func (m *MultiStakingDenomWhiteList) Size() (n int)
func (*MultiStakingDenomWhiteList) String ¶
func (m *MultiStakingDenomWhiteList) String() string
func (*MultiStakingDenomWhiteList) Unmarshal ¶
func (m *MultiStakingDenomWhiteList) Unmarshal(dAtA []byte) error
func (*MultiStakingDenomWhiteList) XXX_DiscardUnknown ¶
func (m *MultiStakingDenomWhiteList) XXX_DiscardUnknown()
func (*MultiStakingDenomWhiteList) XXX_Marshal ¶
func (m *MultiStakingDenomWhiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiStakingDenomWhiteList) XXX_Merge ¶
func (m *MultiStakingDenomWhiteList) XXX_Merge(src proto.Message)
func (*MultiStakingDenomWhiteList) XXX_Size ¶
func (m *MultiStakingDenomWhiteList) XXX_Size() int
func (*MultiStakingDenomWhiteList) XXX_Unmarshal ¶
func (m *MultiStakingDenomWhiteList) XXX_Unmarshal(b []byte) error
type MultiStakingUnbonding ¶
type MultiStakingUnbonding struct { AgentId uint64 `protobuf:"varint,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` Entries []MultiStakingUnbondingEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"` }
func (*MultiStakingUnbonding) Descriptor ¶
func (*MultiStakingUnbonding) Descriptor() ([]byte, []int)
func (*MultiStakingUnbonding) GetAgentId ¶
func (m *MultiStakingUnbonding) GetAgentId() uint64
func (*MultiStakingUnbonding) GetDelegatorAddress ¶
func (m *MultiStakingUnbonding) GetDelegatorAddress() string
func (*MultiStakingUnbonding) GetEntries ¶
func (m *MultiStakingUnbonding) GetEntries() []MultiStakingUnbondingEntry
func (*MultiStakingUnbonding) Marshal ¶
func (m *MultiStakingUnbonding) Marshal() (dAtA []byte, err error)
func (*MultiStakingUnbonding) MarshalTo ¶
func (m *MultiStakingUnbonding) MarshalTo(dAtA []byte) (int, error)
func (*MultiStakingUnbonding) MarshalToSizedBuffer ¶
func (m *MultiStakingUnbonding) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiStakingUnbonding) ProtoMessage ¶
func (*MultiStakingUnbonding) ProtoMessage()
func (*MultiStakingUnbonding) RemoveEntry ¶
func (ubd *MultiStakingUnbonding) RemoveEntry(i int64)
func (*MultiStakingUnbonding) Reset ¶
func (m *MultiStakingUnbonding) Reset()
func (*MultiStakingUnbonding) Size ¶
func (m *MultiStakingUnbonding) Size() (n int)
func (*MultiStakingUnbonding) String ¶
func (m *MultiStakingUnbonding) String() string
func (*MultiStakingUnbonding) Unmarshal ¶
func (m *MultiStakingUnbonding) Unmarshal(dAtA []byte) error
func (*MultiStakingUnbonding) XXX_DiscardUnknown ¶
func (m *MultiStakingUnbonding) XXX_DiscardUnknown()
func (*MultiStakingUnbonding) XXX_Marshal ¶
func (m *MultiStakingUnbonding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiStakingUnbonding) XXX_Merge ¶
func (m *MultiStakingUnbonding) XXX_Merge(src proto.Message)
func (*MultiStakingUnbonding) XXX_Size ¶
func (m *MultiStakingUnbonding) XXX_Size() int
func (*MultiStakingUnbonding) XXX_Unmarshal ¶
func (m *MultiStakingUnbonding) XXX_Unmarshal(b []byte) error
type MultiStakingUnbondingEntry ¶
type MultiStakingUnbondingEntry struct { CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` InitialBalance types.Coin `` /* 146-byte string literal not displayed */ Balance types.Coin `protobuf:"bytes,3,opt,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"balance"` }
func (*MultiStakingUnbondingEntry) Descriptor ¶
func (*MultiStakingUnbondingEntry) Descriptor() ([]byte, []int)
func (*MultiStakingUnbondingEntry) GetBalance ¶
func (m *MultiStakingUnbondingEntry) GetBalance() types.Coin
func (*MultiStakingUnbondingEntry) GetCompletionTime ¶
func (m *MultiStakingUnbondingEntry) GetCompletionTime() time.Time
func (*MultiStakingUnbondingEntry) GetInitialBalance ¶
func (m *MultiStakingUnbondingEntry) GetInitialBalance() types.Coin
func (MultiStakingUnbondingEntry) IsMature ¶
func (e MultiStakingUnbondingEntry) IsMature(currentTime time.Time) bool
func (*MultiStakingUnbondingEntry) Marshal ¶
func (m *MultiStakingUnbondingEntry) Marshal() (dAtA []byte, err error)
func (*MultiStakingUnbondingEntry) MarshalTo ¶
func (m *MultiStakingUnbondingEntry) MarshalTo(dAtA []byte) (int, error)
func (*MultiStakingUnbondingEntry) MarshalToSizedBuffer ¶
func (m *MultiStakingUnbondingEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiStakingUnbondingEntry) ProtoMessage ¶
func (*MultiStakingUnbondingEntry) ProtoMessage()
func (*MultiStakingUnbondingEntry) Reset ¶
func (m *MultiStakingUnbondingEntry) Reset()
func (*MultiStakingUnbondingEntry) Size ¶
func (m *MultiStakingUnbondingEntry) Size() (n int)
func (*MultiStakingUnbondingEntry) String ¶
func (m *MultiStakingUnbondingEntry) String() string
func (*MultiStakingUnbondingEntry) Unmarshal ¶
func (m *MultiStakingUnbondingEntry) Unmarshal(dAtA []byte) error
func (*MultiStakingUnbondingEntry) XXX_DiscardUnknown ¶
func (m *MultiStakingUnbondingEntry) XXX_DiscardUnknown()
func (*MultiStakingUnbondingEntry) XXX_Marshal ¶
func (m *MultiStakingUnbondingEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiStakingUnbondingEntry) XXX_Merge ¶
func (m *MultiStakingUnbondingEntry) XXX_Merge(src proto.Message)
func (*MultiStakingUnbondingEntry) XXX_Size ¶
func (m *MultiStakingUnbondingEntry) XXX_Size() int
func (*MultiStakingUnbondingEntry) XXX_Unmarshal ¶
func (m *MultiStakingUnbondingEntry) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { BondDenom(ctx sdk.Context) string GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error) Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error) GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool) UnbondingTime(ctx sdk.Context) time.Duration GetParams(ctx sdk.Context) stakingtypes.Params Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec) (math.Int, error) IterateBondedValidatorsByPower(ctx sdk.Context, fn func(int64, stakingtypes.ValidatorI) bool) TotalBondedTokens(ctx sdk.Context) math.Int IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(int64, stakingtypes.DelegationI) bool) }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddMultiStakingDenom ¶
func (*UnimplementedMsgServer) AddMultiStakingDenom(ctx context.Context, req *MsgAddMultiStakingDenom) (*MsgAddMultiStakingDenomResponse, error)
func (*UnimplementedMsgServer) MultiStakingDelegate ¶
func (*UnimplementedMsgServer) MultiStakingDelegate(ctx context.Context, req *MsgMultiStakingDelegate) (*MsgMultiStakingDelegateResponse, error)
func (*UnimplementedMsgServer) MultiStakingUndelegate ¶
func (*UnimplementedMsgServer) MultiStakingUndelegate(ctx context.Context, req *MsgMultiStakingUndelegate) (*MsgMultiStakingDelegateResponse, error)
Click to show internal directories.
Click to hide internal directories.