types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 41 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ProposalTypeCreateAlliance = "msg_create_alliance_proposal"
	ProposalTypeUpdateAlliance = "msg_update_alliance_proposal"
	ProposalTypeDeleteAlliance = "msg_delete_alliance_proposal"
)
View Source
const (
	// ModuleName is the name of the alliance module
	ModuleName = "alliance"

	// RewardsPoolName is the name of the module account for rewards
	RewardsPoolName = "alliance_rewards"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the alliance module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the alliance module
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_signletimemodule"
)

Variables

View Source
var (
	ErrInvalidLengthAlliance        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAlliance          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAlliance = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDelegations        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDelegations          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDelegations = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidGenesisState = sdkerrors.Register(ModuleName, 0, "invalid genesis state")

	ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 10, "empty validator address")
	ErrValidatorNotFound  = sdkerrors.Register(ModuleName, 11, "validator not found")
	ErrDelegationNotFound = sdkerrors.Register(ModuleName, 12, "delegation not found")

	ErrZeroDelegations    = sdkerrors.Register(ModuleName, 20, "there are no delegations yet")
	ErrInsufficientTokens = sdkerrors.Register(ModuleName, 21, "insufficient tokens")

	ErrUnknownAsset = sdkerrors.Register(ModuleName, 30, "alliance asset is not whitelisted")

	ErrRewardWeightOutOfBound = sdkerrors.Register(ModuleName, 40, "alliance asset must be between reward_weight_range")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleAccKey = []byte{0x01}

	AssetKey                      = []byte{0x11}
	ValidatorInfoKey              = []byte{0x12}
	AssetRebalanceQueueKey        = []byte{0x13}
	RewardWeightChangeSnapshotKey = []byte{0x14}
	RewardWeightDecayQueueKey     = []byte{0x15}

	DelegationKey        = []byte{0x21}
	RedelegationKey      = []byte{0x22}
	RedelegationQueueKey = []byte{0x23}
	UndelegationQueueKey = []byte{0x24}

	// Indexes for querying
	RedelegationByValidatorIndexKey = []byte{0x31}
	UndelegationByValidatorIndexKey = []byte{0x32}
)
View Source
var (
	MsgDelegateType               = "msg_delegate"
	MsgUndelegateType             = "msg_undelegate"
	MsgRedelegateType             = "msg_redelegate"
	MsgClaimDelegationRewardsType = "claim_delegation_rewards"
)
View Source
var (
	RewardDelayTime       = []byte("RewardDelayTime")
	TakeRateClaimInterval = []byte("TakeRateClaimInterval")
	LastTakeRateClaimTime = []byte("LastTakeRateClaimTime")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ConvertNewShareToDecToken

func ConvertNewShareToDecToken(totalTokens sdk.Dec, totalShares sdk.Dec, shares sdk.Dec) (token sdk.Dec)

func ConvertNewTokenToShares

func ConvertNewTokenToShares(totalTokens sdk.Dec, totalShares sdk.Dec, newTokens cosmosmath.Int) (shares sdk.Dec)

func CreateDenomAddressPrefix

func CreateDenomAddressPrefix(denom string) []byte

func GetAllianceValidatorInfoKey

func GetAllianceValidatorInfoKey(valAddr sdk.ValAddress) []byte

func GetAssetKey

func GetAssetKey(denom string) []byte

func GetDelegationKey

func GetDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress, denom string) []byte

GetDelegationKey key is in the format of delegator|validator|denom

func GetDelegationSharesFromTokens

func GetDelegationSharesFromTokens(val AllianceValidator, asset AllianceAsset, token cosmosmath.Int) sdk.Dec

func GetDelegationTokens

func GetDelegationTokens(del Delegation, val AllianceValidator, asset AllianceAsset) sdk.Coin

func GetDelegationTokensWithShares

func GetDelegationTokensWithShares(delegatorShares sdk.Dec, val AllianceValidator, asset AllianceAsset) sdk.Coin

func GetDelegationsKey

func GetDelegationsKey(delAddr sdk.AccAddress) []byte

GetDelegationsKey creates the prefix for a delegator for all validators

func GetDelegationsKeyForAllDenoms

func GetDelegationsKeyForAllDenoms(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

GetDelegationsKeyForAllDenoms creates the key for delegator bond with validator for all denoms

func GetRedelegationIndexKey

func GetRedelegationIndexKey(srcVal sdk.ValAddress, completion time.Time, denom string, dstVal sdk.ValAddress, delAddr sdk.AccAddress) []byte

func GetRedelegationKey

func GetRedelegationKey(delAddr sdk.AccAddress, denom string, dstValAddr sdk.ValAddress, completion time.Time) []byte

func GetRedelegationQueueKey

func GetRedelegationQueueKey(completion time.Time) []byte

func GetRedelegationsIndexOrderedByValidatorKey

func GetRedelegationsIndexOrderedByValidatorKey(srcVal sdk.ValAddress) []byte

func GetRedelegationsKey

func GetRedelegationsKey(delAddr sdk.AccAddress, denom string, dstValAddr sdk.ValAddress) []byte

func GetRedelegationsKeyByDelegator

func GetRedelegationsKeyByDelegator(delAddr sdk.AccAddress) []byte

func GetRedelegationsKeyByDelegatorAndDenom

func GetRedelegationsKeyByDelegatorAndDenom(delAddr sdk.AccAddress, denom string) []byte

func GetRewardWeightChangeSnapshotKey

func GetRewardWeightChangeSnapshotKey(denom string, val sdk.ValAddress, height uint64) (key []byte)

func GetRewardWeightDecayQueueByTimestampKey

func GetRewardWeightDecayQueueByTimestampKey(triggerTime time.Time) (key []byte)

func GetRewardWeightDecayQueueKey

func GetRewardWeightDecayQueueKey(triggerTime time.Time, denom string) (key []byte)

func GetUnbondingIndexKey

func GetUnbondingIndexKey(valAddr sdk.ValAddress, completion time.Time, denom string, delAddress sdk.AccAddress) (key []byte)

func GetUndelegationQueueKey

func GetUndelegationQueueKey(completion time.Time, delAddr sdk.AccAddress) (key []byte)

func GetUndelegationQueueKeyByTime

func GetUndelegationQueueKeyByTime(completion time.Time) (key []byte)

func GetUndelegationsIndexOrderedByValidatorKey

func GetUndelegationsIndexOrderedByValidatorKey(valAddr sdk.ValAddress) []byte

func GetValidatorShares

func GetValidatorShares(asset AllianceAsset, token cosmosmath.Int) sdk.Dec

func NewMsgCreateAllianceProposal

func NewMsgCreateAllianceProposal(title, description, denom string, rewardWeight sdk.Dec, rewardWeightRange RewardWeightRange, consensusWeight sdk.Dec, consensusCap sdk.Dec, takeRate sdk.Dec, rewardChangeRate sdk.Dec, rewardChangeInterval time.Duration) govtypes.Content

func NewMsgDeleteAllianceProposal

func NewMsgDeleteAllianceProposal(title, description, denom string) govtypes.Content

func NewMsgUpdateAllianceProposal

func NewMsgUpdateAllianceProposal(title, description, denom string, rewardWeight, consensusWeight, consensusCap, takeRate sdk.Dec, rewardChangeRate sdk.Dec, rewardChangeInterval time.Duration) govtypes.Content

func ParseAllianceValidatorKey

func ParseAllianceValidatorKey(key []byte) sdk.ValAddress

func ParseRedelegationIndexForRedelegationKey

func ParseRedelegationIndexForRedelegationKey(key []byte) ([]byte, time.Time, error)

func ParseRedelegationKeyForCompletionTime

func ParseRedelegationKeyForCompletionTime(key []byte) time.Time

ParseRedelegationKeyForCompletionTime key is in the format of RedelegationKey|delegator|denom|destination|timestamp

func ParseRedelegationQueueKey

func ParseRedelegationQueueKey(key []byte) time.Time

func ParseRewardWeightChangeSnapshotKey

func ParseRewardWeightChangeSnapshotKey(key []byte) (denom string, val sdk.ValAddress, height uint64)

func ParseRewardWeightDecayQueueKeyForDenom

func ParseRewardWeightDecayQueueKeyForDenom(key []byte) (triggerTime time.Time, denom string)

func ParseUnbondingIndexKeyToUndelegationKey

func ParseUnbondingIndexKeyToUndelegationKey(key []byte) ([]byte, time.Time, error)

func ParseUndelegationQueueKeyForCompletionTime

func ParseUndelegationQueueKeyForCompletionTime(key []byte) (time.Time, error)

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SubtractDecCoinsWithRounding

func SubtractDecCoinsWithRounding(d1s sdk.DecCoins, d2s sdk.DecCoins) sdk.DecCoins

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AllianceAsset

type AllianceAsset struct {
	// Denom of the asset. It could either be a native token or an IBC token
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	// The reward weight specifies the ratio of rewards that will be given to each alliance asset
	// It does not need to sum to 1. rate = weight / total_weight
	// Native asset is always assumed to have a weight of 1.s
	RewardWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	// A positive take rate is used for liquid staking derivatives. It defines an rate that is applied per take_rate_interval
	// that will be redirected to the distribution rewards pool
	TakeRate             github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=take_rate,json=takeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"take_rate"`
	TotalTokens          github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	TotalValidatorShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
	RewardStartTime      time.Time                              `protobuf:"bytes,6,opt,name=reward_start_time,json=rewardStartTime,proto3,stdtime" json:"reward_start_time"`
	RewardChangeRate     github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	RewardChangeInterval time.Duration                          `protobuf:"bytes,8,opt,name=reward_change_interval,json=rewardChangeInterval,proto3,stdduration" json:"reward_change_interval"`
	LastRewardChangeTime time.Time                              `protobuf:"bytes,9,opt,name=last_reward_change_time,json=lastRewardChangeTime,proto3,stdtime" json:"last_reward_change_time"`
	// set a bound of weight range to limit how much reward weights can scale.
	RewardWeightRange RewardWeightRange `protobuf:"bytes,10,opt,name=reward_weight_range,json=rewardWeightRange,proto3" json:"reward_weight_range"`
	// flag to check if an asset has completed the initialization process after the reward delay
	IsInitialized   bool                                   `protobuf:"varint,11,opt,name=is_initialized,json=isInitialized,proto3" json:"is_initialized,omitempty"`
	ConsensusWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 147-byte string literal not displayed */
	ConsensusCap    github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */
}

key: denom value: AllianceAsset

func NewAllianceAsset

func NewAllianceAsset(denom string, rewardWeight sdk.Dec, consensusWeight sdk.Dec, consensusCap sdk.Dec, minRewardWeight sdk.Dec, maxRewardWeight sdk.Dec, takeRate sdk.Dec, rewardStartTime time.Time) AllianceAsset

func (*AllianceAsset) Descriptor

func (*AllianceAsset) Descriptor() ([]byte, []int)

func (AllianceAsset) HasPositiveDecay

func (a AllianceAsset) HasPositiveDecay() bool

func (*AllianceAsset) Marshal

func (m *AllianceAsset) Marshal() (dAtA []byte, err error)

func (*AllianceAsset) MarshalTo

func (m *AllianceAsset) MarshalTo(dAtA []byte) (int, error)

func (*AllianceAsset) MarshalToSizedBuffer

func (m *AllianceAsset) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllianceAsset) ProtoMessage

func (*AllianceAsset) ProtoMessage()

func (*AllianceAsset) Reset

func (m *AllianceAsset) Reset()

func (AllianceAsset) RewardsStarted

func (a AllianceAsset) RewardsStarted(blockTime time.Time) bool

RewardsStarted helper function to check if rewards for the alliance has started

func (*AllianceAsset) Size

func (m *AllianceAsset) Size() (n int)

func (*AllianceAsset) String

func (m *AllianceAsset) String() string

func (*AllianceAsset) Unmarshal

func (m *AllianceAsset) Unmarshal(dAtA []byte) error

func (*AllianceAsset) XXX_DiscardUnknown

func (m *AllianceAsset) XXX_DiscardUnknown()

func (*AllianceAsset) XXX_Marshal

func (m *AllianceAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllianceAsset) XXX_Merge

func (m *AllianceAsset) XXX_Merge(src proto.Message)

func (*AllianceAsset) XXX_Size

func (m *AllianceAsset) XXX_Size() int

func (*AllianceAsset) XXX_Unmarshal

func (m *AllianceAsset) XXX_Unmarshal(b []byte) error

type AllianceValidator

type AllianceValidator struct {
	*stakingtypes.Validator
	*AllianceValidatorInfo
}

func (*AllianceValidator) AddShares

func (v *AllianceValidator) AddShares(delegationShares sdk.DecCoins, validatorShares sdk.DecCoins)

func (*AllianceValidator) ReduceShares

func (v *AllianceValidator) ReduceShares(delegationShares sdk.DecCoins, validatorShares sdk.DecCoins)

ReduceShares handles small inaccuracies (~ < 1) when subtracting shares due to rounding errors

func (AllianceValidator) TotalDelegationSharesWithDenom

func (v AllianceValidator) TotalDelegationSharesWithDenom(denom string) sdk.Dec

func (AllianceValidator) TotalTokensWithAsset

func (v AllianceValidator) TotalTokensWithAsset(asset AllianceAsset) sdk.Dec

func (AllianceValidator) ValidatorSharesWithDenom

func (v AllianceValidator) ValidatorSharesWithDenom(denom string) sdk.Dec

type AllianceValidatorInfo

type AllianceValidatorInfo struct {
	GlobalRewardHistory  []RewardHistory `protobuf:"bytes,1,rep,name=global_reward_history,json=globalRewardHistory,proto3" json:"global_reward_history"`
	TotalDelegatorShares []types.DecCoin `protobuf:"bytes,2,rep,name=total_delegator_shares,json=totalDelegatorShares,proto3" json:"total_delegator_shares"`
	ValidatorShares      []types.DecCoin `protobuf:"bytes,3,rep,name=validator_shares,json=validatorShares,proto3" json:"validator_shares"`
	VotingPower          int64           `protobuf:"varint,4,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
}

func NewAllianceValidatorInfo

func NewAllianceValidatorInfo() AllianceValidatorInfo

func (*AllianceValidatorInfo) Descriptor

func (*AllianceValidatorInfo) Descriptor() ([]byte, []int)

func (*AllianceValidatorInfo) Marshal

func (m *AllianceValidatorInfo) Marshal() (dAtA []byte, err error)

func (*AllianceValidatorInfo) MarshalTo

func (m *AllianceValidatorInfo) MarshalTo(dAtA []byte) (int, error)

func (*AllianceValidatorInfo) MarshalToSizedBuffer

func (m *AllianceValidatorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllianceValidatorInfo) ProtoMessage

func (*AllianceValidatorInfo) ProtoMessage()

func (*AllianceValidatorInfo) Reset

func (m *AllianceValidatorInfo) Reset()

func (*AllianceValidatorInfo) Size

func (m *AllianceValidatorInfo) Size() (n int)

func (*AllianceValidatorInfo) String

func (m *AllianceValidatorInfo) String() string

func (*AllianceValidatorInfo) Unmarshal

func (m *AllianceValidatorInfo) Unmarshal(dAtA []byte) error

func (*AllianceValidatorInfo) XXX_DiscardUnknown

func (m *AllianceValidatorInfo) XXX_DiscardUnknown()

func (*AllianceValidatorInfo) XXX_Marshal

func (m *AllianceValidatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllianceValidatorInfo) XXX_Merge

func (m *AllianceValidatorInfo) XXX_Merge(src proto.Message)

func (*AllianceValidatorInfo) XXX_Size

func (m *AllianceValidatorInfo) XXX_Size() int

func (*AllianceValidatorInfo) XXX_Unmarshal

func (m *AllianceValidatorInfo) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, 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
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

type ClaimAllianceRewardsEvent

type ClaimAllianceRewardsEvent struct {
	AllianceSender string                                    `protobuf:"bytes,1,opt,name=allianceSender,proto3" json:"allianceSender,omitempty"`
	Validator      string                                    `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Coins          []github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,rep,name=coins,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coins"`
}

func (*ClaimAllianceRewardsEvent) Descriptor

func (*ClaimAllianceRewardsEvent) Descriptor() ([]byte, []int)

func (*ClaimAllianceRewardsEvent) GetAllianceSender

func (m *ClaimAllianceRewardsEvent) GetAllianceSender() string

func (*ClaimAllianceRewardsEvent) GetValidator

func (m *ClaimAllianceRewardsEvent) GetValidator() string

func (*ClaimAllianceRewardsEvent) Marshal

func (m *ClaimAllianceRewardsEvent) Marshal() (dAtA []byte, err error)

func (*ClaimAllianceRewardsEvent) MarshalTo

func (m *ClaimAllianceRewardsEvent) MarshalTo(dAtA []byte) (int, error)

func (*ClaimAllianceRewardsEvent) MarshalToSizedBuffer

func (m *ClaimAllianceRewardsEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClaimAllianceRewardsEvent) ProtoMessage

func (*ClaimAllianceRewardsEvent) ProtoMessage()

func (*ClaimAllianceRewardsEvent) Reset

func (m *ClaimAllianceRewardsEvent) Reset()

func (*ClaimAllianceRewardsEvent) Size

func (m *ClaimAllianceRewardsEvent) Size() (n int)

func (*ClaimAllianceRewardsEvent) String

func (m *ClaimAllianceRewardsEvent) String() string

func (*ClaimAllianceRewardsEvent) Unmarshal

func (m *ClaimAllianceRewardsEvent) Unmarshal(dAtA []byte) error

func (*ClaimAllianceRewardsEvent) XXX_DiscardUnknown

func (m *ClaimAllianceRewardsEvent) XXX_DiscardUnknown()

func (*ClaimAllianceRewardsEvent) XXX_Marshal

func (m *ClaimAllianceRewardsEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClaimAllianceRewardsEvent) XXX_Merge

func (m *ClaimAllianceRewardsEvent) XXX_Merge(src proto.Message)

func (*ClaimAllianceRewardsEvent) XXX_Size

func (m *ClaimAllianceRewardsEvent) XXX_Size() int

func (*ClaimAllianceRewardsEvent) XXX_Unmarshal

func (m *ClaimAllianceRewardsEvent) XXX_Unmarshal(b []byte) error

type DelegateAllianceEvent

type DelegateAllianceEvent struct {
	AllianceSender string                                  `protobuf:"bytes,1,opt,name=allianceSender,proto3" json:"allianceSender,omitempty"`
	Validator      string                                  `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Coin           github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
	NewShares      github_com_cosmos_cosmos_sdk_types.Dec  `protobuf:"bytes,4,opt,name=newShares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"newShares"`
}

func (*DelegateAllianceEvent) Descriptor

func (*DelegateAllianceEvent) Descriptor() ([]byte, []int)

func (*DelegateAllianceEvent) GetAllianceSender

func (m *DelegateAllianceEvent) GetAllianceSender() string

func (*DelegateAllianceEvent) GetValidator

func (m *DelegateAllianceEvent) GetValidator() string

func (*DelegateAllianceEvent) Marshal

func (m *DelegateAllianceEvent) Marshal() (dAtA []byte, err error)

func (*DelegateAllianceEvent) MarshalTo

func (m *DelegateAllianceEvent) MarshalTo(dAtA []byte) (int, error)

func (*DelegateAllianceEvent) MarshalToSizedBuffer

func (m *DelegateAllianceEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegateAllianceEvent) ProtoMessage

func (*DelegateAllianceEvent) ProtoMessage()

func (*DelegateAllianceEvent) Reset

func (m *DelegateAllianceEvent) Reset()

func (*DelegateAllianceEvent) Size

func (m *DelegateAllianceEvent) Size() (n int)

func (*DelegateAllianceEvent) String

func (m *DelegateAllianceEvent) String() string

func (*DelegateAllianceEvent) Unmarshal

func (m *DelegateAllianceEvent) Unmarshal(dAtA []byte) error

func (*DelegateAllianceEvent) XXX_DiscardUnknown

func (m *DelegateAllianceEvent) XXX_DiscardUnknown()

func (*DelegateAllianceEvent) XXX_Marshal

func (m *DelegateAllianceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegateAllianceEvent) XXX_Merge

func (m *DelegateAllianceEvent) XXX_Merge(src proto.Message)

func (*DelegateAllianceEvent) XXX_Size

func (m *DelegateAllianceEvent) XXX_Size() int

func (*DelegateAllianceEvent) XXX_Unmarshal

func (m *DelegateAllianceEvent) XXX_Unmarshal(b []byte) error

type Delegation

type Delegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// denom of token staked
	Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	// shares define the delegation shares received.
	Shares                github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"`
	RewardHistory         []RewardHistory                        `protobuf:"bytes,5,rep,name=reward_history,json=rewardHistory,proto3" json:"reward_history"`
	LastRewardClaimHeight uint64                                 `` /* 129-byte string literal not displayed */
}

func NewDelegation

func NewDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, denom string, shares sdk.Dec, rewardHistory []RewardHistory) Delegation

func (*Delegation) Descriptor

func (*Delegation) Descriptor() ([]byte, []int)

func (*Delegation) Marshal

func (m *Delegation) Marshal() (dAtA []byte, err error)

func (*Delegation) MarshalTo

func (m *Delegation) MarshalTo(dAtA []byte) (int, error)

func (*Delegation) MarshalToSizedBuffer

func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

func (m *Delegation) Size() (n int)

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

func (m *Delegation) Unmarshal(dAtA []byte) error

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Delegation) XXX_Merge

func (m *Delegation) XXX_Merge(src proto.Message)

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

func (m *Delegation) XXX_Unmarshal(b []byte) error

type DelegationResponse

type DelegationResponse struct {
	Delegation Delegation `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
	Balance    types.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance"`
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func (*DelegationResponse) Descriptor

func (*DelegationResponse) Descriptor() ([]byte, []int)

func (*DelegationResponse) GetBalance

func (m *DelegationResponse) GetBalance() types.Coin

func (*DelegationResponse) GetDelegation

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal

func (m *DelegationResponse) Marshal() (dAtA []byte, err error)

func (*DelegationResponse) MarshalTo

func (m *DelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*DelegationResponse) MarshalToSizedBuffer

func (m *DelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegationResponse) ProtoMessage

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size

func (m *DelegationResponse) Size() (n int)

func (*DelegationResponse) String

func (m *DelegationResponse) String() string

func (*DelegationResponse) Unmarshal

func (m *DelegationResponse) Unmarshal(dAtA []byte) error

func (*DelegationResponse) XXX_DiscardUnknown

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal

func (m *DelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationResponse) XXX_Merge

func (m *DelegationResponse) XXX_Merge(src proto.Message)

func (*DelegationResponse) XXX_Size

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal

func (m *DelegationResponse) XXX_Unmarshal(b []byte) error

type DistributionKeeper

type DistributionKeeper interface {
	WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
}

type GenesisState

type GenesisState struct {
	Params                     Params                            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Assets                     []AllianceAsset                   `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets"`
	ValidatorInfos             []ValidatorInfoState              `protobuf:"bytes,3,rep,name=validator_infos,json=validatorInfos,proto3" json:"validator_infos"`
	RewardWeightChangeSnaphots []RewardWeightChangeSnapshotState `` /* 133-byte string literal not displayed */
	Delegations                []Delegation                      `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
	Redelegations              []RedelegationState               `protobuf:"bytes,6,rep,name=redelegations,proto3" json:"redelegations"`
	Undelegations              []UndelegationState               `protobuf:"bytes,7,rep,name=undelegations,proto3" json:"undelegations"`
}

GenesisState defines the module's genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetAssets

func (m *GenesisState) GetAssets() []AllianceAsset

func (*GenesisState) GetDelegations

func (m *GenesisState) GetDelegations() []Delegation

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRedelegations

func (m *GenesisState) GetRedelegations() []RedelegationState

func (*GenesisState) GetRewardWeightChangeSnaphots

func (m *GenesisState) GetRewardWeightChangeSnaphots() []RewardWeightChangeSnapshotState

func (*GenesisState) GetUndelegations

func (m *GenesisState) GetUndelegations() []UndelegationState

func (*GenesisState) GetValidatorInfos

func (m *GenesisState) GetValidatorInfos() []ValidatorInfoState

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgClaimDelegationRewards

type MsgClaimDelegationRewards 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"`
	Denom            string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgClaimDelegationRewards

func NewMsgClaimDelegationRewards(delegatorAddress, validatorAddress, denom string) *MsgClaimDelegationRewards

func (*MsgClaimDelegationRewards) Descriptor

func (*MsgClaimDelegationRewards) Descriptor() ([]byte, []int)

func (MsgClaimDelegationRewards) GetSignBytes

func (msg MsgClaimDelegationRewards) GetSignBytes() []byte

func (*MsgClaimDelegationRewards) GetSigners

func (msg *MsgClaimDelegationRewards) GetSigners() []sdk.AccAddress

func (*MsgClaimDelegationRewards) Marshal

func (m *MsgClaimDelegationRewards) Marshal() (dAtA []byte, err error)

func (*MsgClaimDelegationRewards) MarshalTo

func (m *MsgClaimDelegationRewards) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimDelegationRewards) MarshalToSizedBuffer

func (m *MsgClaimDelegationRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimDelegationRewards) ProtoMessage

func (*MsgClaimDelegationRewards) ProtoMessage()

func (*MsgClaimDelegationRewards) Reset

func (m *MsgClaimDelegationRewards) Reset()

func (MsgClaimDelegationRewards) Route

func (msg MsgClaimDelegationRewards) Route() string

func (*MsgClaimDelegationRewards) Size

func (m *MsgClaimDelegationRewards) Size() (n int)

func (*MsgClaimDelegationRewards) String

func (m *MsgClaimDelegationRewards) String() string

func (MsgClaimDelegationRewards) Type

func (msg MsgClaimDelegationRewards) Type() string

func (*MsgClaimDelegationRewards) Unmarshal

func (m *MsgClaimDelegationRewards) Unmarshal(dAtA []byte) error

func (*MsgClaimDelegationRewards) ValidateBasic

func (msg *MsgClaimDelegationRewards) ValidateBasic() error

func (*MsgClaimDelegationRewards) XXX_DiscardUnknown

func (m *MsgClaimDelegationRewards) XXX_DiscardUnknown()

func (*MsgClaimDelegationRewards) XXX_Marshal

func (m *MsgClaimDelegationRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimDelegationRewards) XXX_Merge

func (m *MsgClaimDelegationRewards) XXX_Merge(src proto.Message)

func (*MsgClaimDelegationRewards) XXX_Size

func (m *MsgClaimDelegationRewards) XXX_Size() int

func (*MsgClaimDelegationRewards) XXX_Unmarshal

func (m *MsgClaimDelegationRewards) XXX_Unmarshal(b []byte) error

type MsgClaimDelegationRewardsResponse

type MsgClaimDelegationRewardsResponse struct {
}

func (*MsgClaimDelegationRewardsResponse) Descriptor

func (*MsgClaimDelegationRewardsResponse) Descriptor() ([]byte, []int)

func (*MsgClaimDelegationRewardsResponse) Marshal

func (m *MsgClaimDelegationRewardsResponse) Marshal() (dAtA []byte, err error)

func (*MsgClaimDelegationRewardsResponse) MarshalTo

func (m *MsgClaimDelegationRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgClaimDelegationRewardsResponse) MarshalToSizedBuffer

func (m *MsgClaimDelegationRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgClaimDelegationRewardsResponse) ProtoMessage

func (*MsgClaimDelegationRewardsResponse) ProtoMessage()

func (*MsgClaimDelegationRewardsResponse) Reset

func (*MsgClaimDelegationRewardsResponse) Size

func (m *MsgClaimDelegationRewardsResponse) Size() (n int)

func (*MsgClaimDelegationRewardsResponse) String

func (*MsgClaimDelegationRewardsResponse) Unmarshal

func (m *MsgClaimDelegationRewardsResponse) Unmarshal(dAtA []byte) error

func (*MsgClaimDelegationRewardsResponse) XXX_DiscardUnknown

func (m *MsgClaimDelegationRewardsResponse) XXX_DiscardUnknown()

func (*MsgClaimDelegationRewardsResponse) XXX_Marshal

func (m *MsgClaimDelegationRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgClaimDelegationRewardsResponse) XXX_Merge

func (*MsgClaimDelegationRewardsResponse) XXX_Size

func (m *MsgClaimDelegationRewardsResponse) XXX_Size() int

func (*MsgClaimDelegationRewardsResponse) XXX_Unmarshal

func (m *MsgClaimDelegationRewardsResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	Redelegate(ctx context.Context, in *MsgRedelegate, opts ...grpc.CallOption) (*MsgRedelegateResponse, error)
	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	ClaimDelegationRewards(ctx context.Context, in *MsgClaimDelegationRewards, opts ...grpc.CallOption) (*MsgClaimDelegationRewardsResponse, 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 MsgCreateAllianceProposal

type MsgCreateAllianceProposal struct {
	// the title of the update proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Denom of the asset. It could either be a native token or an IBC token
	Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	// The reward weight specifies the ratio of rewards that will be given to each alliance asset
	// It does not need to sum to 1. rate = weight / total_weight
	// Native asset is always assumed to have a weight of 1.
	RewardWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	// A positive take rate is used for liquid staking derivatives. It defines an annualized reward rate that
	// will be redirected to the distribution rewards pool
	TakeRate             github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=take_rate,json=takeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"take_rate"`
	RewardChangeRate     github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	RewardChangeInterval time.Duration                          `protobuf:"bytes,7,opt,name=reward_change_interval,json=rewardChangeInterval,proto3,stdduration" json:"reward_change_interval"`
	// set a bound of weight range to limit how much reward weights can scale.
	RewardWeightRange RewardWeightRange                      `protobuf:"bytes,8,opt,name=reward_weight_range,json=rewardWeightRange,proto3" json:"reward_weight_range"`
	ConsensusWeight   github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	ConsensusCap      github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */
}

func (*MsgCreateAllianceProposal) Descriptor

func (*MsgCreateAllianceProposal) Descriptor() ([]byte, []int)

func (*MsgCreateAllianceProposal) GetDescription

func (m *MsgCreateAllianceProposal) GetDescription() string

func (*MsgCreateAllianceProposal) GetTitle

func (m *MsgCreateAllianceProposal) GetTitle() string

func (*MsgCreateAllianceProposal) Marshal

func (m *MsgCreateAllianceProposal) Marshal() (dAtA []byte, err error)

func (*MsgCreateAllianceProposal) MarshalTo

func (m *MsgCreateAllianceProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateAllianceProposal) MarshalToSizedBuffer

func (m *MsgCreateAllianceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateAllianceProposal) ProposalRoute

func (m *MsgCreateAllianceProposal) ProposalRoute() string

func (*MsgCreateAllianceProposal) ProposalType

func (m *MsgCreateAllianceProposal) ProposalType() string

func (*MsgCreateAllianceProposal) ProtoMessage

func (*MsgCreateAllianceProposal) ProtoMessage()

func (*MsgCreateAllianceProposal) Reset

func (m *MsgCreateAllianceProposal) Reset()

func (*MsgCreateAllianceProposal) Size

func (m *MsgCreateAllianceProposal) Size() (n int)

func (*MsgCreateAllianceProposal) String

func (m *MsgCreateAllianceProposal) String() string

func (*MsgCreateAllianceProposal) Unmarshal

func (m *MsgCreateAllianceProposal) Unmarshal(dAtA []byte) error

func (*MsgCreateAllianceProposal) ValidateBasic

func (m *MsgCreateAllianceProposal) ValidateBasic() error

func (*MsgCreateAllianceProposal) XXX_DiscardUnknown

func (m *MsgCreateAllianceProposal) XXX_DiscardUnknown()

func (*MsgCreateAllianceProposal) XXX_Marshal

func (m *MsgCreateAllianceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateAllianceProposal) XXX_Merge

func (m *MsgCreateAllianceProposal) XXX_Merge(src proto.Message)

func (*MsgCreateAllianceProposal) XXX_Size

func (m *MsgCreateAllianceProposal) XXX_Size() int

func (*MsgCreateAllianceProposal) XXX_Unmarshal

func (m *MsgCreateAllianceProposal) XXX_Unmarshal(b []byte) error

type MsgDelegate

type MsgDelegate 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           github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

func NewMsgDelegate

func NewMsgDelegate(delegatorAddress, validatorAddress string, amount sdk.Coin) *MsgDelegate

func (*MsgDelegate) Descriptor

func (*MsgDelegate) Descriptor() ([]byte, []int)

func (MsgDelegate) GetSignBytes

func (msg MsgDelegate) GetSignBytes() []byte

func (MsgDelegate) GetSigners

func (msg MsgDelegate) GetSigners() []sdk.AccAddress

func (*MsgDelegate) Marshal

func (m *MsgDelegate) Marshal() (dAtA []byte, err error)

func (*MsgDelegate) MarshalTo

func (m *MsgDelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgDelegate) MarshalToSizedBuffer

func (m *MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDelegate) ProtoMessage

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) Reset

func (m *MsgDelegate) Reset()

func (MsgDelegate) Route

func (msg MsgDelegate) Route() string

func (*MsgDelegate) Size

func (m *MsgDelegate) Size() (n int)

func (*MsgDelegate) String

func (m *MsgDelegate) String() string

func (MsgDelegate) Type

func (msg MsgDelegate) Type() string

func (*MsgDelegate) Unmarshal

func (m *MsgDelegate) Unmarshal(dAtA []byte) error

func (MsgDelegate) ValidateBasic

func (msg MsgDelegate) ValidateBasic() error

func (*MsgDelegate) XXX_DiscardUnknown

func (m *MsgDelegate) XXX_DiscardUnknown()

func (*MsgDelegate) XXX_Marshal

func (m *MsgDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDelegate) XXX_Merge

func (m *MsgDelegate) XXX_Merge(src proto.Message)

func (*MsgDelegate) XXX_Size

func (m *MsgDelegate) XXX_Size() int

func (*MsgDelegate) XXX_Unmarshal

func (m *MsgDelegate) XXX_Unmarshal(b []byte) error

type MsgDelegateResponse

type MsgDelegateResponse struct {
}

func (*MsgDelegateResponse) Descriptor

func (*MsgDelegateResponse) Descriptor() ([]byte, []int)

func (*MsgDelegateResponse) Marshal

func (m *MsgDelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgDelegateResponse) MarshalTo

func (m *MsgDelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDelegateResponse) MarshalToSizedBuffer

func (m *MsgDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDelegateResponse) ProtoMessage

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) Reset

func (m *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) Size

func (m *MsgDelegateResponse) Size() (n int)

func (*MsgDelegateResponse) String

func (m *MsgDelegateResponse) String() string

func (*MsgDelegateResponse) Unmarshal

func (m *MsgDelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgDelegateResponse) XXX_DiscardUnknown

func (m *MsgDelegateResponse) XXX_DiscardUnknown()

func (*MsgDelegateResponse) XXX_Marshal

func (m *MsgDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDelegateResponse) XXX_Merge

func (m *MsgDelegateResponse) XXX_Merge(src proto.Message)

func (*MsgDelegateResponse) XXX_Size

func (m *MsgDelegateResponse) XXX_Size() int

func (*MsgDelegateResponse) XXX_Unmarshal

func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error

type MsgDeleteAllianceProposal

type MsgDeleteAllianceProposal struct {
	// the title of the update proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom       string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}

func (*MsgDeleteAllianceProposal) Descriptor

func (*MsgDeleteAllianceProposal) Descriptor() ([]byte, []int)

func (*MsgDeleteAllianceProposal) GetDescription

func (m *MsgDeleteAllianceProposal) GetDescription() string

func (*MsgDeleteAllianceProposal) GetTitle

func (m *MsgDeleteAllianceProposal) GetTitle() string

func (*MsgDeleteAllianceProposal) Marshal

func (m *MsgDeleteAllianceProposal) Marshal() (dAtA []byte, err error)

func (*MsgDeleteAllianceProposal) MarshalTo

func (m *MsgDeleteAllianceProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeleteAllianceProposal) MarshalToSizedBuffer

func (m *MsgDeleteAllianceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeleteAllianceProposal) ProposalRoute

func (m *MsgDeleteAllianceProposal) ProposalRoute() string

func (*MsgDeleteAllianceProposal) ProposalType

func (m *MsgDeleteAllianceProposal) ProposalType() string

func (*MsgDeleteAllianceProposal) ProtoMessage

func (*MsgDeleteAllianceProposal) ProtoMessage()

func (*MsgDeleteAllianceProposal) Reset

func (m *MsgDeleteAllianceProposal) Reset()

func (*MsgDeleteAllianceProposal) Size

func (m *MsgDeleteAllianceProposal) Size() (n int)

func (*MsgDeleteAllianceProposal) String

func (m *MsgDeleteAllianceProposal) String() string

func (*MsgDeleteAllianceProposal) Unmarshal

func (m *MsgDeleteAllianceProposal) Unmarshal(dAtA []byte) error

func (*MsgDeleteAllianceProposal) ValidateBasic

func (m *MsgDeleteAllianceProposal) ValidateBasic() error

func (*MsgDeleteAllianceProposal) XXX_DiscardUnknown

func (m *MsgDeleteAllianceProposal) XXX_DiscardUnknown()

func (*MsgDeleteAllianceProposal) XXX_Marshal

func (m *MsgDeleteAllianceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeleteAllianceProposal) XXX_Merge

func (m *MsgDeleteAllianceProposal) XXX_Merge(src proto.Message)

func (*MsgDeleteAllianceProposal) XXX_Size

func (m *MsgDeleteAllianceProposal) XXX_Size() int

func (*MsgDeleteAllianceProposal) XXX_Unmarshal

func (m *MsgDeleteAllianceProposal) XXX_Unmarshal(b []byte) error

type MsgRedelegate

type MsgRedelegate struct {
	DelegatorAddress    string                                  `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string                                  `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string                                  `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	Amount              github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

func NewMsgRedelegate

func NewMsgRedelegate(delegatorAddress, validatorSrcAddress, validatorDstAddress string, amount sdk.Coin) *MsgRedelegate

func (*MsgRedelegate) Descriptor

func (*MsgRedelegate) Descriptor() ([]byte, []int)

func (MsgRedelegate) GetSignBytes

func (msg MsgRedelegate) GetSignBytes() []byte

func (MsgRedelegate) GetSigners

func (msg MsgRedelegate) GetSigners() []sdk.AccAddress

func (*MsgRedelegate) Marshal

func (m *MsgRedelegate) Marshal() (dAtA []byte, err error)

func (*MsgRedelegate) MarshalTo

func (m *MsgRedelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgRedelegate) MarshalToSizedBuffer

func (m *MsgRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRedelegate) ProtoMessage

func (*MsgRedelegate) ProtoMessage()

func (*MsgRedelegate) Reset

func (m *MsgRedelegate) Reset()

func (MsgRedelegate) Route

func (msg MsgRedelegate) Route() string

func (*MsgRedelegate) Size

func (m *MsgRedelegate) Size() (n int)

func (*MsgRedelegate) String

func (m *MsgRedelegate) String() string

func (MsgRedelegate) Type

func (msg MsgRedelegate) Type() string

func (*MsgRedelegate) Unmarshal

func (m *MsgRedelegate) Unmarshal(dAtA []byte) error

func (MsgRedelegate) ValidateBasic

func (msg MsgRedelegate) ValidateBasic() error

func (*MsgRedelegate) XXX_DiscardUnknown

func (m *MsgRedelegate) XXX_DiscardUnknown()

func (*MsgRedelegate) XXX_Marshal

func (m *MsgRedelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRedelegate) XXX_Merge

func (m *MsgRedelegate) XXX_Merge(src proto.Message)

func (*MsgRedelegate) XXX_Size

func (m *MsgRedelegate) XXX_Size() int

func (*MsgRedelegate) XXX_Unmarshal

func (m *MsgRedelegate) XXX_Unmarshal(b []byte) error

type MsgRedelegateResponse

type MsgRedelegateResponse struct {
}

func (*MsgRedelegateResponse) Descriptor

func (*MsgRedelegateResponse) Descriptor() ([]byte, []int)

func (*MsgRedelegateResponse) Marshal

func (m *MsgRedelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgRedelegateResponse) MarshalTo

func (m *MsgRedelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRedelegateResponse) MarshalToSizedBuffer

func (m *MsgRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRedelegateResponse) ProtoMessage

func (*MsgRedelegateResponse) ProtoMessage()

func (*MsgRedelegateResponse) Reset

func (m *MsgRedelegateResponse) Reset()

func (*MsgRedelegateResponse) Size

func (m *MsgRedelegateResponse) Size() (n int)

func (*MsgRedelegateResponse) String

func (m *MsgRedelegateResponse) String() string

func (*MsgRedelegateResponse) Unmarshal

func (m *MsgRedelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgRedelegateResponse) XXX_DiscardUnknown

func (m *MsgRedelegateResponse) XXX_DiscardUnknown()

func (*MsgRedelegateResponse) XXX_Marshal

func (m *MsgRedelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRedelegateResponse) XXX_Merge

func (m *MsgRedelegateResponse) XXX_Merge(src proto.Message)

func (*MsgRedelegateResponse) XXX_Size

func (m *MsgRedelegateResponse) XXX_Size() int

func (*MsgRedelegateResponse) XXX_Unmarshal

func (m *MsgRedelegateResponse) XXX_Unmarshal(b []byte) error

type MsgServer

MsgServer is the server API for Msg service.

type MsgUndelegate

type MsgUndelegate 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           github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
}

func NewMsgUndelegate

func NewMsgUndelegate(delegatorAddress, validatorAddress string, amount sdk.Coin) *MsgUndelegate

func (*MsgUndelegate) Descriptor

func (*MsgUndelegate) Descriptor() ([]byte, []int)

func (MsgUndelegate) GetSignBytes

func (msg MsgUndelegate) GetSignBytes() []byte

func (MsgUndelegate) GetSigners

func (msg MsgUndelegate) GetSigners() []sdk.AccAddress

func (*MsgUndelegate) Marshal

func (m *MsgUndelegate) Marshal() (dAtA []byte, err error)

func (*MsgUndelegate) MarshalTo

func (m *MsgUndelegate) MarshalTo(dAtA []byte) (int, error)

func (*MsgUndelegate) MarshalToSizedBuffer

func (m *MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUndelegate) ProtoMessage

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset

func (m *MsgUndelegate) Reset()

func (MsgUndelegate) Route

func (msg MsgUndelegate) Route() string

func (*MsgUndelegate) Size

func (m *MsgUndelegate) Size() (n int)

func (*MsgUndelegate) String

func (m *MsgUndelegate) String() string

func (MsgUndelegate) Type

func (msg MsgUndelegate) Type() string

func (*MsgUndelegate) Unmarshal

func (m *MsgUndelegate) Unmarshal(dAtA []byte) error

func (MsgUndelegate) ValidateBasic

func (msg MsgUndelegate) ValidateBasic() error

func (*MsgUndelegate) XXX_DiscardUnknown

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal

func (m *MsgUndelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUndelegate) XXX_Merge

func (m *MsgUndelegate) XXX_Merge(src proto.Message)

func (*MsgUndelegate) XXX_Size

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal

func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
}

func (*MsgUndelegateResponse) Descriptor

func (*MsgUndelegateResponse) Descriptor() ([]byte, []int)

func (*MsgUndelegateResponse) Marshal

func (m *MsgUndelegateResponse) Marshal() (dAtA []byte, err error)

func (*MsgUndelegateResponse) MarshalTo

func (m *MsgUndelegateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUndelegateResponse) MarshalToSizedBuffer

func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUndelegateResponse) ProtoMessage

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size

func (m *MsgUndelegateResponse) Size() (n int)

func (*MsgUndelegateResponse) String

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal

func (m *MsgUndelegateResponse) Unmarshal(dAtA []byte) error

func (*MsgUndelegateResponse) XXX_DiscardUnknown

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal

func (m *MsgUndelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUndelegateResponse) XXX_Merge

func (m *MsgUndelegateResponse) XXX_Merge(src proto.Message)

func (*MsgUndelegateResponse) XXX_Size

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal

func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateAllianceProposal

type MsgUpdateAllianceProposal struct {
	// the title of the update proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Denom of the asset. It could either be a native token or an IBC token
	Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	// The reward weight specifies the ratio of rewards that will be given to each alliance asset
	// It does not need to sum to 1. rate = weight / total_weight
	// Native asset is always assumed to have a weight of 1.
	RewardWeight         github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
	TakeRate             github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=take_rate,json=takeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"take_rate"`
	RewardChangeRate     github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	RewardChangeInterval time.Duration                          `protobuf:"bytes,7,opt,name=reward_change_interval,json=rewardChangeInterval,proto3,stdduration" json:"reward_change_interval"`
	ConsensusWeight      github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	ConsensusCap         github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */
}

func (*MsgUpdateAllianceProposal) Descriptor

func (*MsgUpdateAllianceProposal) Descriptor() ([]byte, []int)

func (*MsgUpdateAllianceProposal) GetDescription

func (m *MsgUpdateAllianceProposal) GetDescription() string

func (*MsgUpdateAllianceProposal) GetTitle

func (m *MsgUpdateAllianceProposal) GetTitle() string

func (*MsgUpdateAllianceProposal) Marshal

func (m *MsgUpdateAllianceProposal) Marshal() (dAtA []byte, err error)

func (*MsgUpdateAllianceProposal) MarshalTo

func (m *MsgUpdateAllianceProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateAllianceProposal) MarshalToSizedBuffer

func (m *MsgUpdateAllianceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateAllianceProposal) ProposalRoute

func (m *MsgUpdateAllianceProposal) ProposalRoute() string

func (*MsgUpdateAllianceProposal) ProposalType

func (m *MsgUpdateAllianceProposal) ProposalType() string

func (*MsgUpdateAllianceProposal) ProtoMessage

func (*MsgUpdateAllianceProposal) ProtoMessage()

func (*MsgUpdateAllianceProposal) Reset

func (m *MsgUpdateAllianceProposal) Reset()

func (*MsgUpdateAllianceProposal) Size

func (m *MsgUpdateAllianceProposal) Size() (n int)

func (*MsgUpdateAllianceProposal) String

func (m *MsgUpdateAllianceProposal) String() string

func (*MsgUpdateAllianceProposal) Unmarshal

func (m *MsgUpdateAllianceProposal) Unmarshal(dAtA []byte) error

func (*MsgUpdateAllianceProposal) ValidateBasic

func (m *MsgUpdateAllianceProposal) ValidateBasic() error

func (*MsgUpdateAllianceProposal) XXX_DiscardUnknown

func (m *MsgUpdateAllianceProposal) XXX_DiscardUnknown()

func (*MsgUpdateAllianceProposal) XXX_Marshal

func (m *MsgUpdateAllianceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateAllianceProposal) XXX_Merge

func (m *MsgUpdateAllianceProposal) XXX_Merge(src proto.Message)

func (*MsgUpdateAllianceProposal) XXX_Size

func (m *MsgUpdateAllianceProposal) XXX_Size() int

func (*MsgUpdateAllianceProposal) XXX_Unmarshal

func (m *MsgUpdateAllianceProposal) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	RewardDelayTime time.Duration `protobuf:"bytes,1,opt,name=reward_delay_time,json=rewardDelayTime,proto3,stdduration" json:"reward_delay_time"`
	// Time interval between consecutive applications of `take_rate`
	TakeRateClaimInterval time.Duration `` /* 130-byte string literal not displayed */
	// Last application of `take_rate` on assets
	LastTakeRateClaimTime time.Time `` /* 128-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetLastTakeRateClaimTime

func (m *Params) GetLastTakeRateClaimTime() time.Time

func (*Params) GetRewardDelayTime

func (m *Params) GetRewardDelayTime() time.Duration

func (*Params) GetTakeRateClaimInterval

func (m *Params) GetTakeRateClaimInterval() time.Duration

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAllAllianceValidatorsRequest

type QueryAllAllianceValidatorsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAllianceValidatorsRequest) Descriptor

func (*QueryAllAllianceValidatorsRequest) Descriptor() ([]byte, []int)

func (*QueryAllAllianceValidatorsRequest) Marshal

func (m *QueryAllAllianceValidatorsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllAllianceValidatorsRequest) MarshalTo

func (m *QueryAllAllianceValidatorsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllAllianceValidatorsRequest) MarshalToSizedBuffer

func (m *QueryAllAllianceValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllAllianceValidatorsRequest) ProtoMessage

func (*QueryAllAllianceValidatorsRequest) ProtoMessage()

func (*QueryAllAllianceValidatorsRequest) Reset

func (*QueryAllAllianceValidatorsRequest) Size

func (m *QueryAllAllianceValidatorsRequest) Size() (n int)

func (*QueryAllAllianceValidatorsRequest) String

func (*QueryAllAllianceValidatorsRequest) Unmarshal

func (m *QueryAllAllianceValidatorsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllAllianceValidatorsRequest) XXX_DiscardUnknown

func (m *QueryAllAllianceValidatorsRequest) XXX_DiscardUnknown()

func (*QueryAllAllianceValidatorsRequest) XXX_Marshal

func (m *QueryAllAllianceValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllAllianceValidatorsRequest) XXX_Merge

func (*QueryAllAllianceValidatorsRequest) XXX_Size

func (m *QueryAllAllianceValidatorsRequest) XXX_Size() int

func (*QueryAllAllianceValidatorsRequest) XXX_Unmarshal

func (m *QueryAllAllianceValidatorsRequest) XXX_Unmarshal(b []byte) error

type QueryAllAlliancesDelegationsRequest

type QueryAllAlliancesDelegationsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAlliancesDelegationsRequest) Descriptor

func (*QueryAllAlliancesDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryAllAlliancesDelegationsRequest) Marshal

func (m *QueryAllAlliancesDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllAlliancesDelegationsRequest) MarshalTo

func (m *QueryAllAlliancesDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllAlliancesDelegationsRequest) MarshalToSizedBuffer

func (m *QueryAllAlliancesDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllAlliancesDelegationsRequest) ProtoMessage

func (*QueryAllAlliancesDelegationsRequest) ProtoMessage()

func (*QueryAllAlliancesDelegationsRequest) Reset

func (*QueryAllAlliancesDelegationsRequest) Size

func (*QueryAllAlliancesDelegationsRequest) String

func (*QueryAllAlliancesDelegationsRequest) Unmarshal

func (m *QueryAllAlliancesDelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllAlliancesDelegationsRequest) XXX_DiscardUnknown

func (m *QueryAllAlliancesDelegationsRequest) XXX_DiscardUnknown()

func (*QueryAllAlliancesDelegationsRequest) XXX_Marshal

func (m *QueryAllAlliancesDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllAlliancesDelegationsRequest) XXX_Merge

func (*QueryAllAlliancesDelegationsRequest) XXX_Size

func (*QueryAllAlliancesDelegationsRequest) XXX_Unmarshal

func (m *QueryAllAlliancesDelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryAllianceDelegationRequest

type QueryAllianceDelegationRequest struct {
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	Denom         string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

AllianceDelegation

func (*QueryAllianceDelegationRequest) Descriptor

func (*QueryAllianceDelegationRequest) Descriptor() ([]byte, []int)

func (*QueryAllianceDelegationRequest) Marshal

func (m *QueryAllianceDelegationRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllianceDelegationRequest) MarshalTo

func (m *QueryAllianceDelegationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRequest) MarshalToSizedBuffer

func (m *QueryAllianceDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRequest) ProtoMessage

func (*QueryAllianceDelegationRequest) ProtoMessage()

func (*QueryAllianceDelegationRequest) Reset

func (m *QueryAllianceDelegationRequest) Reset()

func (*QueryAllianceDelegationRequest) Size

func (m *QueryAllianceDelegationRequest) Size() (n int)

func (*QueryAllianceDelegationRequest) String

func (*QueryAllianceDelegationRequest) Unmarshal

func (m *QueryAllianceDelegationRequest) Unmarshal(dAtA []byte) error

func (*QueryAllianceDelegationRequest) XXX_DiscardUnknown

func (m *QueryAllianceDelegationRequest) XXX_DiscardUnknown()

func (*QueryAllianceDelegationRequest) XXX_Marshal

func (m *QueryAllianceDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceDelegationRequest) XXX_Merge

func (m *QueryAllianceDelegationRequest) XXX_Merge(src proto.Message)

func (*QueryAllianceDelegationRequest) XXX_Size

func (m *QueryAllianceDelegationRequest) XXX_Size() int

func (*QueryAllianceDelegationRequest) XXX_Unmarshal

func (m *QueryAllianceDelegationRequest) XXX_Unmarshal(b []byte) error

type QueryAllianceDelegationResponse

type QueryAllianceDelegationResponse struct {
	Delegation DelegationResponse `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
}

func (*QueryAllianceDelegationResponse) Descriptor

func (*QueryAllianceDelegationResponse) Descriptor() ([]byte, []int)

func (*QueryAllianceDelegationResponse) GetDelegation

func (*QueryAllianceDelegationResponse) Marshal

func (m *QueryAllianceDelegationResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllianceDelegationResponse) MarshalTo

func (m *QueryAllianceDelegationResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceDelegationResponse) MarshalToSizedBuffer

func (m *QueryAllianceDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceDelegationResponse) ProtoMessage

func (*QueryAllianceDelegationResponse) ProtoMessage()

func (*QueryAllianceDelegationResponse) Reset

func (*QueryAllianceDelegationResponse) Size

func (m *QueryAllianceDelegationResponse) Size() (n int)

func (*QueryAllianceDelegationResponse) String

func (*QueryAllianceDelegationResponse) Unmarshal

func (m *QueryAllianceDelegationResponse) Unmarshal(dAtA []byte) error

func (*QueryAllianceDelegationResponse) XXX_DiscardUnknown

func (m *QueryAllianceDelegationResponse) XXX_DiscardUnknown()

func (*QueryAllianceDelegationResponse) XXX_Marshal

func (m *QueryAllianceDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceDelegationResponse) XXX_Merge

func (m *QueryAllianceDelegationResponse) XXX_Merge(src proto.Message)

func (*QueryAllianceDelegationResponse) XXX_Size

func (m *QueryAllianceDelegationResponse) XXX_Size() int

func (*QueryAllianceDelegationResponse) XXX_Unmarshal

func (m *QueryAllianceDelegationResponse) XXX_Unmarshal(b []byte) error

type QueryAllianceDelegationRewardsRequest

type QueryAllianceDelegationRewardsRequest struct {
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	Denom         string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

AllianceDelegation

func (*QueryAllianceDelegationRewardsRequest) Descriptor

func (*QueryAllianceDelegationRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryAllianceDelegationRewardsRequest) Marshal

func (m *QueryAllianceDelegationRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllianceDelegationRewardsRequest) MarshalTo

func (m *QueryAllianceDelegationRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRewardsRequest) MarshalToSizedBuffer

func (m *QueryAllianceDelegationRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRewardsRequest) ProtoMessage

func (*QueryAllianceDelegationRewardsRequest) ProtoMessage()

func (*QueryAllianceDelegationRewardsRequest) Reset

func (*QueryAllianceDelegationRewardsRequest) Size

func (*QueryAllianceDelegationRewardsRequest) String

func (*QueryAllianceDelegationRewardsRequest) Unmarshal

func (m *QueryAllianceDelegationRewardsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllianceDelegationRewardsRequest) XXX_DiscardUnknown

func (m *QueryAllianceDelegationRewardsRequest) XXX_DiscardUnknown()

func (*QueryAllianceDelegationRewardsRequest) XXX_Marshal

func (m *QueryAllianceDelegationRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceDelegationRewardsRequest) XXX_Merge

func (*QueryAllianceDelegationRewardsRequest) XXX_Size

func (*QueryAllianceDelegationRewardsRequest) XXX_Unmarshal

func (m *QueryAllianceDelegationRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryAllianceDelegationRewardsResponse

type QueryAllianceDelegationRewardsResponse struct {
	Rewards []github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,rep,name=rewards,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"rewards"`
}

func (*QueryAllianceDelegationRewardsResponse) Descriptor

func (*QueryAllianceDelegationRewardsResponse) Descriptor() ([]byte, []int)

func (*QueryAllianceDelegationRewardsResponse) Marshal

func (m *QueryAllianceDelegationRewardsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllianceDelegationRewardsResponse) MarshalTo

func (m *QueryAllianceDelegationRewardsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRewardsResponse) MarshalToSizedBuffer

func (m *QueryAllianceDelegationRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceDelegationRewardsResponse) ProtoMessage

func (*QueryAllianceDelegationRewardsResponse) Reset

func (*QueryAllianceDelegationRewardsResponse) Size

func (*QueryAllianceDelegationRewardsResponse) String

func (*QueryAllianceDelegationRewardsResponse) Unmarshal

func (m *QueryAllianceDelegationRewardsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllianceDelegationRewardsResponse) XXX_DiscardUnknown

func (m *QueryAllianceDelegationRewardsResponse) XXX_DiscardUnknown()

func (*QueryAllianceDelegationRewardsResponse) XXX_Marshal

func (m *QueryAllianceDelegationRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceDelegationRewardsResponse) XXX_Merge

func (*QueryAllianceDelegationRewardsResponse) XXX_Size

func (*QueryAllianceDelegationRewardsResponse) XXX_Unmarshal

func (m *QueryAllianceDelegationRewardsResponse) XXX_Unmarshal(b []byte) error

type QueryAllianceRequest

type QueryAllianceRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

Alliance

func (*QueryAllianceRequest) Descriptor

func (*QueryAllianceRequest) Descriptor() ([]byte, []int)

func (*QueryAllianceRequest) GetDenom

func (m *QueryAllianceRequest) GetDenom() string

func (*QueryAllianceRequest) Marshal

func (m *QueryAllianceRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllianceRequest) MarshalTo

func (m *QueryAllianceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceRequest) MarshalToSizedBuffer

func (m *QueryAllianceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceRequest) ProtoMessage

func (*QueryAllianceRequest) ProtoMessage()

func (*QueryAllianceRequest) Reset

func (m *QueryAllianceRequest) Reset()

func (*QueryAllianceRequest) Size

func (m *QueryAllianceRequest) Size() (n int)

func (*QueryAllianceRequest) String

func (m *QueryAllianceRequest) String() string

func (*QueryAllianceRequest) Unmarshal

func (m *QueryAllianceRequest) Unmarshal(dAtA []byte) error

func (*QueryAllianceRequest) XXX_DiscardUnknown

func (m *QueryAllianceRequest) XXX_DiscardUnknown()

func (*QueryAllianceRequest) XXX_Marshal

func (m *QueryAllianceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceRequest) XXX_Merge

func (m *QueryAllianceRequest) XXX_Merge(src proto.Message)

func (*QueryAllianceRequest) XXX_Size

func (m *QueryAllianceRequest) XXX_Size() int

func (*QueryAllianceRequest) XXX_Unmarshal

func (m *QueryAllianceRequest) XXX_Unmarshal(b []byte) error

type QueryAllianceResponse

type QueryAllianceResponse struct {
	Alliance *AllianceAsset `protobuf:"bytes,1,opt,name=alliance,proto3" json:"alliance,omitempty"`
}

func (*QueryAllianceResponse) Descriptor

func (*QueryAllianceResponse) Descriptor() ([]byte, []int)

func (*QueryAllianceResponse) GetAlliance

func (m *QueryAllianceResponse) GetAlliance() *AllianceAsset

func (*QueryAllianceResponse) Marshal

func (m *QueryAllianceResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllianceResponse) MarshalTo

func (m *QueryAllianceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceResponse) MarshalToSizedBuffer

func (m *QueryAllianceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceResponse) ProtoMessage

func (*QueryAllianceResponse) ProtoMessage()

func (*QueryAllianceResponse) Reset

func (m *QueryAllianceResponse) Reset()

func (*QueryAllianceResponse) Size

func (m *QueryAllianceResponse) Size() (n int)

func (*QueryAllianceResponse) String

func (m *QueryAllianceResponse) String() string

func (*QueryAllianceResponse) Unmarshal

func (m *QueryAllianceResponse) Unmarshal(dAtA []byte) error

func (*QueryAllianceResponse) XXX_DiscardUnknown

func (m *QueryAllianceResponse) XXX_DiscardUnknown()

func (*QueryAllianceResponse) XXX_Marshal

func (m *QueryAllianceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceResponse) XXX_Merge

func (m *QueryAllianceResponse) XXX_Merge(src proto.Message)

func (*QueryAllianceResponse) XXX_Size

func (m *QueryAllianceResponse) XXX_Size() int

func (*QueryAllianceResponse) XXX_Unmarshal

func (m *QueryAllianceResponse) XXX_Unmarshal(b []byte) error

type QueryAllianceValidatorRequest

type QueryAllianceValidatorRequest struct {
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

func (*QueryAllianceValidatorRequest) Descriptor

func (*QueryAllianceValidatorRequest) Descriptor() ([]byte, []int)

func (*QueryAllianceValidatorRequest) Marshal

func (m *QueryAllianceValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllianceValidatorRequest) MarshalTo

func (m *QueryAllianceValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceValidatorRequest) MarshalToSizedBuffer

func (m *QueryAllianceValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceValidatorRequest) ProtoMessage

func (*QueryAllianceValidatorRequest) ProtoMessage()

func (*QueryAllianceValidatorRequest) Reset

func (m *QueryAllianceValidatorRequest) Reset()

func (*QueryAllianceValidatorRequest) Size

func (m *QueryAllianceValidatorRequest) Size() (n int)

func (*QueryAllianceValidatorRequest) String

func (*QueryAllianceValidatorRequest) Unmarshal

func (m *QueryAllianceValidatorRequest) Unmarshal(dAtA []byte) error

func (*QueryAllianceValidatorRequest) XXX_DiscardUnknown

func (m *QueryAllianceValidatorRequest) XXX_DiscardUnknown()

func (*QueryAllianceValidatorRequest) XXX_Marshal

func (m *QueryAllianceValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceValidatorRequest) XXX_Merge

func (m *QueryAllianceValidatorRequest) XXX_Merge(src proto.Message)

func (*QueryAllianceValidatorRequest) XXX_Size

func (m *QueryAllianceValidatorRequest) XXX_Size() int

func (*QueryAllianceValidatorRequest) XXX_Unmarshal

func (m *QueryAllianceValidatorRequest) XXX_Unmarshal(b []byte) error

type QueryAllianceValidatorResponse

type QueryAllianceValidatorResponse struct {
	ValidatorAddr         string          `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	TotalDelegationShares []types.DecCoin `protobuf:"bytes,2,rep,name=total_delegation_shares,json=totalDelegationShares,proto3" json:"total_delegation_shares"`
	ValidatorShares       []types.DecCoin `protobuf:"bytes,3,rep,name=validator_shares,json=validatorShares,proto3" json:"validator_shares"`
	TotalStaked           []types.DecCoin `protobuf:"bytes,4,rep,name=total_staked,json=totalStaked,proto3" json:"total_staked"`
}

func (*QueryAllianceValidatorResponse) Descriptor

func (*QueryAllianceValidatorResponse) Descriptor() ([]byte, []int)

func (*QueryAllianceValidatorResponse) Marshal

func (m *QueryAllianceValidatorResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllianceValidatorResponse) MarshalTo

func (m *QueryAllianceValidatorResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceValidatorResponse) MarshalToSizedBuffer

func (m *QueryAllianceValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceValidatorResponse) ProtoMessage

func (*QueryAllianceValidatorResponse) ProtoMessage()

func (*QueryAllianceValidatorResponse) Reset

func (m *QueryAllianceValidatorResponse) Reset()

func (*QueryAllianceValidatorResponse) Size

func (m *QueryAllianceValidatorResponse) Size() (n int)

func (*QueryAllianceValidatorResponse) String

func (*QueryAllianceValidatorResponse) Unmarshal

func (m *QueryAllianceValidatorResponse) Unmarshal(dAtA []byte) error

func (*QueryAllianceValidatorResponse) XXX_DiscardUnknown

func (m *QueryAllianceValidatorResponse) XXX_DiscardUnknown()

func (*QueryAllianceValidatorResponse) XXX_Marshal

func (m *QueryAllianceValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceValidatorResponse) XXX_Merge

func (m *QueryAllianceValidatorResponse) XXX_Merge(src proto.Message)

func (*QueryAllianceValidatorResponse) XXX_Size

func (m *QueryAllianceValidatorResponse) XXX_Size() int

func (*QueryAllianceValidatorResponse) XXX_Unmarshal

func (m *QueryAllianceValidatorResponse) XXX_Unmarshal(b []byte) error

type QueryAllianceValidatorsResponse

type QueryAllianceValidatorsResponse struct {
	Validators []QueryAllianceValidatorResponse `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
	Pagination *query.PageResponse              `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllianceValidatorsResponse) Descriptor

func (*QueryAllianceValidatorsResponse) Descriptor() ([]byte, []int)

func (*QueryAllianceValidatorsResponse) Marshal

func (m *QueryAllianceValidatorsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllianceValidatorsResponse) MarshalTo

func (m *QueryAllianceValidatorsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllianceValidatorsResponse) MarshalToSizedBuffer

func (m *QueryAllianceValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllianceValidatorsResponse) ProtoMessage

func (*QueryAllianceValidatorsResponse) ProtoMessage()

func (*QueryAllianceValidatorsResponse) Reset

func (*QueryAllianceValidatorsResponse) Size

func (m *QueryAllianceValidatorsResponse) Size() (n int)

func (*QueryAllianceValidatorsResponse) String

func (*QueryAllianceValidatorsResponse) Unmarshal

func (m *QueryAllianceValidatorsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllianceValidatorsResponse) XXX_DiscardUnknown

func (m *QueryAllianceValidatorsResponse) XXX_DiscardUnknown()

func (*QueryAllianceValidatorsResponse) XXX_Marshal

func (m *QueryAllianceValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllianceValidatorsResponse) XXX_Merge

func (m *QueryAllianceValidatorsResponse) XXX_Merge(src proto.Message)

func (*QueryAllianceValidatorsResponse) XXX_Size

func (m *QueryAllianceValidatorsResponse) XXX_Size() int

func (*QueryAllianceValidatorsResponse) XXX_Unmarshal

func (m *QueryAllianceValidatorsResponse) XXX_Unmarshal(b []byte) error

type QueryAlliancesDelegationByValidatorRequest

type QueryAlliancesDelegationByValidatorRequest struct {
	DelegatorAddr string             `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	ValidatorAddr string             `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	Pagination    *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AlliancesDelegationByValidator

func (*QueryAlliancesDelegationByValidatorRequest) Descriptor

func (*QueryAlliancesDelegationByValidatorRequest) Marshal

func (m *QueryAlliancesDelegationByValidatorRequest) Marshal() (dAtA []byte, err error)

func (*QueryAlliancesDelegationByValidatorRequest) MarshalTo

func (m *QueryAlliancesDelegationByValidatorRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationByValidatorRequest) MarshalToSizedBuffer

func (m *QueryAlliancesDelegationByValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationByValidatorRequest) ProtoMessage

func (*QueryAlliancesDelegationByValidatorRequest) Reset

func (*QueryAlliancesDelegationByValidatorRequest) Size

func (*QueryAlliancesDelegationByValidatorRequest) String

func (*QueryAlliancesDelegationByValidatorRequest) Unmarshal

func (*QueryAlliancesDelegationByValidatorRequest) XXX_DiscardUnknown

func (m *QueryAlliancesDelegationByValidatorRequest) XXX_DiscardUnknown()

func (*QueryAlliancesDelegationByValidatorRequest) XXX_Marshal

func (m *QueryAlliancesDelegationByValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAlliancesDelegationByValidatorRequest) XXX_Merge

func (*QueryAlliancesDelegationByValidatorRequest) XXX_Size

func (*QueryAlliancesDelegationByValidatorRequest) XXX_Unmarshal

type QueryAlliancesDelegationsRequest

type QueryAlliancesDelegationsRequest struct {
	DelegatorAddr string             `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	Pagination    *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AlliancesDelegation

func (*QueryAlliancesDelegationsRequest) Descriptor

func (*QueryAlliancesDelegationsRequest) Descriptor() ([]byte, []int)

func (*QueryAlliancesDelegationsRequest) Marshal

func (m *QueryAlliancesDelegationsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAlliancesDelegationsRequest) MarshalTo

func (m *QueryAlliancesDelegationsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationsRequest) MarshalToSizedBuffer

func (m *QueryAlliancesDelegationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationsRequest) ProtoMessage

func (*QueryAlliancesDelegationsRequest) ProtoMessage()

func (*QueryAlliancesDelegationsRequest) Reset

func (*QueryAlliancesDelegationsRequest) Size

func (m *QueryAlliancesDelegationsRequest) Size() (n int)

func (*QueryAlliancesDelegationsRequest) String

func (*QueryAlliancesDelegationsRequest) Unmarshal

func (m *QueryAlliancesDelegationsRequest) Unmarshal(dAtA []byte) error

func (*QueryAlliancesDelegationsRequest) XXX_DiscardUnknown

func (m *QueryAlliancesDelegationsRequest) XXX_DiscardUnknown()

func (*QueryAlliancesDelegationsRequest) XXX_Marshal

func (m *QueryAlliancesDelegationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAlliancesDelegationsRequest) XXX_Merge

func (*QueryAlliancesDelegationsRequest) XXX_Size

func (m *QueryAlliancesDelegationsRequest) XXX_Size() int

func (*QueryAlliancesDelegationsRequest) XXX_Unmarshal

func (m *QueryAlliancesDelegationsRequest) XXX_Unmarshal(b []byte) error

type QueryAlliancesDelegationsResponse

type QueryAlliancesDelegationsResponse struct {
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	Pagination  *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAlliancesDelegationsResponse) Descriptor

func (*QueryAlliancesDelegationsResponse) Descriptor() ([]byte, []int)

func (*QueryAlliancesDelegationsResponse) GetDelegations

func (*QueryAlliancesDelegationsResponse) GetPagination

func (*QueryAlliancesDelegationsResponse) Marshal

func (m *QueryAlliancesDelegationsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAlliancesDelegationsResponse) MarshalTo

func (m *QueryAlliancesDelegationsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationsResponse) MarshalToSizedBuffer

func (m *QueryAlliancesDelegationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAlliancesDelegationsResponse) ProtoMessage

func (*QueryAlliancesDelegationsResponse) ProtoMessage()

func (*QueryAlliancesDelegationsResponse) Reset

func (*QueryAlliancesDelegationsResponse) Size

func (m *QueryAlliancesDelegationsResponse) Size() (n int)

func (*QueryAlliancesDelegationsResponse) String

func (*QueryAlliancesDelegationsResponse) Unmarshal

func (m *QueryAlliancesDelegationsResponse) Unmarshal(dAtA []byte) error

func (*QueryAlliancesDelegationsResponse) XXX_DiscardUnknown

func (m *QueryAlliancesDelegationsResponse) XXX_DiscardUnknown()

func (*QueryAlliancesDelegationsResponse) XXX_Marshal

func (m *QueryAlliancesDelegationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAlliancesDelegationsResponse) XXX_Merge

func (*QueryAlliancesDelegationsResponse) XXX_Size

func (m *QueryAlliancesDelegationsResponse) XXX_Size() int

func (*QueryAlliancesDelegationsResponse) XXX_Unmarshal

func (m *QueryAlliancesDelegationsResponse) XXX_Unmarshal(b []byte) error

type QueryAlliancesRequest

type QueryAlliancesRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Alliances

func (*QueryAlliancesRequest) Descriptor

func (*QueryAlliancesRequest) Descriptor() ([]byte, []int)

func (*QueryAlliancesRequest) GetPagination

func (m *QueryAlliancesRequest) GetPagination() *query.PageRequest

func (*QueryAlliancesRequest) Marshal

func (m *QueryAlliancesRequest) Marshal() (dAtA []byte, err error)

func (*QueryAlliancesRequest) MarshalTo

func (m *QueryAlliancesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAlliancesRequest) MarshalToSizedBuffer

func (m *QueryAlliancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAlliancesRequest) ProtoMessage

func (*QueryAlliancesRequest) ProtoMessage()

func (*QueryAlliancesRequest) Reset

func (m *QueryAlliancesRequest) Reset()

func (*QueryAlliancesRequest) Size

func (m *QueryAlliancesRequest) Size() (n int)

func (*QueryAlliancesRequest) String

func (m *QueryAlliancesRequest) String() string

func (*QueryAlliancesRequest) Unmarshal

func (m *QueryAlliancesRequest) Unmarshal(dAtA []byte) error

func (*QueryAlliancesRequest) XXX_DiscardUnknown

func (m *QueryAlliancesRequest) XXX_DiscardUnknown()

func (*QueryAlliancesRequest) XXX_Marshal

func (m *QueryAlliancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAlliancesRequest) XXX_Merge

func (m *QueryAlliancesRequest) XXX_Merge(src proto.Message)

func (*QueryAlliancesRequest) XXX_Size

func (m *QueryAlliancesRequest) XXX_Size() int

func (*QueryAlliancesRequest) XXX_Unmarshal

func (m *QueryAlliancesRequest) XXX_Unmarshal(b []byte) error

type QueryAlliancesResponse

type QueryAlliancesResponse struct {
	Alliances  []AllianceAsset     `protobuf:"bytes,1,rep,name=alliances,proto3" json:"alliances"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAlliancesResponse) Descriptor

func (*QueryAlliancesResponse) Descriptor() ([]byte, []int)

func (*QueryAlliancesResponse) GetAlliances

func (m *QueryAlliancesResponse) GetAlliances() []AllianceAsset

func (*QueryAlliancesResponse) GetPagination

func (m *QueryAlliancesResponse) GetPagination() *query.PageResponse

func (*QueryAlliancesResponse) Marshal

func (m *QueryAlliancesResponse) Marshal() (dAtA []byte, err error)

func (*QueryAlliancesResponse) MarshalTo

func (m *QueryAlliancesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAlliancesResponse) MarshalToSizedBuffer

func (m *QueryAlliancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAlliancesResponse) ProtoMessage

func (*QueryAlliancesResponse) ProtoMessage()

func (*QueryAlliancesResponse) Reset

func (m *QueryAlliancesResponse) Reset()

func (*QueryAlliancesResponse) Size

func (m *QueryAlliancesResponse) Size() (n int)

func (*QueryAlliancesResponse) String

func (m *QueryAlliancesResponse) String() string

func (*QueryAlliancesResponse) Unmarshal

func (m *QueryAlliancesResponse) Unmarshal(dAtA []byte) error

func (*QueryAlliancesResponse) XXX_DiscardUnknown

func (m *QueryAlliancesResponse) XXX_DiscardUnknown()

func (*QueryAlliancesResponse) XXX_Marshal

func (m *QueryAlliancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAlliancesResponse) XXX_Merge

func (m *QueryAlliancesResponse) XXX_Merge(src proto.Message)

func (*QueryAlliancesResponse) XXX_Size

func (m *QueryAlliancesResponse) XXX_Size() int

func (*QueryAlliancesResponse) XXX_Unmarshal

func (m *QueryAlliancesResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Query paginated alliances
	Alliances(ctx context.Context, in *QueryAlliancesRequest, opts ...grpc.CallOption) (*QueryAlliancesResponse, error)
	// Query a specific alliance by ibc hash
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/ibc%2Falliance
	IBCAlliance(ctx context.Context, in *QueryIBCAllianceRequest, opts ...grpc.CallOption) (*QueryAllianceResponse, error)
	// Query all paginated alliance delegations
	AllAlliancesDelegations(ctx context.Context, in *QueryAllAlliancesDelegationsRequest, opts ...grpc.CallOption) (*QueryAlliancesDelegationsResponse, error)
	// Query alliance validator
	AllianceValidator(ctx context.Context, in *QueryAllianceValidatorRequest, opts ...grpc.CallOption) (*QueryAllianceValidatorResponse, error)
	// Query all paginated alliance validators
	AllAllianceValidators(ctx context.Context, in *QueryAllAllianceValidatorsRequest, opts ...grpc.CallOption) (*QueryAllianceValidatorsResponse, error)
	// Query all paginated alliance delegations for a delegator addr
	AlliancesDelegation(ctx context.Context, in *QueryAlliancesDelegationsRequest, opts ...grpc.CallOption) (*QueryAlliancesDelegationsResponse, error)
	// Query all paginated alliance delegations for a delegator addr and validator_addr
	AlliancesDelegationByValidator(ctx context.Context, in *QueryAlliancesDelegationByValidatorRequest, opts ...grpc.CallOption) (*QueryAlliancesDelegationsResponse, error)
	// Query a delegation to an alliance by delegator addr, validator_addr and denom
	AllianceDelegation(ctx context.Context, in *QueryAllianceDelegationRequest, opts ...grpc.CallOption) (*QueryAllianceDelegationResponse, error)
	// Query a delegation to an alliance by delegator addr, validator_addr and denom
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
	IBCAllianceDelegation(ctx context.Context, in *QueryIBCAllianceDelegationRequest, opts ...grpc.CallOption) (*QueryAllianceDelegationResponse, error)
	// Query for rewards by delegator addr, validator_addr and denom
	AllianceDelegationRewards(ctx context.Context, in *QueryAllianceDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryAllianceDelegationRewardsResponse, error)
	// Query for rewards by delegator addr, validator_addr and denom
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
	IBCAllianceDelegationRewards(ctx context.Context, in *QueryIBCAllianceDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryAllianceDelegationRewardsResponse, error)
	// Query a specific alliance by denom
	Alliance(ctx context.Context, in *QueryAllianceRequest, opts ...grpc.CallOption) (*QueryAllianceResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryIBCAllianceDelegationRequest deprecated

type QueryIBCAllianceDelegationRequest struct {
	DelegatorAddr string             `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	ValidatorAddr string             `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	Hash          string             `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Pagination    *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Deprecated: Do not use.

func (*QueryIBCAllianceDelegationRequest) Descriptor

func (*QueryIBCAllianceDelegationRequest) Descriptor() ([]byte, []int)

func (*QueryIBCAllianceDelegationRequest) Marshal

func (m *QueryIBCAllianceDelegationRequest) Marshal() (dAtA []byte, err error)

func (*QueryIBCAllianceDelegationRequest) MarshalTo

func (m *QueryIBCAllianceDelegationRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryIBCAllianceDelegationRequest) MarshalToSizedBuffer

func (m *QueryIBCAllianceDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIBCAllianceDelegationRequest) ProtoMessage

func (*QueryIBCAllianceDelegationRequest) ProtoMessage()

func (*QueryIBCAllianceDelegationRequest) Reset

func (*QueryIBCAllianceDelegationRequest) Size

func (m *QueryIBCAllianceDelegationRequest) Size() (n int)

func (*QueryIBCAllianceDelegationRequest) String

func (*QueryIBCAllianceDelegationRequest) Unmarshal

func (m *QueryIBCAllianceDelegationRequest) Unmarshal(dAtA []byte) error

func (*QueryIBCAllianceDelegationRequest) XXX_DiscardUnknown

func (m *QueryIBCAllianceDelegationRequest) XXX_DiscardUnknown()

func (*QueryIBCAllianceDelegationRequest) XXX_Marshal

func (m *QueryIBCAllianceDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIBCAllianceDelegationRequest) XXX_Merge

func (*QueryIBCAllianceDelegationRequest) XXX_Size

func (m *QueryIBCAllianceDelegationRequest) XXX_Size() int

func (*QueryIBCAllianceDelegationRequest) XXX_Unmarshal

func (m *QueryIBCAllianceDelegationRequest) XXX_Unmarshal(b []byte) error

type QueryIBCAllianceDelegationRewardsRequest deprecated

type QueryIBCAllianceDelegationRewardsRequest struct {
	DelegatorAddr string             `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	ValidatorAddr string             `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	Hash          string             `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Pagination    *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

Deprecated: Do not use.

func (*QueryIBCAllianceDelegationRewardsRequest) Descriptor

func (*QueryIBCAllianceDelegationRewardsRequest) Descriptor() ([]byte, []int)

func (*QueryIBCAllianceDelegationRewardsRequest) Marshal

func (m *QueryIBCAllianceDelegationRewardsRequest) Marshal() (dAtA []byte, err error)

func (*QueryIBCAllianceDelegationRewardsRequest) MarshalTo

func (m *QueryIBCAllianceDelegationRewardsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryIBCAllianceDelegationRewardsRequest) MarshalToSizedBuffer

func (m *QueryIBCAllianceDelegationRewardsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIBCAllianceDelegationRewardsRequest) ProtoMessage

func (*QueryIBCAllianceDelegationRewardsRequest) Reset

func (*QueryIBCAllianceDelegationRewardsRequest) Size

func (*QueryIBCAllianceDelegationRewardsRequest) String

func (*QueryIBCAllianceDelegationRewardsRequest) Unmarshal

func (*QueryIBCAllianceDelegationRewardsRequest) XXX_DiscardUnknown

func (m *QueryIBCAllianceDelegationRewardsRequest) XXX_DiscardUnknown()

func (*QueryIBCAllianceDelegationRewardsRequest) XXX_Marshal

func (m *QueryIBCAllianceDelegationRewardsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIBCAllianceDelegationRewardsRequest) XXX_Merge

func (*QueryIBCAllianceDelegationRewardsRequest) XXX_Size

func (*QueryIBCAllianceDelegationRewardsRequest) XXX_Unmarshal

func (m *QueryIBCAllianceDelegationRewardsRequest) XXX_Unmarshal(b []byte) error

type QueryIBCAllianceRequest deprecated

type QueryIBCAllianceRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

Deprecated: Do not use.

func (*QueryIBCAllianceRequest) Descriptor

func (*QueryIBCAllianceRequest) Descriptor() ([]byte, []int)

func (*QueryIBCAllianceRequest) GetHash

func (m *QueryIBCAllianceRequest) GetHash() string

func (*QueryIBCAllianceRequest) Marshal

func (m *QueryIBCAllianceRequest) Marshal() (dAtA []byte, err error)

func (*QueryIBCAllianceRequest) MarshalTo

func (m *QueryIBCAllianceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryIBCAllianceRequest) MarshalToSizedBuffer

func (m *QueryIBCAllianceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIBCAllianceRequest) ProtoMessage

func (*QueryIBCAllianceRequest) ProtoMessage()

func (*QueryIBCAllianceRequest) Reset

func (m *QueryIBCAllianceRequest) Reset()

func (*QueryIBCAllianceRequest) Size

func (m *QueryIBCAllianceRequest) Size() (n int)

func (*QueryIBCAllianceRequest) String

func (m *QueryIBCAllianceRequest) String() string

func (*QueryIBCAllianceRequest) Unmarshal

func (m *QueryIBCAllianceRequest) Unmarshal(dAtA []byte) error

func (*QueryIBCAllianceRequest) XXX_DiscardUnknown

func (m *QueryIBCAllianceRequest) XXX_DiscardUnknown()

func (*QueryIBCAllianceRequest) XXX_Marshal

func (m *QueryIBCAllianceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIBCAllianceRequest) XXX_Merge

func (m *QueryIBCAllianceRequest) XXX_Merge(src proto.Message)

func (*QueryIBCAllianceRequest) XXX_Size

func (m *QueryIBCAllianceRequest) XXX_Size() int

func (*QueryIBCAllianceRequest) XXX_Unmarshal

func (m *QueryIBCAllianceRequest) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

Params

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Query paginated alliances
	Alliances(context.Context, *QueryAlliancesRequest) (*QueryAlliancesResponse, error)
	// Query a specific alliance by ibc hash
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/ibc%2Falliance
	IBCAlliance(context.Context, *QueryIBCAllianceRequest) (*QueryAllianceResponse, error)
	// Query all paginated alliance delegations
	AllAlliancesDelegations(context.Context, *QueryAllAlliancesDelegationsRequest) (*QueryAlliancesDelegationsResponse, error)
	// Query alliance validator
	AllianceValidator(context.Context, *QueryAllianceValidatorRequest) (*QueryAllianceValidatorResponse, error)
	// Query all paginated alliance validators
	AllAllianceValidators(context.Context, *QueryAllAllianceValidatorsRequest) (*QueryAllianceValidatorsResponse, error)
	// Query all paginated alliance delegations for a delegator addr
	AlliancesDelegation(context.Context, *QueryAlliancesDelegationsRequest) (*QueryAlliancesDelegationsResponse, error)
	// Query all paginated alliance delegations for a delegator addr and validator_addr
	AlliancesDelegationByValidator(context.Context, *QueryAlliancesDelegationByValidatorRequest) (*QueryAlliancesDelegationsResponse, error)
	// Query a delegation to an alliance by delegator addr, validator_addr and denom
	AllianceDelegation(context.Context, *QueryAllianceDelegationRequest) (*QueryAllianceDelegationResponse, error)
	// Query a delegation to an alliance by delegator addr, validator_addr and denom
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
	IBCAllianceDelegation(context.Context, *QueryIBCAllianceDelegationRequest) (*QueryAllianceDelegationResponse, error)
	// Query for rewards by delegator addr, validator_addr and denom
	AllianceDelegationRewards(context.Context, *QueryAllianceDelegationRewardsRequest) (*QueryAllianceDelegationRewardsResponse, error)
	// Query for rewards by delegator addr, validator_addr and denom
	// @deprecated: this endpoint will be replaced for by the encoded version
	// of the denom e.g.: GET:/terra/alliances/terradr1231/terravaloper41234/ibc%2Falliance
	IBCAllianceDelegationRewards(context.Context, *QueryIBCAllianceDelegationRewardsRequest) (*QueryAllianceDelegationRewardsResponse, error)
	// Query a specific alliance by denom
	Alliance(context.Context, *QueryAllianceRequest) (*QueryAllianceResponse, error)
}

QueryServer is the server API for Query service.

type QueuedRedelegation

type QueuedRedelegation struct {
	Entries []*Redelegation `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}

func (*QueuedRedelegation) Descriptor

func (*QueuedRedelegation) Descriptor() ([]byte, []int)

func (*QueuedRedelegation) Marshal

func (m *QueuedRedelegation) Marshal() (dAtA []byte, err error)

func (*QueuedRedelegation) MarshalTo

func (m *QueuedRedelegation) MarshalTo(dAtA []byte) (int, error)

func (*QueuedRedelegation) MarshalToSizedBuffer

func (m *QueuedRedelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueuedRedelegation) ProtoMessage

func (*QueuedRedelegation) ProtoMessage()

func (*QueuedRedelegation) Reset

func (m *QueuedRedelegation) Reset()

func (*QueuedRedelegation) Size

func (m *QueuedRedelegation) Size() (n int)

func (*QueuedRedelegation) String

func (m *QueuedRedelegation) String() string

func (*QueuedRedelegation) Unmarshal

func (m *QueuedRedelegation) Unmarshal(dAtA []byte) error

func (*QueuedRedelegation) XXX_DiscardUnknown

func (m *QueuedRedelegation) XXX_DiscardUnknown()

func (*QueuedRedelegation) XXX_Marshal

func (m *QueuedRedelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueuedRedelegation) XXX_Merge

func (m *QueuedRedelegation) XXX_Merge(src proto.Message)

func (*QueuedRedelegation) XXX_Size

func (m *QueuedRedelegation) XXX_Size() int

func (*QueuedRedelegation) XXX_Unmarshal

func (m *QueuedRedelegation) XXX_Unmarshal(b []byte) error

type QueuedUndelegation

type QueuedUndelegation struct {
	Entries []*Undelegation `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}

func (*QueuedUndelegation) Descriptor

func (*QueuedUndelegation) Descriptor() ([]byte, []int)

func (*QueuedUndelegation) Marshal

func (m *QueuedUndelegation) Marshal() (dAtA []byte, err error)

func (*QueuedUndelegation) MarshalTo

func (m *QueuedUndelegation) MarshalTo(dAtA []byte) (int, error)

func (*QueuedUndelegation) MarshalToSizedBuffer

func (m *QueuedUndelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueuedUndelegation) ProtoMessage

func (*QueuedUndelegation) ProtoMessage()

func (*QueuedUndelegation) Reset

func (m *QueuedUndelegation) Reset()

func (*QueuedUndelegation) Size

func (m *QueuedUndelegation) Size() (n int)

func (*QueuedUndelegation) String

func (m *QueuedUndelegation) String() string

func (*QueuedUndelegation) Unmarshal

func (m *QueuedUndelegation) Unmarshal(dAtA []byte) error

func (*QueuedUndelegation) XXX_DiscardUnknown

func (m *QueuedUndelegation) XXX_DiscardUnknown()

func (*QueuedUndelegation) XXX_Marshal

func (m *QueuedUndelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueuedUndelegation) XXX_Merge

func (m *QueuedUndelegation) XXX_Merge(src proto.Message)

func (*QueuedUndelegation) XXX_Size

func (m *QueuedUndelegation) XXX_Size() int

func (*QueuedUndelegation) XXX_Unmarshal

func (m *QueuedUndelegation) XXX_Unmarshal(b []byte) error

type RedelegateAllianceEvent

type RedelegateAllianceEvent struct {
	AllianceSender       string                                  `protobuf:"bytes,1,opt,name=allianceSender,proto3" json:"allianceSender,omitempty"`
	SourceValidator      string                                  `protobuf:"bytes,2,opt,name=sourceValidator,proto3" json:"sourceValidator,omitempty"`
	DestinationValidator string                                  `protobuf:"bytes,3,opt,name=destinationValidator,proto3" json:"destinationValidator,omitempty"`
	Coin                 github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
	CompletionTime       time.Time                               `protobuf:"bytes,5,opt,name=completionTime,proto3,stdtime" json:"completionTime"`
}

func (*RedelegateAllianceEvent) Descriptor

func (*RedelegateAllianceEvent) Descriptor() ([]byte, []int)

func (*RedelegateAllianceEvent) GetAllianceSender

func (m *RedelegateAllianceEvent) GetAllianceSender() string

func (*RedelegateAllianceEvent) GetCompletionTime

func (m *RedelegateAllianceEvent) GetCompletionTime() time.Time

func (*RedelegateAllianceEvent) GetDestinationValidator

func (m *RedelegateAllianceEvent) GetDestinationValidator() string

func (*RedelegateAllianceEvent) GetSourceValidator

func (m *RedelegateAllianceEvent) GetSourceValidator() string

func (*RedelegateAllianceEvent) Marshal

func (m *RedelegateAllianceEvent) Marshal() (dAtA []byte, err error)

func (*RedelegateAllianceEvent) MarshalTo

func (m *RedelegateAllianceEvent) MarshalTo(dAtA []byte) (int, error)

func (*RedelegateAllianceEvent) MarshalToSizedBuffer

func (m *RedelegateAllianceEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegateAllianceEvent) ProtoMessage

func (*RedelegateAllianceEvent) ProtoMessage()

func (*RedelegateAllianceEvent) Reset

func (m *RedelegateAllianceEvent) Reset()

func (*RedelegateAllianceEvent) Size

func (m *RedelegateAllianceEvent) Size() (n int)

func (*RedelegateAllianceEvent) String

func (m *RedelegateAllianceEvent) String() string

func (*RedelegateAllianceEvent) Unmarshal

func (m *RedelegateAllianceEvent) Unmarshal(dAtA []byte) error

func (*RedelegateAllianceEvent) XXX_DiscardUnknown

func (m *RedelegateAllianceEvent) XXX_DiscardUnknown()

func (*RedelegateAllianceEvent) XXX_Marshal

func (m *RedelegateAllianceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegateAllianceEvent) XXX_Merge

func (m *RedelegateAllianceEvent) XXX_Merge(src proto.Message)

func (*RedelegateAllianceEvent) XXX_Size

func (m *RedelegateAllianceEvent) XXX_Size() int

func (*RedelegateAllianceEvent) XXX_Unmarshal

func (m *RedelegateAllianceEvent) XXX_Unmarshal(b []byte) error

type Redelegation

type Redelegation struct {
	DelegatorAddress    string     `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	SrcValidatorAddress string     `protobuf:"bytes,2,opt,name=src_validator_address,json=srcValidatorAddress,proto3" json:"src_validator_address,omitempty"`
	DstValidatorAddress string     `protobuf:"bytes,3,opt,name=dst_validator_address,json=dstValidatorAddress,proto3" json:"dst_validator_address,omitempty"`
	Balance             types.Coin `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance"`
}

func (*Redelegation) Descriptor

func (*Redelegation) Descriptor() ([]byte, []int)

func (*Redelegation) Marshal

func (m *Redelegation) Marshal() (dAtA []byte, err error)

func (*Redelegation) MarshalTo

func (m *Redelegation) MarshalTo(dAtA []byte) (int, error)

func (*Redelegation) MarshalToSizedBuffer

func (m *Redelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Redelegation) ProtoMessage

func (*Redelegation) ProtoMessage()

func (*Redelegation) Reset

func (m *Redelegation) Reset()

func (*Redelegation) Size

func (m *Redelegation) Size() (n int)

func (*Redelegation) String

func (m *Redelegation) String() string

func (*Redelegation) Unmarshal

func (m *Redelegation) Unmarshal(dAtA []byte) error

func (*Redelegation) XXX_DiscardUnknown

func (m *Redelegation) XXX_DiscardUnknown()

func (*Redelegation) XXX_Marshal

func (m *Redelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Redelegation) XXX_Merge

func (m *Redelegation) XXX_Merge(src proto.Message)

func (*Redelegation) XXX_Size

func (m *Redelegation) XXX_Size() int

func (*Redelegation) XXX_Unmarshal

func (m *Redelegation) XXX_Unmarshal(b []byte) error

type RedelegationState

type RedelegationState struct {
	CompletionTime time.Time    `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	Redelegation   Redelegation `protobuf:"bytes,2,opt,name=redelegation,proto3" json:"redelegation"`
}

func (*RedelegationState) Descriptor

func (*RedelegationState) Descriptor() ([]byte, []int)

func (*RedelegationState) GetCompletionTime

func (m *RedelegationState) GetCompletionTime() time.Time

func (*RedelegationState) GetRedelegation

func (m *RedelegationState) GetRedelegation() Redelegation

func (*RedelegationState) Marshal

func (m *RedelegationState) Marshal() (dAtA []byte, err error)

func (*RedelegationState) MarshalTo

func (m *RedelegationState) MarshalTo(dAtA []byte) (int, error)

func (*RedelegationState) MarshalToSizedBuffer

func (m *RedelegationState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RedelegationState) ProtoMessage

func (*RedelegationState) ProtoMessage()

func (*RedelegationState) Reset

func (m *RedelegationState) Reset()

func (*RedelegationState) Size

func (m *RedelegationState) Size() (n int)

func (*RedelegationState) String

func (m *RedelegationState) String() string

func (*RedelegationState) Unmarshal

func (m *RedelegationState) Unmarshal(dAtA []byte) error

func (*RedelegationState) XXX_DiscardUnknown

func (m *RedelegationState) XXX_DiscardUnknown()

func (*RedelegationState) XXX_Marshal

func (m *RedelegationState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RedelegationState) XXX_Merge

func (m *RedelegationState) XXX_Merge(src proto.Message)

func (*RedelegationState) XXX_Size

func (m *RedelegationState) XXX_Size() int

func (*RedelegationState) XXX_Unmarshal

func (m *RedelegationState) XXX_Unmarshal(b []byte) error

type RewardHistories

type RewardHistories []RewardHistory

func NewRewardHistories

func NewRewardHistories(r []RewardHistory) RewardHistories

func (RewardHistories) GetIndexByDenom

func (r RewardHistories) GetIndexByDenom(denom string) (ri *RewardHistory, found bool)

type RewardHistory

type RewardHistory struct {
	Denom string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Index github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=index,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"index"`
}

func (*RewardHistory) Descriptor

func (*RewardHistory) Descriptor() ([]byte, []int)

func (*RewardHistory) Equal

func (this *RewardHistory) Equal(that interface{}) bool

func (*RewardHistory) GetDenom

func (m *RewardHistory) GetDenom() string

func (*RewardHistory) Marshal

func (m *RewardHistory) Marshal() (dAtA []byte, err error)

func (*RewardHistory) MarshalTo

func (m *RewardHistory) MarshalTo(dAtA []byte) (int, error)

func (*RewardHistory) MarshalToSizedBuffer

func (m *RewardHistory) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardHistory) ProtoMessage

func (*RewardHistory) ProtoMessage()

func (*RewardHistory) Reset

func (m *RewardHistory) Reset()

func (*RewardHistory) Size

func (m *RewardHistory) Size() (n int)

func (*RewardHistory) String

func (m *RewardHistory) String() string

func (*RewardHistory) Unmarshal

func (m *RewardHistory) Unmarshal(dAtA []byte) error

func (*RewardHistory) XXX_DiscardUnknown

func (m *RewardHistory) XXX_DiscardUnknown()

func (*RewardHistory) XXX_Marshal

func (m *RewardHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardHistory) XXX_Merge

func (m *RewardHistory) XXX_Merge(src proto.Message)

func (*RewardHistory) XXX_Size

func (m *RewardHistory) XXX_Size() int

func (*RewardHistory) XXX_Unmarshal

func (m *RewardHistory) XXX_Unmarshal(b []byte) error

type RewardWeightChangeSnapshot

type RewardWeightChangeSnapshot struct {
	PrevRewardWeight github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	RewardHistories  []RewardHistory                        `protobuf:"bytes,2,rep,name=reward_histories,json=rewardHistories,proto3" json:"reward_histories"`
}

func NewRewardWeightChangeSnapshot

func NewRewardWeightChangeSnapshot(asset AllianceAsset, val AllianceValidator) RewardWeightChangeSnapshot

func (*RewardWeightChangeSnapshot) Descriptor

func (*RewardWeightChangeSnapshot) Descriptor() ([]byte, []int)

func (*RewardWeightChangeSnapshot) Marshal

func (m *RewardWeightChangeSnapshot) Marshal() (dAtA []byte, err error)

func (*RewardWeightChangeSnapshot) MarshalTo

func (m *RewardWeightChangeSnapshot) MarshalTo(dAtA []byte) (int, error)

func (*RewardWeightChangeSnapshot) MarshalToSizedBuffer

func (m *RewardWeightChangeSnapshot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardWeightChangeSnapshot) ProtoMessage

func (*RewardWeightChangeSnapshot) ProtoMessage()

func (*RewardWeightChangeSnapshot) Reset

func (m *RewardWeightChangeSnapshot) Reset()

func (*RewardWeightChangeSnapshot) Size

func (m *RewardWeightChangeSnapshot) Size() (n int)

func (*RewardWeightChangeSnapshot) String

func (m *RewardWeightChangeSnapshot) String() string

func (*RewardWeightChangeSnapshot) Unmarshal

func (m *RewardWeightChangeSnapshot) Unmarshal(dAtA []byte) error

func (*RewardWeightChangeSnapshot) XXX_DiscardUnknown

func (m *RewardWeightChangeSnapshot) XXX_DiscardUnknown()

func (*RewardWeightChangeSnapshot) XXX_Marshal

func (m *RewardWeightChangeSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardWeightChangeSnapshot) XXX_Merge

func (m *RewardWeightChangeSnapshot) XXX_Merge(src proto.Message)

func (*RewardWeightChangeSnapshot) XXX_Size

func (m *RewardWeightChangeSnapshot) XXX_Size() int

func (*RewardWeightChangeSnapshot) XXX_Unmarshal

func (m *RewardWeightChangeSnapshot) XXX_Unmarshal(b []byte) error

type RewardWeightChangeSnapshotState

type RewardWeightChangeSnapshotState struct {
	Height    uint64                     `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Validator string                     `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Denom     string                     `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	Snapshot  RewardWeightChangeSnapshot `protobuf:"bytes,4,opt,name=snapshot,proto3" json:"snapshot"`
}

func (*RewardWeightChangeSnapshotState) Descriptor

func (*RewardWeightChangeSnapshotState) Descriptor() ([]byte, []int)

func (*RewardWeightChangeSnapshotState) GetDenom

func (*RewardWeightChangeSnapshotState) GetHeight

func (m *RewardWeightChangeSnapshotState) GetHeight() uint64

func (*RewardWeightChangeSnapshotState) GetSnapshot

func (*RewardWeightChangeSnapshotState) GetValidator

func (m *RewardWeightChangeSnapshotState) GetValidator() string

func (*RewardWeightChangeSnapshotState) Marshal

func (m *RewardWeightChangeSnapshotState) Marshal() (dAtA []byte, err error)

func (*RewardWeightChangeSnapshotState) MarshalTo

func (m *RewardWeightChangeSnapshotState) MarshalTo(dAtA []byte) (int, error)

func (*RewardWeightChangeSnapshotState) MarshalToSizedBuffer

func (m *RewardWeightChangeSnapshotState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardWeightChangeSnapshotState) ProtoMessage

func (*RewardWeightChangeSnapshotState) ProtoMessage()

func (*RewardWeightChangeSnapshotState) Reset

func (*RewardWeightChangeSnapshotState) Size

func (m *RewardWeightChangeSnapshotState) Size() (n int)

func (*RewardWeightChangeSnapshotState) String

func (*RewardWeightChangeSnapshotState) Unmarshal

func (m *RewardWeightChangeSnapshotState) Unmarshal(dAtA []byte) error

func (*RewardWeightChangeSnapshotState) XXX_DiscardUnknown

func (m *RewardWeightChangeSnapshotState) XXX_DiscardUnknown()

func (*RewardWeightChangeSnapshotState) XXX_Marshal

func (m *RewardWeightChangeSnapshotState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardWeightChangeSnapshotState) XXX_Merge

func (m *RewardWeightChangeSnapshotState) XXX_Merge(src proto.Message)

func (*RewardWeightChangeSnapshotState) XXX_Size

func (m *RewardWeightChangeSnapshotState) XXX_Size() int

func (*RewardWeightChangeSnapshotState) XXX_Unmarshal

func (m *RewardWeightChangeSnapshotState) XXX_Unmarshal(b []byte) error

type RewardWeightRange

type RewardWeightRange struct {
	Min github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=min,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min"`
	Max github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max"`
}

func (*RewardWeightRange) Descriptor

func (*RewardWeightRange) Descriptor() ([]byte, []int)

func (*RewardWeightRange) Marshal

func (m *RewardWeightRange) Marshal() (dAtA []byte, err error)

func (*RewardWeightRange) MarshalTo

func (m *RewardWeightRange) MarshalTo(dAtA []byte) (int, error)

func (*RewardWeightRange) MarshalToSizedBuffer

func (m *RewardWeightRange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardWeightRange) ProtoMessage

func (*RewardWeightRange) ProtoMessage()

func (*RewardWeightRange) Reset

func (m *RewardWeightRange) Reset()

func (*RewardWeightRange) Size

func (m *RewardWeightRange) Size() (n int)

func (*RewardWeightRange) String

func (m *RewardWeightRange) String() string

func (*RewardWeightRange) Unmarshal

func (m *RewardWeightRange) Unmarshal(dAtA []byte) error

func (*RewardWeightRange) XXX_DiscardUnknown

func (m *RewardWeightRange) XXX_DiscardUnknown()

func (*RewardWeightRange) XXX_Marshal

func (m *RewardWeightRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardWeightRange) XXX_Merge

func (m *RewardWeightRange) XXX_Merge(src proto.Message)

func (*RewardWeightRange) XXX_Size

func (m *RewardWeightRange) XXX_Size() int

func (*RewardWeightRange) XXX_Unmarshal

func (m *RewardWeightRange) XXX_Unmarshal(b []byte) error

type StakingKeeper

type StakingKeeper interface {
	UnbondingTime(ctx sdk.Context) (res time.Duration)
	Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc types.BondStatus,
		validator types.Validator, subtractAccount bool) (newShares sdk.Dec, err error)
	BeginRedelegation(
		ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, sharesAmount sdk.Dec,
	) (completionTime time.Time, err error)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator types.Validator, found bool)
	BondDenom(ctx sdk.Context) (res string)
	ValidateUnbondAmount(
		ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int,
	) (shares sdk.Dec, err error)
	RemoveRedelegation(ctx sdk.Context, red types.Redelegation)
	Unbond(
		ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec,
	) (amount math.Int, err error)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation types.Delegation, found bool)
	TotalBondedTokens(ctx sdk.Context) math.Int
	GetDelegatorBonded(ctx sdk.Context, delegator sdk.AccAddress) math.Int
	RemoveValidatorTokensAndShares(ctx sdk.Context, validator types.Validator,
		sharesToRemove sdk.Dec,
	) (valOut types.Validator, removedTokens math.Int)
	RemoveValidatorTokens(ctx sdk.Context,
		validator types.Validator, tokensToRemove math.Int,
	) types.Validator
	IterateDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, cb func(delegation types.Delegation) (stop bool))
	GetAllValidators(ctx sdk.Context) (validators []types.Validator)
	BlockValidatorUpdates(ctx sdk.Context) (updates []abci.ValidatorUpdate)
	ApplyAndReturnValidatorSetUpdates(sdk.Context) (updates []abci.ValidatorUpdate, err error)
	UnbondAllMatureValidators(ctx sdk.Context)
	DequeueAllMatureUBDQueue(ctx sdk.Context, currTime time.Time) (matureUnbonds []types.DVPair)
	CompleteUnbonding(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
	DequeueAllMatureRedelegationQueue(ctx sdk.Context, currTime time.Time) (matureRedelegations []types.DVVTriplet)
	CompleteRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) (sdk.Coins, error)
	PowerReduction(ctx sdk.Context) math.Int
}

type UndelegateAllianceEvent

type UndelegateAllianceEvent struct {
	AllianceSender string                                  `protobuf:"bytes,1,opt,name=allianceSender,proto3" json:"allianceSender,omitempty"`
	Validator      string                                  `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	Coin           github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=coin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
	CompletionTime time.Time                               `protobuf:"bytes,4,opt,name=completionTime,proto3,stdtime" json:"completionTime"`
}

func (*UndelegateAllianceEvent) Descriptor

func (*UndelegateAllianceEvent) Descriptor() ([]byte, []int)

func (*UndelegateAllianceEvent) GetAllianceSender

func (m *UndelegateAllianceEvent) GetAllianceSender() string

func (*UndelegateAllianceEvent) GetCompletionTime

func (m *UndelegateAllianceEvent) GetCompletionTime() time.Time

func (*UndelegateAllianceEvent) GetValidator

func (m *UndelegateAllianceEvent) GetValidator() string

func (*UndelegateAllianceEvent) Marshal

func (m *UndelegateAllianceEvent) Marshal() (dAtA []byte, err error)

func (*UndelegateAllianceEvent) MarshalTo

func (m *UndelegateAllianceEvent) MarshalTo(dAtA []byte) (int, error)

func (*UndelegateAllianceEvent) MarshalToSizedBuffer

func (m *UndelegateAllianceEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UndelegateAllianceEvent) ProtoMessage

func (*UndelegateAllianceEvent) ProtoMessage()

func (*UndelegateAllianceEvent) Reset

func (m *UndelegateAllianceEvent) Reset()

func (*UndelegateAllianceEvent) Size

func (m *UndelegateAllianceEvent) Size() (n int)

func (*UndelegateAllianceEvent) String

func (m *UndelegateAllianceEvent) String() string

func (*UndelegateAllianceEvent) Unmarshal

func (m *UndelegateAllianceEvent) Unmarshal(dAtA []byte) error

func (*UndelegateAllianceEvent) XXX_DiscardUnknown

func (m *UndelegateAllianceEvent) XXX_DiscardUnknown()

func (*UndelegateAllianceEvent) XXX_Marshal

func (m *UndelegateAllianceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndelegateAllianceEvent) XXX_Merge

func (m *UndelegateAllianceEvent) XXX_Merge(src proto.Message)

func (*UndelegateAllianceEvent) XXX_Size

func (m *UndelegateAllianceEvent) XXX_Size() int

func (*UndelegateAllianceEvent) XXX_Unmarshal

func (m *UndelegateAllianceEvent) XXX_Unmarshal(b []byte) error

type Undelegation

type Undelegation 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"`
	Balance          types.Coin `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance"`
}

func (*Undelegation) Descriptor

func (*Undelegation) Descriptor() ([]byte, []int)

func (*Undelegation) Marshal

func (m *Undelegation) Marshal() (dAtA []byte, err error)

func (*Undelegation) MarshalTo

func (m *Undelegation) MarshalTo(dAtA []byte) (int, error)

func (*Undelegation) MarshalToSizedBuffer

func (m *Undelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Undelegation) ProtoMessage

func (*Undelegation) ProtoMessage()

func (*Undelegation) Reset

func (m *Undelegation) Reset()

func (*Undelegation) Size

func (m *Undelegation) Size() (n int)

func (*Undelegation) String

func (m *Undelegation) String() string

func (*Undelegation) Unmarshal

func (m *Undelegation) Unmarshal(dAtA []byte) error

func (*Undelegation) XXX_DiscardUnknown

func (m *Undelegation) XXX_DiscardUnknown()

func (*Undelegation) XXX_Marshal

func (m *Undelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Undelegation) XXX_Merge

func (m *Undelegation) XXX_Merge(src proto.Message)

func (*Undelegation) XXX_Size

func (m *Undelegation) XXX_Size() int

func (*Undelegation) XXX_Unmarshal

func (m *Undelegation) XXX_Unmarshal(b []byte) error

type UndelegationState

type UndelegationState struct {
	CompletionTime time.Time          `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	Undelegation   QueuedUndelegation `protobuf:"bytes,2,opt,name=undelegation,proto3" json:"undelegation"`
}

func (*UndelegationState) Descriptor

func (*UndelegationState) Descriptor() ([]byte, []int)

func (*UndelegationState) GetCompletionTime

func (m *UndelegationState) GetCompletionTime() time.Time

func (*UndelegationState) GetUndelegation

func (m *UndelegationState) GetUndelegation() QueuedUndelegation

func (*UndelegationState) Marshal

func (m *UndelegationState) Marshal() (dAtA []byte, err error)

func (*UndelegationState) MarshalTo

func (m *UndelegationState) MarshalTo(dAtA []byte) (int, error)

func (*UndelegationState) MarshalToSizedBuffer

func (m *UndelegationState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UndelegationState) ProtoMessage

func (*UndelegationState) ProtoMessage()

func (*UndelegationState) Reset

func (m *UndelegationState) Reset()

func (*UndelegationState) Size

func (m *UndelegationState) Size() (n int)

func (*UndelegationState) String

func (m *UndelegationState) String() string

func (*UndelegationState) Unmarshal

func (m *UndelegationState) Unmarshal(dAtA []byte) error

func (*UndelegationState) XXX_DiscardUnknown

func (m *UndelegationState) XXX_DiscardUnknown()

func (*UndelegationState) XXX_Marshal

func (m *UndelegationState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndelegationState) XXX_Merge

func (m *UndelegationState) XXX_Merge(src proto.Message)

func (*UndelegationState) XXX_Size

func (m *UndelegationState) XXX_Size() int

func (*UndelegationState) XXX_Unmarshal

func (m *UndelegationState) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimDelegationRewards

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) Redelegate

func (*UnimplementedMsgServer) Undelegate

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllAllianceValidators

func (*UnimplementedQueryServer) Alliance

func (*UnimplementedQueryServer) AllianceDelegation

func (*UnimplementedQueryServer) AllianceValidator

func (*UnimplementedQueryServer) Alliances

func (*UnimplementedQueryServer) IBCAlliance

func (*UnimplementedQueryServer) IBCAllianceDelegation

func (*UnimplementedQueryServer) Params

type ValidatorInfoState

type ValidatorInfoState struct {
	ValidatorAddress string                `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Validator        AllianceValidatorInfo `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"`
}

func (*ValidatorInfoState) Descriptor

func (*ValidatorInfoState) Descriptor() ([]byte, []int)

func (*ValidatorInfoState) GetValidator

func (m *ValidatorInfoState) GetValidator() AllianceValidatorInfo

func (*ValidatorInfoState) GetValidatorAddress

func (m *ValidatorInfoState) GetValidatorAddress() string

func (*ValidatorInfoState) Marshal

func (m *ValidatorInfoState) Marshal() (dAtA []byte, err error)

func (*ValidatorInfoState) MarshalTo

func (m *ValidatorInfoState) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorInfoState) MarshalToSizedBuffer

func (m *ValidatorInfoState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorInfoState) ProtoMessage

func (*ValidatorInfoState) ProtoMessage()

func (*ValidatorInfoState) Reset

func (m *ValidatorInfoState) Reset()

func (*ValidatorInfoState) Size

func (m *ValidatorInfoState) Size() (n int)

func (*ValidatorInfoState) String

func (m *ValidatorInfoState) String() string

func (*ValidatorInfoState) Unmarshal

func (m *ValidatorInfoState) Unmarshal(dAtA []byte) error

func (*ValidatorInfoState) XXX_DiscardUnknown

func (m *ValidatorInfoState) XXX_DiscardUnknown()

func (*ValidatorInfoState) XXX_Marshal

func (m *ValidatorInfoState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorInfoState) XXX_Merge

func (m *ValidatorInfoState) XXX_Merge(src proto.Message)

func (*ValidatorInfoState) XXX_Size

func (m *ValidatorInfoState) XXX_Size() int

func (*ValidatorInfoState) XXX_Unmarshal

func (m *ValidatorInfoState) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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