types

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "dualstaking"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_dualstaking"

	// prefix for the delegations fixation store
	DelegationPrefix = "delegation-fs"

	// prefix for the delegators fixation store
	DelegatorPrefix = "delegator-fs"

	// prefix for the unbonding timer store
	UnbondingPrefix = "unbonding-ts"

	// empty provider consts
	EMPTY_PROVIDER         = "empty_provider"
	EMPTY_PROVIDER_CHAINID = ""
)
View Source
const (
	DelegateEventName          = "delegate_to_provider"
	UnbondingEventName         = "unbond_from_provider"
	RedelegateEventName        = "redelegate_between_providers"
	RefundedEventName          = "refund_to_delegator"
	ClaimRewardsEventName      = "delegator_claim_rewards"
	ContributorRewardEventName = "contributor_rewards"
	ValidatorSlashEventName    = "validator_slash"
)
View Source
const (
	NotBondedPoolName = "not_bonded_dualstaking_pool"
	BondedPoolName    = "bonded_dualstaking_pool"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	// DelegatorRewardKeyPrefix is the prefix to retrieve all DelegatorReward
	DelegatorRewardKeyPrefix = "DelegatorReward/value/"
)
View Source
const TypeMsgClaimRewards = "claim_rewards"
View Source
const TypeMsgDelegate = "delegate"
View Source
const TypeMsgRedelegate = "redelegate"
View Source
const TypeMsgUnbond = "unbond"

Variables

View Source
var (
	ErrInvalidLengthDelegate        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDelegate          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDelegate = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDelegatorReward        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDelegatorReward          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDelegatorReward = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrDelegationNotFound        = sdkerrors.Register(ModuleName, 1001, "delegation not found")
	ErrInsufficientDelegation    = sdkerrors.Register(ModuleName, 1002, "invalid delegation amount")
	ErrBadDelegationAmount       = sdkerrors.Register(ModuleName, 1003, "invalid delegation amount")
	ErrUnbondingInProgress       = sdkerrors.Register(ModuleName, 1004, "unbonding already exists (same block)")
	ErrCalculatingProviderReward = sdkerrors.Register(ModuleName, 1005, "provider reward calculation failed")
)

x/dualstaking module sentinel errors

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 (
	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")
)

Functions

func DelegationKey

func DelegationKey(provider, delegator, chainID string) string

DelegationKey returns the key/prefix for the Delegation entry in fixation store. Using " " (space) as spearator is safe because Bech32 forbids its use as part of the address (and is the only visible character that can be safely used). (reference https://en.bitcoin.it/wiki/BIP_0173#Specification)

func DelegationKeyDecode

func DelegationKeyDecode(prefix string) (provider, delegator, chainID string)

func DelegatorKey

func DelegatorKey(delegator string) string

DelegatorKey returns the key/prefix for the Delegator entry in fixation store.

func DelegatorKeyDecode

func DelegatorKeyDecode(prefix string) (delegator string)

func DelegatorRewardKey

func DelegatorRewardKey(
	index string,
) []byte

DelegatorRewardKey returns the store key to retrieve a DelegatorReward from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

Types

type AccountKeeper

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

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

type BankKeeper

type BankKeeper interface {
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amounts 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
	SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Delegation

type Delegation struct {
	Provider  string     `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainID   string     `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Delegator string     `protobuf:"bytes,3,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Amount    types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

func NewDelegation

func NewDelegation(delegator, provider, chainID string) Delegation

func (*Delegation) AddAmount

func (delegation *Delegation) AddAmount(amount sdk.Coin)

func (*Delegation) Descriptor

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

func (*Delegation) Equal

func (delegation *Delegation) Equal(other *Delegation) bool

func (*Delegation) GetAmount

func (m *Delegation) GetAmount() types.Coin

func (*Delegation) GetChainID

func (m *Delegation) GetChainID() string

func (*Delegation) GetDelegator

func (m *Delegation) GetDelegator() string

func (*Delegation) GetProvider

func (m *Delegation) GetProvider() string

func (*Delegation) IsZero

func (delegation *Delegation) IsZero() bool

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) SubAmount

func (delegation *Delegation) SubAmount(amount sdk.Coin)

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 Delegator

type Delegator struct {
	Providers []string `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
}

func NewDelegator

func NewDelegator(delegator, provider string) Delegator

func (*Delegator) AddProvider

func (delegator *Delegator) AddProvider(provider string)

func (*Delegator) DelProvider

func (delegator *Delegator) DelProvider(provider string)

func (*Delegator) Descriptor

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

func (*Delegator) GetProviders

func (m *Delegator) GetProviders() []string

func (*Delegator) IsEmpty

func (delegator *Delegator) IsEmpty() bool

func (*Delegator) Marshal

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

func (*Delegator) MarshalTo

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

func (*Delegator) MarshalToSizedBuffer

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

func (*Delegator) ProtoMessage

func (*Delegator) ProtoMessage()

func (*Delegator) Reset

func (m *Delegator) Reset()

func (*Delegator) Size

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

func (*Delegator) String

func (m *Delegator) String() string

func (*Delegator) Unmarshal

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

func (*Delegator) XXX_DiscardUnknown

func (m *Delegator) XXX_DiscardUnknown()

func (*Delegator) XXX_Marshal

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

func (*Delegator) XXX_Merge

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

func (*Delegator) XXX_Size

func (m *Delegator) XXX_Size() int

func (*Delegator) XXX_Unmarshal

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

type DelegatorReward

type DelegatorReward struct {
	Delegator string     `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Provider  string     `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainId   string     `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Amount    types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

func (*DelegatorReward) Descriptor

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

func (*DelegatorReward) GetAmount

func (m *DelegatorReward) GetAmount() types.Coin

func (*DelegatorReward) GetChainId

func (m *DelegatorReward) GetChainId() string

func (*DelegatorReward) GetDelegator

func (m *DelegatorReward) GetDelegator() string

func (*DelegatorReward) GetProvider

func (m *DelegatorReward) GetProvider() string

func (*DelegatorReward) Marshal

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

func (*DelegatorReward) MarshalTo

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

func (*DelegatorReward) MarshalToSizedBuffer

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

func (*DelegatorReward) ProtoMessage

func (*DelegatorReward) ProtoMessage()

func (*DelegatorReward) Reset

func (m *DelegatorReward) Reset()

func (*DelegatorReward) Size

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

func (*DelegatorReward) String

func (m *DelegatorReward) String() string

func (*DelegatorReward) Unmarshal

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

func (*DelegatorReward) XXX_DiscardUnknown

func (m *DelegatorReward) XXX_DiscardUnknown()

func (*DelegatorReward) XXX_Marshal

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

func (*DelegatorReward) XXX_Merge

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

func (*DelegatorReward) XXX_Size

func (m *DelegatorReward) XXX_Size() int

func (*DelegatorReward) XXX_Unmarshal

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

type DelegatorRewardInfo

type DelegatorRewardInfo struct {
	Provider string     `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainId  string     `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Amount   types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

func (*DelegatorRewardInfo) Descriptor

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

func (*DelegatorRewardInfo) GetAmount

func (m *DelegatorRewardInfo) GetAmount() types.Coin

func (*DelegatorRewardInfo) GetChainId

func (m *DelegatorRewardInfo) GetChainId() string

func (*DelegatorRewardInfo) GetProvider

func (m *DelegatorRewardInfo) GetProvider() string

func (*DelegatorRewardInfo) Marshal

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

func (*DelegatorRewardInfo) MarshalTo

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

func (*DelegatorRewardInfo) MarshalToSizedBuffer

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

func (*DelegatorRewardInfo) ProtoMessage

func (*DelegatorRewardInfo) ProtoMessage()

func (*DelegatorRewardInfo) Reset

func (m *DelegatorRewardInfo) Reset()

func (*DelegatorRewardInfo) Size

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

func (*DelegatorRewardInfo) String

func (m *DelegatorRewardInfo) String() string

func (*DelegatorRewardInfo) Unmarshal

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

func (*DelegatorRewardInfo) XXX_DiscardUnknown

func (m *DelegatorRewardInfo) XXX_DiscardUnknown()

func (*DelegatorRewardInfo) XXX_Marshal

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

func (*DelegatorRewardInfo) XXX_Merge

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

func (*DelegatorRewardInfo) XXX_Size

func (m *DelegatorRewardInfo) XXX_Size() int

func (*DelegatorRewardInfo) XXX_Unmarshal

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

type EpochstorageKeeper

type EpochstorageKeeper interface {
	GetStakeEntryByAddressCurrent(ctx sdk.Context, chainID string, address sdk.AccAddress) (value epochstoragetypes.StakeEntry, found bool, index uint64)
	ModifyStakeEntryCurrent(ctx sdk.Context, chainID string, stakeEntry epochstoragetypes.StakeEntry, removeIndex uint64)
	UnstakeHoldBlocks(ctx sdk.Context, block uint64) (res uint64)
	UnstakeHoldBlocksStatic(ctx sdk.Context, block uint64) (res uint64)
	GetStakeEntryForProviderEpoch(ctx sdk.Context, chainID string, selectedProvider sdk.AccAddress, epoch uint64) (entry *epochstoragetypes.StakeEntry, err error)
	GetEpochStartForBlock(ctx sdk.Context, block uint64) (epochStart, blockInEpoch uint64, err error)
	GetCurrentNextEpoch(ctx sdk.Context) (nextEpoch uint64)
	GetStakeStorageCurrent(ctx sdk.Context, chainID string) (epochstoragetypes.StakeStorage, bool)
	SetStakeStorageCurrent(ctx sdk.Context, chainID string, stakeStorage epochstoragetypes.StakeStorage)
}

type FixationStoreKeeper

type FixationStoreKeeper interface {
	NewFixationStore(storeKey storetypes.StoreKey, prefix string) *fixationstoretypes.FixationStore
}

type GenesisState

type GenesisState struct {
	Params              Params              `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	DelegationsFS       types.GenesisState  `protobuf:"bytes,2,opt,name=delegationsFS,proto3" json:"delegationsFS"`
	DelegatorsFS        types.GenesisState  `protobuf:"bytes,3,opt,name=delegatorsFS,proto3" json:"delegatorsFS"`
	UnbondingsTS        types1.GenesisState `protobuf:"bytes,4,opt,name=unbondingsTS,proto3" json:"unbondingsTS"`
	DelegatorRewardList []DelegatorReward   `protobuf:"bytes,5,rep,name=delegator_reward_list,json=delegatorRewardList,proto3" json:"delegator_reward_list"`
}

GenesisState defines the dualstaking module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDelegationsFS

func (m *GenesisState) GetDelegationsFS() types.GenesisState

func (*GenesisState) GetDelegatorRewardList

func (m *GenesisState) GetDelegatorRewardList() []DelegatorReward

func (*GenesisState) GetDelegatorsFS

func (m *GenesisState) GetDelegatorsFS() types.GenesisState

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetUnbondingsTS added in v0.22.1

func (m *GenesisState) GetUnbondingsTS() types1.GenesisState

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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgClaimRewards

type MsgClaimRewards struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
}

func NewMsgClaimRewards

func NewMsgClaimRewards(delegator string, provider string) *MsgClaimRewards

func (*MsgClaimRewards) Descriptor

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

func (*MsgClaimRewards) GetCreator

func (m *MsgClaimRewards) GetCreator() string

func (*MsgClaimRewards) GetProvider

func (m *MsgClaimRewards) GetProvider() string

func (*MsgClaimRewards) GetSignBytes

func (msg *MsgClaimRewards) GetSignBytes() []byte

func (*MsgClaimRewards) GetSigners

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

func (*MsgClaimRewards) Marshal

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

func (*MsgClaimRewards) MarshalTo

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

func (*MsgClaimRewards) MarshalToSizedBuffer

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

func (*MsgClaimRewards) ProtoMessage

func (*MsgClaimRewards) ProtoMessage()

func (*MsgClaimRewards) Reset

func (m *MsgClaimRewards) Reset()

func (*MsgClaimRewards) Route

func (msg *MsgClaimRewards) Route() string

func (*MsgClaimRewards) Size

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

func (*MsgClaimRewards) String

func (m *MsgClaimRewards) String() string

func (*MsgClaimRewards) Type

func (msg *MsgClaimRewards) Type() string

func (*MsgClaimRewards) Unmarshal

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

func (*MsgClaimRewards) ValidateBasic

func (msg *MsgClaimRewards) ValidateBasic() error

func (*MsgClaimRewards) XXX_DiscardUnknown

func (m *MsgClaimRewards) XXX_DiscardUnknown()

func (*MsgClaimRewards) XXX_Marshal

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

func (*MsgClaimRewards) XXX_Merge

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

func (*MsgClaimRewards) XXX_Size

func (m *MsgClaimRewards) XXX_Size() int

func (*MsgClaimRewards) XXX_Unmarshal

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

type MsgClaimRewardsResponse

type MsgClaimRewardsResponse struct {
}

func (*MsgClaimRewardsResponse) Descriptor

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

func (*MsgClaimRewardsResponse) Marshal

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

func (*MsgClaimRewardsResponse) MarshalTo

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

func (*MsgClaimRewardsResponse) MarshalToSizedBuffer

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

func (*MsgClaimRewardsResponse) ProtoMessage

func (*MsgClaimRewardsResponse) ProtoMessage()

func (*MsgClaimRewardsResponse) Reset

func (m *MsgClaimRewardsResponse) Reset()

func (*MsgClaimRewardsResponse) Size

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

func (*MsgClaimRewardsResponse) String

func (m *MsgClaimRewardsResponse) String() string

func (*MsgClaimRewardsResponse) Unmarshal

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

func (*MsgClaimRewardsResponse) XXX_DiscardUnknown

func (m *MsgClaimRewardsResponse) XXX_DiscardUnknown()

func (*MsgClaimRewardsResponse) XXX_Marshal

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

func (*MsgClaimRewardsResponse) XXX_Merge

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

func (*MsgClaimRewardsResponse) XXX_Size

func (m *MsgClaimRewardsResponse) XXX_Size() int

func (*MsgClaimRewardsResponse) XXX_Unmarshal

func (m *MsgClaimRewardsResponse) 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)
	Unbond(ctx context.Context, in *MsgUnbond, opts ...grpc.CallOption) (*MsgUnbondResponse, error)
	ClaimRewards(ctx context.Context, in *MsgClaimRewards, opts ...grpc.CallOption) (*MsgClaimRewardsResponse, 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 MsgDelegate

type MsgDelegate struct {
	Creator   string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Validator string     `protobuf:"bytes,5,opt,name=validator,proto3" json:"validator,omitempty"`
	Provider  string     `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainID   string     `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Amount    types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

func NewMsgDelegate

func NewMsgDelegate(delegator string, validator string, provider string, chainID string, amount sdk.Coin) *MsgDelegate

func (*MsgDelegate) Descriptor

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

func (*MsgDelegate) GetAmount

func (m *MsgDelegate) GetAmount() types.Coin

func (*MsgDelegate) GetChainID

func (m *MsgDelegate) GetChainID() string

func (*MsgDelegate) GetCreator

func (m *MsgDelegate) GetCreator() string

func (*MsgDelegate) GetProvider

func (m *MsgDelegate) GetProvider() string

func (*MsgDelegate) GetSignBytes

func (msg *MsgDelegate) GetSignBytes() []byte

func (*MsgDelegate) GetSigners

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

func (*MsgDelegate) GetValidator

func (m *MsgDelegate) GetValidator() string

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 MsgRedelegate

type MsgRedelegate struct {
	Creator      string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	FromProvider string     `protobuf:"bytes,2,opt,name=from_provider,json=fromProvider,proto3" json:"from_provider,omitempty"`
	ToProvider   string     `protobuf:"bytes,3,opt,name=to_provider,json=toProvider,proto3" json:"to_provider,omitempty"`
	FromChainID  string     `protobuf:"bytes,4,opt,name=from_chainID,json=fromChainID,proto3" json:"from_chainID,omitempty"`
	ToChainID    string     `protobuf:"bytes,5,opt,name=to_chainID,json=toChainID,proto3" json:"to_chainID,omitempty"`
	Amount       types.Coin `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount"`
}

func NewMsgRedelegate

func NewMsgRedelegate(delegator string, from_provider string, from_chainID string, to_provider string, to_chainID string, amount sdk.Coin) *MsgRedelegate

func (*MsgRedelegate) Descriptor

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

func (*MsgRedelegate) GetAmount

func (m *MsgRedelegate) GetAmount() types.Coin

func (*MsgRedelegate) GetCreator

func (m *MsgRedelegate) GetCreator() string

func (*MsgRedelegate) GetFromChainID

func (m *MsgRedelegate) GetFromChainID() string

func (*MsgRedelegate) GetFromProvider

func (m *MsgRedelegate) GetFromProvider() string

func (*MsgRedelegate) GetSignBytes

func (msg *MsgRedelegate) GetSignBytes() []byte

func (*MsgRedelegate) GetSigners

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

func (*MsgRedelegate) GetToChainID

func (m *MsgRedelegate) GetToChainID() string

func (*MsgRedelegate) GetToProvider

func (m *MsgRedelegate) GetToProvider() string

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 MsgUnbond

type MsgUnbond struct {
	Creator   string     `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Validator string     `protobuf:"bytes,5,opt,name=validator,proto3" json:"validator,omitempty"`
	Provider  string     `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainID   string     `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Amount    types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

func NewMsgUnbond

func NewMsgUnbond(delegator string, validator string, provider string, chainID string, amount sdk.Coin) *MsgUnbond

func (*MsgUnbond) Descriptor

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

func (*MsgUnbond) GetAmount

func (m *MsgUnbond) GetAmount() types.Coin

func (*MsgUnbond) GetChainID

func (m *MsgUnbond) GetChainID() string

func (*MsgUnbond) GetCreator

func (m *MsgUnbond) GetCreator() string

func (*MsgUnbond) GetProvider

func (m *MsgUnbond) GetProvider() string

func (*MsgUnbond) GetSignBytes

func (msg *MsgUnbond) GetSignBytes() []byte

func (*MsgUnbond) GetSigners

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

func (*MsgUnbond) GetValidator

func (m *MsgUnbond) GetValidator() string

func (*MsgUnbond) Marshal

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

func (*MsgUnbond) MarshalTo

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

func (*MsgUnbond) MarshalToSizedBuffer

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

func (*MsgUnbond) ProtoMessage

func (*MsgUnbond) ProtoMessage()

func (*MsgUnbond) Reset

func (m *MsgUnbond) Reset()

func (*MsgUnbond) Route

func (msg *MsgUnbond) Route() string

func (*MsgUnbond) Size

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

func (*MsgUnbond) String

func (m *MsgUnbond) String() string

func (*MsgUnbond) Type

func (msg *MsgUnbond) Type() string

func (*MsgUnbond) Unmarshal

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

func (*MsgUnbond) ValidateBasic

func (msg *MsgUnbond) ValidateBasic() error

func (*MsgUnbond) XXX_DiscardUnknown

func (m *MsgUnbond) XXX_DiscardUnknown()

func (*MsgUnbond) XXX_Marshal

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

func (*MsgUnbond) XXX_Merge

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

func (*MsgUnbond) XXX_Size

func (m *MsgUnbond) XXX_Size() int

func (*MsgUnbond) XXX_Unmarshal

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

type MsgUnbondResponse

type MsgUnbondResponse struct {
}

func (*MsgUnbondResponse) Descriptor

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

func (*MsgUnbondResponse) Marshal

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

func (*MsgUnbondResponse) MarshalTo

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

func (*MsgUnbondResponse) MarshalToSizedBuffer

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

func (*MsgUnbondResponse) ProtoMessage

func (*MsgUnbondResponse) ProtoMessage()

func (*MsgUnbondResponse) Reset

func (m *MsgUnbondResponse) Reset()

func (*MsgUnbondResponse) Size

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

func (*MsgUnbondResponse) String

func (m *MsgUnbondResponse) String() string

func (*MsgUnbondResponse) Unmarshal

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

func (*MsgUnbondResponse) XXX_DiscardUnknown

func (m *MsgUnbondResponse) XXX_DiscardUnknown()

func (*MsgUnbondResponse) XXX_Marshal

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

func (*MsgUnbondResponse) XXX_Merge

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

func (*MsgUnbondResponse) XXX_Size

func (m *MsgUnbondResponse) XXX_Size() int

func (*MsgUnbondResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

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) 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

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a delegator for all its providers.
	DelegatorProviders(ctx context.Context, in *QueryDelegatorProvidersRequest, opts ...grpc.CallOption) (*QueryDelegatorProvidersResponse, error)
	// Queries a provider for all its delegators.
	ProviderDelegators(ctx context.Context, in *QueryProviderDelegatorsRequest, opts ...grpc.CallOption) (*QueryProviderDelegatorsResponse, error)
	// Queries a the unclaimed rewards of a delegator.
	DelegatorRewards(ctx context.Context, in *QueryDelegatorRewardsRequest, opts ...grpc.CallOption) (*QueryDelegatorRewardsResponse, 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 QueryDelegatorProvidersRequest

type QueryDelegatorProvidersRequest struct {
	Delegator   string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	WithPending bool   `protobuf:"varint,2,opt,name=with_pending,json=withPending,proto3" json:"with_pending,omitempty"`
}

func (*QueryDelegatorProvidersRequest) Descriptor

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

func (*QueryDelegatorProvidersRequest) GetDelegator

func (m *QueryDelegatorProvidersRequest) GetDelegator() string

func (*QueryDelegatorProvidersRequest) GetWithPending

func (m *QueryDelegatorProvidersRequest) GetWithPending() bool

func (*QueryDelegatorProvidersRequest) Marshal

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

func (*QueryDelegatorProvidersRequest) MarshalTo

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

func (*QueryDelegatorProvidersRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorProvidersRequest) ProtoMessage

func (*QueryDelegatorProvidersRequest) ProtoMessage()

func (*QueryDelegatorProvidersRequest) Reset

func (m *QueryDelegatorProvidersRequest) Reset()

func (*QueryDelegatorProvidersRequest) Size

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

func (*QueryDelegatorProvidersRequest) String

func (*QueryDelegatorProvidersRequest) Unmarshal

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

func (*QueryDelegatorProvidersRequest) XXX_DiscardUnknown

func (m *QueryDelegatorProvidersRequest) XXX_DiscardUnknown()

func (*QueryDelegatorProvidersRequest) XXX_Marshal

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

func (*QueryDelegatorProvidersRequest) XXX_Merge

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

func (*QueryDelegatorProvidersRequest) XXX_Size

func (m *QueryDelegatorProvidersRequest) XXX_Size() int

func (*QueryDelegatorProvidersRequest) XXX_Unmarshal

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

type QueryDelegatorProvidersResponse

type QueryDelegatorProvidersResponse struct {
	Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
}

func (*QueryDelegatorProvidersResponse) Descriptor

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

func (*QueryDelegatorProvidersResponse) GetDelegations

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

func (*QueryDelegatorProvidersResponse) Marshal

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

func (*QueryDelegatorProvidersResponse) MarshalTo

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

func (*QueryDelegatorProvidersResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorProvidersResponse) ProtoMessage

func (*QueryDelegatorProvidersResponse) ProtoMessage()

func (*QueryDelegatorProvidersResponse) Reset

func (*QueryDelegatorProvidersResponse) Size

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

func (*QueryDelegatorProvidersResponse) String

func (*QueryDelegatorProvidersResponse) Unmarshal

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

func (*QueryDelegatorProvidersResponse) XXX_DiscardUnknown

func (m *QueryDelegatorProvidersResponse) XXX_DiscardUnknown()

func (*QueryDelegatorProvidersResponse) XXX_Marshal

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

func (*QueryDelegatorProvidersResponse) XXX_Merge

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

func (*QueryDelegatorProvidersResponse) XXX_Size

func (m *QueryDelegatorProvidersResponse) XXX_Size() int

func (*QueryDelegatorProvidersResponse) XXX_Unmarshal

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

type QueryDelegatorRewardsRequest

type QueryDelegatorRewardsRequest struct {
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Provider  string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	ChainId   string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*QueryDelegatorRewardsRequest) Descriptor

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

func (*QueryDelegatorRewardsRequest) GetChainId

func (m *QueryDelegatorRewardsRequest) GetChainId() string

func (*QueryDelegatorRewardsRequest) GetDelegator

func (m *QueryDelegatorRewardsRequest) GetDelegator() string

func (*QueryDelegatorRewardsRequest) GetProvider

func (m *QueryDelegatorRewardsRequest) GetProvider() string

func (*QueryDelegatorRewardsRequest) Marshal

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

func (*QueryDelegatorRewardsRequest) MarshalTo

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

func (*QueryDelegatorRewardsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorRewardsRequest) ProtoMessage

func (*QueryDelegatorRewardsRequest) ProtoMessage()

func (*QueryDelegatorRewardsRequest) Reset

func (m *QueryDelegatorRewardsRequest) Reset()

func (*QueryDelegatorRewardsRequest) Size

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

func (*QueryDelegatorRewardsRequest) String

func (*QueryDelegatorRewardsRequest) Unmarshal

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

func (*QueryDelegatorRewardsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorRewardsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorRewardsRequest) XXX_Marshal

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

func (*QueryDelegatorRewardsRequest) XXX_Merge

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

func (*QueryDelegatorRewardsRequest) XXX_Size

func (m *QueryDelegatorRewardsRequest) XXX_Size() int

func (*QueryDelegatorRewardsRequest) XXX_Unmarshal

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

type QueryDelegatorRewardsResponse

type QueryDelegatorRewardsResponse struct {
	Rewards []DelegatorRewardInfo `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
}

func (*QueryDelegatorRewardsResponse) Descriptor

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

func (*QueryDelegatorRewardsResponse) GetRewards

func (*QueryDelegatorRewardsResponse) Marshal

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

func (*QueryDelegatorRewardsResponse) MarshalTo

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

func (*QueryDelegatorRewardsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorRewardsResponse) ProtoMessage

func (*QueryDelegatorRewardsResponse) ProtoMessage()

func (*QueryDelegatorRewardsResponse) Reset

func (m *QueryDelegatorRewardsResponse) Reset()

func (*QueryDelegatorRewardsResponse) Size

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

func (*QueryDelegatorRewardsResponse) String

func (*QueryDelegatorRewardsResponse) Unmarshal

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

func (*QueryDelegatorRewardsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorRewardsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorRewardsResponse) XXX_Marshal

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

func (*QueryDelegatorRewardsResponse) XXX_Merge

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

func (*QueryDelegatorRewardsResponse) XXX_Size

func (m *QueryDelegatorRewardsResponse) XXX_Size() int

func (*QueryDelegatorRewardsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

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 QueryProviderDelegatorsRequest

type QueryProviderDelegatorsRequest struct {
	Provider    string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	WithPending bool   `protobuf:"varint,2,opt,name=with_pending,json=withPending,proto3" json:"with_pending,omitempty"`
}

func (*QueryProviderDelegatorsRequest) Descriptor

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

func (*QueryProviderDelegatorsRequest) GetProvider

func (m *QueryProviderDelegatorsRequest) GetProvider() string

func (*QueryProviderDelegatorsRequest) GetWithPending

func (m *QueryProviderDelegatorsRequest) GetWithPending() bool

func (*QueryProviderDelegatorsRequest) Marshal

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

func (*QueryProviderDelegatorsRequest) MarshalTo

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

func (*QueryProviderDelegatorsRequest) MarshalToSizedBuffer

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

func (*QueryProviderDelegatorsRequest) ProtoMessage

func (*QueryProviderDelegatorsRequest) ProtoMessage()

func (*QueryProviderDelegatorsRequest) Reset

func (m *QueryProviderDelegatorsRequest) Reset()

func (*QueryProviderDelegatorsRequest) Size

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

func (*QueryProviderDelegatorsRequest) String

func (*QueryProviderDelegatorsRequest) Unmarshal

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

func (*QueryProviderDelegatorsRequest) XXX_DiscardUnknown

func (m *QueryProviderDelegatorsRequest) XXX_DiscardUnknown()

func (*QueryProviderDelegatorsRequest) XXX_Marshal

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

func (*QueryProviderDelegatorsRequest) XXX_Merge

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

func (*QueryProviderDelegatorsRequest) XXX_Size

func (m *QueryProviderDelegatorsRequest) XXX_Size() int

func (*QueryProviderDelegatorsRequest) XXX_Unmarshal

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

type QueryProviderDelegatorsResponse

type QueryProviderDelegatorsResponse struct {
	Delegations []Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
}

func (*QueryProviderDelegatorsResponse) Descriptor

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

func (*QueryProviderDelegatorsResponse) GetDelegations

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

func (*QueryProviderDelegatorsResponse) Marshal

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

func (*QueryProviderDelegatorsResponse) MarshalTo

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

func (*QueryProviderDelegatorsResponse) MarshalToSizedBuffer

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

func (*QueryProviderDelegatorsResponse) ProtoMessage

func (*QueryProviderDelegatorsResponse) ProtoMessage()

func (*QueryProviderDelegatorsResponse) Reset

func (*QueryProviderDelegatorsResponse) Size

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

func (*QueryProviderDelegatorsResponse) String

func (*QueryProviderDelegatorsResponse) Unmarshal

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

func (*QueryProviderDelegatorsResponse) XXX_DiscardUnknown

func (m *QueryProviderDelegatorsResponse) XXX_DiscardUnknown()

func (*QueryProviderDelegatorsResponse) XXX_Marshal

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

func (*QueryProviderDelegatorsResponse) XXX_Merge

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

func (*QueryProviderDelegatorsResponse) XXX_Size

func (m *QueryProviderDelegatorsResponse) XXX_Size() int

func (*QueryProviderDelegatorsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a delegator for all its providers.
	DelegatorProviders(context.Context, *QueryDelegatorProvidersRequest) (*QueryDelegatorProvidersResponse, error)
	// Queries a provider for all its delegators.
	ProviderDelegators(context.Context, *QueryProviderDelegatorsRequest) (*QueryProviderDelegatorsResponse, error)
	// Queries a the unclaimed rewards of a delegator.
	DelegatorRewards(context.Context, *QueryDelegatorRewardsRequest) (*QueryDelegatorRewardsResponse, error)
}

QueryServer is the server API for Query service.

type SpecKeeper

type SpecKeeper interface {
	IsSpecFoundAndActive(ctx sdk.Context, chainID string) (active bool, found bool, providerType spectypes.Spec_ProvidersTypes)
	GetContributorReward(ctx sdk.Context, chainId string) (contributors []sdk.AccAddress, percentage math.LegacyDec)
	GetSpec(ctx sdk.Context, index string) (val spectypes.Spec, found bool)
	GetAllChainIDs(ctx sdk.Context) (chainIDs []string)
}

type StakingKeeper

type StakingKeeper interface {
	UnbondingTime(ctx sdk.Context) time.Duration
	GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation
	GetDelegatorValidator(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) (validator stakingtypes.Validator, err error)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) (delegations []stakingtypes.Delegation)
	BondDenom(ctx sdk.Context) string
	ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error)
	Undelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec) (time.Time, error)
	Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error)
	GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
	GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator)
}

type TimerStoreKeeper added in v0.24.1

type TimerStoreKeeper interface {
	NewTimerStoreBeginBlock(storeKey storetypes.StoreKey, prefix string) *timerstoretypes.TimerStore
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClaimRewards

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) Redelegate

func (*UnimplementedMsgServer) Unbond

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DelegatorProviders

func (*UnimplementedQueryServer) DelegatorRewards

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ProviderDelegators

Jump to

Keyboard shortcuts

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