types

package
v0.0.0-...-3a28d7b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	RefreshAgentDelegationEpochID    = "MTStakingRefreshAgentDelegation"
	CollectAgentStakingRewardEpochID = "MTStakingCollectReward"
)
View Source
const (
	EventTypeCompleteUnbonding         = "complete_unbonding"
	EventTypeDelegate                  = "delegate"
	EventTypeUnbond                    = "unbond"
	EventTypeCancelUnbondingDelegation = "cancel_unbonding_delegation"

	AttributeKeyValidator         = "validator"
	AttributeKeyCommissionRate    = "commission_rate"
	AttributeKeyMinSelfDelegation = "min_self_delegation"
	AttributeKeySrcValidator      = "source_validator"
	AttributeKeyDstValidator      = "destination_validator"
	AttributeKeyDelegator         = "delegator"
	AttributeKeyCreationHeight    = "creation_height"
	AttributeKeyCompletionTime    = "completion_time"
	AttributeKeyNewShares         = "new_shares"
)

staking module event types

View Source
const (
	// ModuleName is the name of the multistaking module
	ModuleName = "multistaking"

	// StoreKey is the string store representation
	StoreKey = ModuleName

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

	QuerierRoute = ModuleName
)
View Source
const ProposalTypeMultiTokenStakingAddition = "MultiTokenStakingAddition"

Variables

View Source
var (
	ErrForbidStakingDenom    = sdkioerrors.Register(ModuleName, 1, "The denom is forbidden in multistaking module")
	ErrInsufficientShares    = sdkioerrors.Register(ModuleName, 2, "The shares is insufficient")
	ErrNotExistedAgent       = sdkioerrors.Register(ModuleName, 3, "The validator has't multistaking agent")
	ErrNoUnbondingDelegation = sdkioerrors.Register(ModuleName, 4, "The unbonding delegation is not existed")
	ErrNoShares              = sdkioerrors.Register(ModuleName, 5, "The user has't shares in this agent")
	ErrNoCoinMultiplierFound = sdkioerrors.Register(ModuleName, 6, "The coin equivalent native coin multiplier no found")
)
View Source
var (
	// Key for the denom white list which allow used for multistaking
	DenomWhiteListKey = []byte{0x11}

	// Prefix for key which used in `{validator_address + denom } => MTStakingAgent's ID`
	MTStakingAgentAddressPrefix = []byte{0x21}

	// Prefix for Key which used in `agent_address => MTStakingAgent`
	AgentPrefix = []byte{0x22}

	// Prefix for key which used in `{agent_address + delegator_address} => MTStakingUnbonding`
	UnbondingPrefix = []byte{0x31}

	UnbondingQueueKey = []byte{0x32}

	// Prefix for key which used in `{agent_address + delegator_address} => shares_amount`
	DelegationPrefix = []byte{0x41}

	// Prefix for key used in store total minted
	MintedKey = []byte{0x51}

	// Prefix for key used in store EquivalentMultiplierRecord
	TokenMultiplierPrefix = []byte{0x61}

	// Prefix for key used in store blockHeight of delegator withdraw reward
	WithdrawRewardPrefix = []byte{0x71}
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = 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 (
	ErrInvalidLengthStake        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStake          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStake = 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 GetMTStakingAgentAddressKey

func GetMTStakingAgentAddressKey(denom string, valAddr sdk.ValAddress) []byte

func GetMTStakingAgentKey

func GetMTStakingAgentKey(agentAddr sdk.AccAddress) []byte

func GetMTStakingDelegationKey

func GetMTStakingDelegationKey(agentAddr, delegator sdk.AccAddress) []byte

func GetMTStakingMintedKey

func GetMTStakingMintedKey() []byte

func GetMTStakingUnbondingByAgentIndexKey

func GetMTStakingUnbondingByAgentIndexKey(agentAddr sdk.AccAddress) []byte

func GetMTStakingUnbondingDelegationTimeKey

func GetMTStakingUnbondingDelegationTimeKey(timestamp time.Time) []byte

func GetMTStakingUnbondingKey

func GetMTStakingUnbondingKey(agentAddr, delegator sdk.AccAddress) []byte

func GetMTTokenMultiplierKey

func GetMTTokenMultiplierKey(denom string) []byte

func GetMTWithdrawRewardHeightKey

func GetMTWithdrawRewardHeightKey(delegator, agent sdk.AccAddress) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/multitokenstaking interfaces types with the interface registry

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 {
	NewAccount(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper

type AddNonNativeTokenToStakingProposal

type AddNonNativeTokenToStakingProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	//A list of denoms representing the denom of the non-native token to be added to staking
	Denoms []string `protobuf:"bytes,3,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

AddNonNativeTokenToStakingProposal defines a proposal to add a non-native token to participate in Proof-of-Stake (POS) staking.

func (*AddNonNativeTokenToStakingProposal) Descriptor

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

func (*AddNonNativeTokenToStakingProposal) GetDescription

func (cap *AddNonNativeTokenToStakingProposal) GetDescription() string

GetDescription implements v1beta1.Content

func (*AddNonNativeTokenToStakingProposal) GetTitle

GetTitle implements v1beta1.Content

func (*AddNonNativeTokenToStakingProposal) Marshal

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

func (*AddNonNativeTokenToStakingProposal) MarshalTo

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

func (*AddNonNativeTokenToStakingProposal) MarshalToSizedBuffer

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

func (*AddNonNativeTokenToStakingProposal) ProposalRoute

func (*AddNonNativeTokenToStakingProposal) ProposalRoute() string

ProposalRoute implements v1beta1.Content

func (*AddNonNativeTokenToStakingProposal) ProposalType

ProposalType implements v1beta1.Content

func (*AddNonNativeTokenToStakingProposal) ProtoMessage

func (*AddNonNativeTokenToStakingProposal) ProtoMessage()

func (*AddNonNativeTokenToStakingProposal) Reset

func (*AddNonNativeTokenToStakingProposal) Size

func (*AddNonNativeTokenToStakingProposal) String

func (*AddNonNativeTokenToStakingProposal) Unmarshal

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

func (*AddNonNativeTokenToStakingProposal) ValidateBasic

func (*AddNonNativeTokenToStakingProposal) ValidateBasic() error

ValidateBasic implements v1beta1.Content

func (*AddNonNativeTokenToStakingProposal) XXX_DiscardUnknown

func (m *AddNonNativeTokenToStakingProposal) XXX_DiscardUnknown()

func (*AddNonNativeTokenToStakingProposal) XXX_Marshal

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

func (*AddNonNativeTokenToStakingProposal) XXX_Merge

func (*AddNonNativeTokenToStakingProposal) XXX_Size

func (*AddNonNativeTokenToStakingProposal) XXX_Unmarshal

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

type AgentUnbondingDelegationsRequest

type AgentUnbondingDelegationsRequest struct {
	AgentAddr  string             `protobuf:"bytes,1,opt,name=agent_addr,json=agentAddr,proto3" json:"agent_addr,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AgentUnbondingDelegationsRequest is request type for query unbonding delegations of the agent.

func (*AgentUnbondingDelegationsRequest) Descriptor

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

func (*AgentUnbondingDelegationsRequest) Marshal

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

func (*AgentUnbondingDelegationsRequest) MarshalTo

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

func (*AgentUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*AgentUnbondingDelegationsRequest) ProtoMessage

func (*AgentUnbondingDelegationsRequest) ProtoMessage()

func (*AgentUnbondingDelegationsRequest) Reset

func (*AgentUnbondingDelegationsRequest) Size

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

func (*AgentUnbondingDelegationsRequest) String

func (*AgentUnbondingDelegationsRequest) Unmarshal

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

func (*AgentUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *AgentUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*AgentUnbondingDelegationsRequest) XXX_Marshal

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

func (*AgentUnbondingDelegationsRequest) XXX_Merge

func (*AgentUnbondingDelegationsRequest) XXX_Size

func (m *AgentUnbondingDelegationsRequest) XXX_Size() int

func (*AgentUnbondingDelegationsRequest) XXX_Unmarshal

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

type AgentUnbondingDelegationsResponse

type AgentUnbondingDelegationsResponse struct {
	Unbondings []MTStakingUnbondingDelegation `protobuf:"bytes,1,rep,name=unbondings,proto3" json:"unbondings"`
	Pagination *query.PageResponse            `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AgentUnbondingDelegationsResponse is response type for query unbonding delegations of the agent.

func (*AgentUnbondingDelegationsResponse) Descriptor

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

func (*AgentUnbondingDelegationsResponse) GetPagination

func (*AgentUnbondingDelegationsResponse) GetUnbondings

func (*AgentUnbondingDelegationsResponse) Marshal

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

func (*AgentUnbondingDelegationsResponse) MarshalTo

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

func (*AgentUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*AgentUnbondingDelegationsResponse) ProtoMessage

func (*AgentUnbondingDelegationsResponse) ProtoMessage()

func (*AgentUnbondingDelegationsResponse) Reset

func (*AgentUnbondingDelegationsResponse) Size

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

func (*AgentUnbondingDelegationsResponse) String

func (*AgentUnbondingDelegationsResponse) Unmarshal

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

func (*AgentUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *AgentUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*AgentUnbondingDelegationsResponse) XXX_Marshal

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

func (*AgentUnbondingDelegationsResponse) XXX_Merge

func (*AgentUnbondingDelegationsResponse) XXX_Size

func (m *AgentUnbondingDelegationsResponse) XXX_Size() int

func (*AgentUnbondingDelegationsResponse) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	GetSupply(ctx sdk.Context, denom string) sdk.Coin

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DAPair

type DAPair struct {
	// Delegator's address.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Agent ID.
	AgentAddress string `protobuf:"bytes,2,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
}

DAPair represents a delegation-agent pair.

func (*DAPair) Descriptor

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

func (*DAPair) GetAgentAddress

func (m *DAPair) GetAgentAddress() string

func (*DAPair) GetDelegatorAddress

func (m *DAPair) GetDelegatorAddress() string

func (*DAPair) Marshal

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

func (*DAPair) MarshalTo

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

func (*DAPair) MarshalToSizedBuffer

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

func (*DAPair) ProtoMessage

func (*DAPair) ProtoMessage()

func (*DAPair) Reset

func (m *DAPair) Reset()

func (*DAPair) Size

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

func (*DAPair) String

func (m *DAPair) String() string

func (*DAPair) Unmarshal

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

func (*DAPair) XXX_DiscardUnknown

func (m *DAPair) XXX_DiscardUnknown()

func (*DAPair) XXX_Marshal

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

func (*DAPair) XXX_Merge

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

func (*DAPair) XXX_Size

func (m *DAPair) XXX_Size() int

func (*DAPair) XXX_Unmarshal

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

type DAPairs

type DAPairs struct {
	// List of delegation-agent pairs.
	Pairs []DAPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

DAPairs represents a collection of delegation-agent pairs.

func (*DAPairs) Descriptor

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

func (*DAPairs) GetPairs

func (m *DAPairs) GetPairs() []DAPair

func (*DAPairs) Marshal

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

func (*DAPairs) MarshalTo

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

func (*DAPairs) MarshalToSizedBuffer

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

func (*DAPairs) ProtoMessage

func (*DAPairs) ProtoMessage()

func (*DAPairs) Reset

func (m *DAPairs) Reset()

func (*DAPairs) Size

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

func (*DAPairs) String

func (m *DAPairs) String() string

func (*DAPairs) Unmarshal

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

func (*DAPairs) XXX_DiscardUnknown

func (m *DAPairs) XXX_DiscardUnknown()

func (*DAPairs) XXX_Marshal

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

func (*DAPairs) XXX_Merge

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

func (*DAPairs) XXX_Size

func (m *DAPairs) XXX_Size() int

func (*DAPairs) XXX_Unmarshal

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

type Dec

type Dec = sdk.Dec

type DelegationRequest

type DelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// agent_addr defines the agent address to query for.
	AgentAddr string `protobuf:"bytes,2,opt,name=agent_addr,json=agentAddr,proto3" json:"agent_addr,omitempty"`
}

DelegationRequest is request type for queries delegate info for given agent delegator pair.

func (*DelegationRequest) Descriptor

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

func (*DelegationRequest) Marshal

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

func (*DelegationRequest) MarshalTo

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

func (*DelegationRequest) MarshalToSizedBuffer

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

func (*DelegationRequest) ProtoMessage

func (*DelegationRequest) ProtoMessage()

func (*DelegationRequest) Reset

func (m *DelegationRequest) Reset()

func (*DelegationRequest) Size

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

func (*DelegationRequest) String

func (m *DelegationRequest) String() string

func (*DelegationRequest) Unmarshal

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

func (*DelegationRequest) XXX_DiscardUnknown

func (m *DelegationRequest) XXX_DiscardUnknown()

func (*DelegationRequest) XXX_Marshal

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

func (*DelegationRequest) XXX_Merge

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

func (*DelegationRequest) XXX_Size

func (m *DelegationRequest) XXX_Size() int

func (*DelegationRequest) XXX_Unmarshal

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

type DelegationResponse

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

DelegationRequest is request type for queries delegate info for given agent delegator pair.

func (*DelegationResponse) Descriptor

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

func (*DelegationResponse) GetBalance

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

func (*DelegationResponse) GetDelegation

func (m *DelegationResponse) GetDelegation() MTStakingDelegation

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 DelegatorAgentsRequest

type DelegatorAgentsRequest struct {
	// delegator_addr defines the delegator address to query for.
	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"`
}

DelegatorAgentsRequest is request type for query all agents info for given delegator

func (*DelegatorAgentsRequest) Descriptor

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

func (*DelegatorAgentsRequest) Marshal

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

func (*DelegatorAgentsRequest) MarshalTo

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

func (*DelegatorAgentsRequest) MarshalToSizedBuffer

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

func (*DelegatorAgentsRequest) ProtoMessage

func (*DelegatorAgentsRequest) ProtoMessage()

func (*DelegatorAgentsRequest) Reset

func (m *DelegatorAgentsRequest) Reset()

func (*DelegatorAgentsRequest) Size

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

func (*DelegatorAgentsRequest) String

func (m *DelegatorAgentsRequest) String() string

func (*DelegatorAgentsRequest) Unmarshal

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

func (*DelegatorAgentsRequest) XXX_DiscardUnknown

func (m *DelegatorAgentsRequest) XXX_DiscardUnknown()

func (*DelegatorAgentsRequest) XXX_Marshal

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

func (*DelegatorAgentsRequest) XXX_Merge

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

func (*DelegatorAgentsRequest) XXX_Size

func (m *DelegatorAgentsRequest) XXX_Size() int

func (*DelegatorAgentsRequest) XXX_Unmarshal

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

type DelegatorAgentsResponse

type DelegatorAgentsResponse struct {
	Agents     []MTStakingAgent    `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

DelegatorAgentsRequest is response type for query all agents info for given delegator

func (*DelegatorAgentsResponse) Descriptor

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

func (*DelegatorAgentsResponse) GetAgents

func (m *DelegatorAgentsResponse) GetAgents() []MTStakingAgent

func (*DelegatorAgentsResponse) GetPagination

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

func (*DelegatorAgentsResponse) Marshal

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

func (*DelegatorAgentsResponse) MarshalTo

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

func (*DelegatorAgentsResponse) MarshalToSizedBuffer

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

func (*DelegatorAgentsResponse) ProtoMessage

func (*DelegatorAgentsResponse) ProtoMessage()

func (*DelegatorAgentsResponse) Reset

func (m *DelegatorAgentsResponse) Reset()

func (*DelegatorAgentsResponse) Size

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

func (*DelegatorAgentsResponse) String

func (m *DelegatorAgentsResponse) String() string

func (*DelegatorAgentsResponse) Unmarshal

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

func (*DelegatorAgentsResponse) XXX_DiscardUnknown

func (m *DelegatorAgentsResponse) XXX_DiscardUnknown()

func (*DelegatorAgentsResponse) XXX_Marshal

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

func (*DelegatorAgentsResponse) XXX_Merge

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

func (*DelegatorAgentsResponse) XXX_Size

func (m *DelegatorAgentsResponse) XXX_Size() int

func (*DelegatorAgentsResponse) XXX_Unmarshal

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

type DelegatorDelegationsRequest

type DelegatorDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	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"`
}

DelegatorDelegationsRequest is request type for query delegations of the delegator

func (*DelegatorDelegationsRequest) Descriptor

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

func (*DelegatorDelegationsRequest) Marshal

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

func (*DelegatorDelegationsRequest) MarshalTo

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

func (*DelegatorDelegationsRequest) MarshalToSizedBuffer

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

func (*DelegatorDelegationsRequest) ProtoMessage

func (*DelegatorDelegationsRequest) ProtoMessage()

func (*DelegatorDelegationsRequest) Reset

func (m *DelegatorDelegationsRequest) Reset()

func (*DelegatorDelegationsRequest) Size

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

func (*DelegatorDelegationsRequest) String

func (m *DelegatorDelegationsRequest) String() string

func (*DelegatorDelegationsRequest) Unmarshal

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

func (*DelegatorDelegationsRequest) XXX_DiscardUnknown

func (m *DelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*DelegatorDelegationsRequest) XXX_Marshal

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

func (*DelegatorDelegationsRequest) XXX_Merge

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

func (*DelegatorDelegationsRequest) XXX_Size

func (m *DelegatorDelegationsRequest) XXX_Size() int

func (*DelegatorDelegationsRequest) XXX_Unmarshal

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

type DelegatorDelegationsResponse

type DelegatorDelegationsResponse struct {
	// delegation_responses defines all the delegations' info of a delegator.
	Delegations []MTStakingDelegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	Pagination  *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

DelegatorDelegationsResponse is response type for query delegations of the delegator

func (*DelegatorDelegationsResponse) Descriptor

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

func (*DelegatorDelegationsResponse) GetDelegations

func (m *DelegatorDelegationsResponse) GetDelegations() []MTStakingDelegation

func (*DelegatorDelegationsResponse) GetPagination

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

func (*DelegatorDelegationsResponse) Marshal

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

func (*DelegatorDelegationsResponse) MarshalTo

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

func (*DelegatorDelegationsResponse) MarshalToSizedBuffer

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

func (*DelegatorDelegationsResponse) ProtoMessage

func (*DelegatorDelegationsResponse) ProtoMessage()

func (*DelegatorDelegationsResponse) Reset

func (m *DelegatorDelegationsResponse) Reset()

func (*DelegatorDelegationsResponse) Size

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

func (*DelegatorDelegationsResponse) String

func (*DelegatorDelegationsResponse) Unmarshal

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

func (*DelegatorDelegationsResponse) XXX_DiscardUnknown

func (m *DelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*DelegatorDelegationsResponse) XXX_Marshal

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

func (*DelegatorDelegationsResponse) XXX_Merge

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

func (*DelegatorDelegationsResponse) XXX_Size

func (m *DelegatorDelegationsResponse) XXX_Size() int

func (*DelegatorDelegationsResponse) XXX_Unmarshal

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

type DelegatorUnbondingDelegationsRequest

type DelegatorUnbondingDelegationsRequest struct {
	// delegator_addr defines the delegator address to query for.
	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"`
}

DelegatorUnbondingDelegationsRequest is request type for query unbonding delegations of the delegator

func (*DelegatorUnbondingDelegationsRequest) Descriptor

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

func (*DelegatorUnbondingDelegationsRequest) Marshal

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

func (*DelegatorUnbondingDelegationsRequest) MarshalTo

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

func (*DelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*DelegatorUnbondingDelegationsRequest) ProtoMessage

func (*DelegatorUnbondingDelegationsRequest) ProtoMessage()

func (*DelegatorUnbondingDelegationsRequest) Reset

func (*DelegatorUnbondingDelegationsRequest) Size

func (*DelegatorUnbondingDelegationsRequest) String

func (*DelegatorUnbondingDelegationsRequest) Unmarshal

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

func (*DelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *DelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*DelegatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*DelegatorUnbondingDelegationsRequest) XXX_Merge

func (*DelegatorUnbondingDelegationsRequest) XXX_Size

func (*DelegatorUnbondingDelegationsRequest) XXX_Unmarshal

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

type DelegatorUnbondingDelegationsResponse

type DelegatorUnbondingDelegationsResponse struct {
	Unbond     []MTStakingUnbondingDelegation `protobuf:"bytes,1,rep,name=unbond,proto3" json:"unbond"`
	Pagination *query.PageResponse            `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

DelegatorUnbondingDelegationsResponse is response type for query unbonding delegations of the delegator

func (*DelegatorUnbondingDelegationsResponse) Descriptor

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

func (*DelegatorUnbondingDelegationsResponse) GetPagination

func (*DelegatorUnbondingDelegationsResponse) GetUnbond

func (*DelegatorUnbondingDelegationsResponse) Marshal

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

func (*DelegatorUnbondingDelegationsResponse) MarshalTo

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

func (*DelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*DelegatorUnbondingDelegationsResponse) ProtoMessage

func (*DelegatorUnbondingDelegationsResponse) ProtoMessage()

func (*DelegatorUnbondingDelegationsResponse) Reset

func (*DelegatorUnbondingDelegationsResponse) Size

func (*DelegatorUnbondingDelegationsResponse) String

func (*DelegatorUnbondingDelegationsResponse) Unmarshal

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

func (*DelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *DelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*DelegatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*DelegatorUnbondingDelegationsResponse) XXX_Merge

func (*DelegatorUnbondingDelegationsResponse) XXX_Size

func (*DelegatorUnbondingDelegationsResponse) XXX_Unmarshal

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

type DistributionKeeper

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

type EpochKeeper

type EpochKeeper interface {
	GetEpochInfo(ctx sdk.Context, identifier string) (epochstypes.EpochInfo, bool)
}

type EquivalentMultiplierRecord

type EquivalentMultiplierRecord struct {
	// Epoch number.
	EpochNumber int64 `protobuf:"varint,1,opt,name=epoch_number,json=epochNumber,proto3" json:"epoch_number,omitempty"`
	// The denom of token.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// multiplier represents the exchange rate from the token to the native token and is expressed as a decimal value.
	Multiplier Dec `protobuf:"bytes,3,opt,name=multiplier,proto3,customtype=Dec" json:"multiplier"`
}

EquivalentMultiplierRecord represents the exchange rate between a specific token and the native token during a particular epoch

func (*EquivalentMultiplierRecord) Descriptor

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

func (*EquivalentMultiplierRecord) GetDenom

func (m *EquivalentMultiplierRecord) GetDenom() string

func (*EquivalentMultiplierRecord) GetEpochNumber

func (m *EquivalentMultiplierRecord) GetEpochNumber() int64

func (*EquivalentMultiplierRecord) Marshal

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

func (*EquivalentMultiplierRecord) MarshalTo

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

func (*EquivalentMultiplierRecord) MarshalToSizedBuffer

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

func (*EquivalentMultiplierRecord) ProtoMessage

func (*EquivalentMultiplierRecord) ProtoMessage()

func (*EquivalentMultiplierRecord) Reset

func (m *EquivalentMultiplierRecord) Reset()

func (*EquivalentMultiplierRecord) Size

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

func (*EquivalentMultiplierRecord) String

func (m *EquivalentMultiplierRecord) String() string

func (*EquivalentMultiplierRecord) Unmarshal

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

func (*EquivalentMultiplierRecord) XXX_DiscardUnknown

func (m *EquivalentMultiplierRecord) XXX_DiscardUnknown()

func (*EquivalentMultiplierRecord) XXX_Marshal

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

func (*EquivalentMultiplierRecord) XXX_Merge

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

func (*EquivalentMultiplierRecord) XXX_Size

func (m *EquivalentMultiplierRecord) XXX_Size() int

func (*EquivalentMultiplierRecord) XXX_Unmarshal

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

type Int

type Int = sdkmath.Int

type MTStakingAgent

type MTStakingAgent struct {
	// Address represent this agent, used for delegate/undelegate/slash.
	AgentAddress string `protobuf:"bytes,1,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
	// The denom of staking token.
	StakeDenom string `protobuf:"bytes,2,opt,name=stake_denom,json=stakeDenom,proto3" json:"stake_denom,omitempty"`
	// Validator's address.
	ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// Address is used for receive staking reward
	RewardAddress string `protobuf:"bytes,4,opt,name=reward_address,json=rewardAddress,proto3" json:"reward_address,omitempty"`
	// Amount being staked.
	StakedAmount Int `protobuf:"bytes,5,opt,name=staked_amount,json=stakedAmount,proto3,customtype=Int" json:"staked_amount"`
	// Total shares of all delegtor of this agent.
	Shares Int `protobuf:"bytes,6,opt,name=shares,proto3,customtype=Int" json:"shares"`
	// Reward amount earned by the agent.
	RewardAmount Int `protobuf:"bytes,7,opt,name=reward_amount,json=rewardAmount,proto3,customtype=Int" json:"reward_amount"`
	// block heigt of create the agent.
	CreatedBlockHeight int64 `protobuf:"varint,8,opt,name=created_block_height,json=createdBlockHeight,proto3" json:"created_block_height,omitempty"`
}

MTStakingAgent represents a multi-token staking agent.

func (MTStakingAgent) CalculateCoinFromShare

func (ma MTStakingAgent) CalculateCoinFromShare(shareAmt math.Int) math.Int

func (MTStakingAgent) CalculateShareFromCoin

func (ma MTStakingAgent) CalculateShareFromCoin(tokenAmt math.Int) math.Int

func (*MTStakingAgent) Descriptor

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

func (*MTStakingAgent) GetAgentAddress

func (m *MTStakingAgent) GetAgentAddress() string

func (*MTStakingAgent) GetCreatedBlockHeight

func (m *MTStakingAgent) GetCreatedBlockHeight() int64

func (*MTStakingAgent) GetRewardAddress

func (m *MTStakingAgent) GetRewardAddress() string

func (*MTStakingAgent) GetStakeDenom

func (m *MTStakingAgent) GetStakeDenom() string

func (*MTStakingAgent) GetValidatorAddress

func (m *MTStakingAgent) GetValidatorAddress() string

func (*MTStakingAgent) Marshal

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

func (*MTStakingAgent) MarshalTo

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

func (*MTStakingAgent) MarshalToSizedBuffer

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

func (*MTStakingAgent) ProtoMessage

func (*MTStakingAgent) ProtoMessage()

func (*MTStakingAgent) Reset

func (m *MTStakingAgent) Reset()

func (*MTStakingAgent) Size

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

func (*MTStakingAgent) String

func (m *MTStakingAgent) String() string

func (*MTStakingAgent) Unmarshal

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

func (*MTStakingAgent) XXX_DiscardUnknown

func (m *MTStakingAgent) XXX_DiscardUnknown()

func (*MTStakingAgent) XXX_Marshal

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

func (*MTStakingAgent) XXX_Merge

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

func (*MTStakingAgent) XXX_Size

func (m *MTStakingAgent) XXX_Size() int

func (*MTStakingAgent) XXX_Unmarshal

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

type MTStakingDelegation

type MTStakingDelegation struct {
	// Delegator's address.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// agnet's address.
	AgentAddress string `protobuf:"bytes,2,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
	// shares being staked.
	Shares Int `protobuf:"bytes,3,opt,name=shares,proto3,customtype=Int" json:"shares"`
}

MTStakingDelegation represents a multi-token staking delegation.

func (*MTStakingDelegation) Descriptor

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

func (*MTStakingDelegation) GetAgentAddress

func (m *MTStakingDelegation) GetAgentAddress() string

func (*MTStakingDelegation) GetDelegatorAddress

func (m *MTStakingDelegation) GetDelegatorAddress() string

func (*MTStakingDelegation) Marshal

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

func (*MTStakingDelegation) MarshalTo

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

func (*MTStakingDelegation) MarshalToSizedBuffer

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

func (*MTStakingDelegation) ProtoMessage

func (*MTStakingDelegation) ProtoMessage()

func (*MTStakingDelegation) Reset

func (m *MTStakingDelegation) Reset()

func (*MTStakingDelegation) Size

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

func (*MTStakingDelegation) String

func (m *MTStakingDelegation) String() string

func (*MTStakingDelegation) Unmarshal

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

func (*MTStakingDelegation) XXX_DiscardUnknown

func (m *MTStakingDelegation) XXX_DiscardUnknown()

func (*MTStakingDelegation) XXX_Marshal

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

func (*MTStakingDelegation) XXX_Merge

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

func (*MTStakingDelegation) XXX_Size

func (m *MTStakingDelegation) XXX_Size() int

func (*MTStakingDelegation) XXX_Unmarshal

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

type MTStakingDenomWhiteList

type MTStakingDenomWhiteList struct {
	// List of allowed denominations.
	DenomList []string `protobuf:"bytes,1,rep,name=denom_list,json=denomList,proto3" json:"denom_list,omitempty"`
}

MTStakingDenomWhiteList represents the whitelist of denominations for multi-token staking.

func (*MTStakingDenomWhiteList) Descriptor

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

func (*MTStakingDenomWhiteList) GetDenomList

func (m *MTStakingDenomWhiteList) GetDenomList() []string

func (*MTStakingDenomWhiteList) Marshal

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

func (*MTStakingDenomWhiteList) MarshalTo

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

func (*MTStakingDenomWhiteList) MarshalToSizedBuffer

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

func (*MTStakingDenomWhiteList) ProtoMessage

func (*MTStakingDenomWhiteList) ProtoMessage()

func (*MTStakingDenomWhiteList) Reset

func (m *MTStakingDenomWhiteList) Reset()

func (*MTStakingDenomWhiteList) Size

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

func (*MTStakingDenomWhiteList) String

func (m *MTStakingDenomWhiteList) String() string

func (*MTStakingDenomWhiteList) Unmarshal

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

func (*MTStakingDenomWhiteList) XXX_DiscardUnknown

func (m *MTStakingDenomWhiteList) XXX_DiscardUnknown()

func (*MTStakingDenomWhiteList) XXX_Marshal

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

func (*MTStakingDenomWhiteList) XXX_Merge

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

func (*MTStakingDenomWhiteList) XXX_Size

func (m *MTStakingDenomWhiteList) XXX_Size() int

func (*MTStakingDenomWhiteList) XXX_Unmarshal

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

type MTStakingUnbondingDelegation

type MTStakingUnbondingDelegation struct {
	// Agent ID.
	AgentAddress string `protobuf:"bytes,1,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
	// Delegator's address.
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// List of unbonding entries.
	Entries []MTStakingUnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

MTStakingUnbondingDelegation represents the unbonding information for a multi-token staking agent.

func (*MTStakingUnbondingDelegation) Descriptor

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

func (*MTStakingUnbondingDelegation) GetAgentAddress

func (m *MTStakingUnbondingDelegation) GetAgentAddress() string

func (*MTStakingUnbondingDelegation) GetDelegatorAddress

func (m *MTStakingUnbondingDelegation) GetDelegatorAddress() string

func (*MTStakingUnbondingDelegation) GetEntries

func (*MTStakingUnbondingDelegation) Marshal

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

func (*MTStakingUnbondingDelegation) MarshalTo

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

func (*MTStakingUnbondingDelegation) MarshalToSizedBuffer

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

func (*MTStakingUnbondingDelegation) ProtoMessage

func (*MTStakingUnbondingDelegation) ProtoMessage()

func (*MTStakingUnbondingDelegation) RemoveEntry

func (ubd *MTStakingUnbondingDelegation) RemoveEntry(i int64)

func (*MTStakingUnbondingDelegation) Reset

func (m *MTStakingUnbondingDelegation) Reset()

func (*MTStakingUnbondingDelegation) Size

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

func (*MTStakingUnbondingDelegation) String

func (*MTStakingUnbondingDelegation) Unmarshal

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

func (*MTStakingUnbondingDelegation) XXX_DiscardUnknown

func (m *MTStakingUnbondingDelegation) XXX_DiscardUnknown()

func (*MTStakingUnbondingDelegation) XXX_Marshal

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

func (*MTStakingUnbondingDelegation) XXX_Merge

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

func (*MTStakingUnbondingDelegation) XXX_Size

func (m *MTStakingUnbondingDelegation) XXX_Size() int

func (*MTStakingUnbondingDelegation) XXX_Unmarshal

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

type MTStakingUnbondingDelegationEntry

type MTStakingUnbondingDelegationEntry struct {
	CreatedHeight int64 `protobuf:"varint,1,opt,name=created_height,json=createdHeight,proto3" json:"created_height,omitempty"`
	// Completion time of the unbonding entry.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// Initial balance of the unbonding entry.
	InitialBalance types.Coin `` /* 146-byte string literal not displayed */
	// Current balance of the unbonding entry.
	Balance types.Coin `protobuf:"bytes,4,opt,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"balance"`
}

MTStakingUnbondingDelegationEntry represents an unbonding entry for a multi-token staking agent.

func (*MTStakingUnbondingDelegationEntry) Descriptor

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

func (*MTStakingUnbondingDelegationEntry) GetBalance

func (*MTStakingUnbondingDelegationEntry) GetCompletionTime

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

func (*MTStakingUnbondingDelegationEntry) GetCreatedHeight

func (m *MTStakingUnbondingDelegationEntry) GetCreatedHeight() int64

func (*MTStakingUnbondingDelegationEntry) GetInitialBalance

func (m *MTStakingUnbondingDelegationEntry) GetInitialBalance() types.Coin

func (MTStakingUnbondingDelegationEntry) IsMature

func (e MTStakingUnbondingDelegationEntry) IsMature(currentTime time.Time) bool

func (*MTStakingUnbondingDelegationEntry) Marshal

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

func (*MTStakingUnbondingDelegationEntry) MarshalTo

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

func (*MTStakingUnbondingDelegationEntry) MarshalToSizedBuffer

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

func (*MTStakingUnbondingDelegationEntry) ProtoMessage

func (*MTStakingUnbondingDelegationEntry) ProtoMessage()

func (*MTStakingUnbondingDelegationEntry) Reset

func (*MTStakingUnbondingDelegationEntry) Size

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

func (*MTStakingUnbondingDelegationEntry) String

func (*MTStakingUnbondingDelegationEntry) Unmarshal

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

func (*MTStakingUnbondingDelegationEntry) XXX_DiscardUnknown

func (m *MTStakingUnbondingDelegationEntry) XXX_DiscardUnknown()

func (*MTStakingUnbondingDelegationEntry) XXX_Marshal

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

func (*MTStakingUnbondingDelegationEntry) XXX_Merge

func (*MTStakingUnbondingDelegationEntry) XXX_Size

func (m *MTStakingUnbondingDelegationEntry) XXX_Size() int

func (*MTStakingUnbondingDelegationEntry) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// MTStakingDelegate define a method for delegate token to a agent.
	// The agent will delegate it to a validator.
	MTStakingDelegate(ctx context.Context, in *MsgMTStakingDelegate, opts ...grpc.CallOption) (*MsgMTStakingDelegateResponse, error)
	// MTStakingUndelegate define a mathod for undelegate shares from a agent.
	MTStakingUndelegate(ctx context.Context, in *MsgMTStakingUndelegate, opts ...grpc.CallOption) (*MsgMTStakingUndelegateResponse, error)
	// MTStakingUndelegate define a mathod for delegator withdraw staking reward from agent.
	MTStakingWithdrawReward(ctx context.Context, in *MsgMTStakingWithdrawReward, opts ...grpc.CallOption) (*MsgMTStakingWithdrawRewardResponse, 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 MsgMTStakingDelegate

type MsgMTStakingDelegate 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"`
}

MsgMTStakingDelegate define the msg delegate to a agent request type.

func NewMsgMTStakingDelegate

func NewMsgMTStakingDelegate(delegator sdk.AccAddress, validator sdk.ValAddress, balance sdk.Coin) (*MsgMTStakingDelegate, error)

func (*MsgMTStakingDelegate) Descriptor

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

func (MsgMTStakingDelegate) GetSigners

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

GetSigners implements sdk.Msg.

func (*MsgMTStakingDelegate) Marshal

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

func (*MsgMTStakingDelegate) MarshalTo

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

func (*MsgMTStakingDelegate) MarshalToSizedBuffer

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

func (*MsgMTStakingDelegate) ProtoMessage

func (*MsgMTStakingDelegate) ProtoMessage()

func (*MsgMTStakingDelegate) Reset

func (m *MsgMTStakingDelegate) Reset()

func (*MsgMTStakingDelegate) Size

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

func (*MsgMTStakingDelegate) String

func (m *MsgMTStakingDelegate) String() string

func (*MsgMTStakingDelegate) Unmarshal

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

func (MsgMTStakingDelegate) ValidateBasic

func (msg MsgMTStakingDelegate) ValidateBasic() error

ValidateBasic implements sdk.Msg.

func (*MsgMTStakingDelegate) XXX_DiscardUnknown

func (m *MsgMTStakingDelegate) XXX_DiscardUnknown()

func (*MsgMTStakingDelegate) XXX_Marshal

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

func (*MsgMTStakingDelegate) XXX_Merge

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

func (*MsgMTStakingDelegate) XXX_Size

func (m *MsgMTStakingDelegate) XXX_Size() int

func (*MsgMTStakingDelegate) XXX_Unmarshal

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

type MsgMTStakingDelegateResponse

type MsgMTStakingDelegateResponse struct {
}

MsgMTStakingDelegateResponse define the msg delegate to a agent response type.

func (*MsgMTStakingDelegateResponse) Descriptor

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

func (*MsgMTStakingDelegateResponse) Marshal

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

func (*MsgMTStakingDelegateResponse) MarshalTo

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

func (*MsgMTStakingDelegateResponse) MarshalToSizedBuffer

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

func (*MsgMTStakingDelegateResponse) ProtoMessage

func (*MsgMTStakingDelegateResponse) ProtoMessage()

func (*MsgMTStakingDelegateResponse) Reset

func (m *MsgMTStakingDelegateResponse) Reset()

func (*MsgMTStakingDelegateResponse) Size

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

func (*MsgMTStakingDelegateResponse) String

func (*MsgMTStakingDelegateResponse) Unmarshal

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

func (*MsgMTStakingDelegateResponse) XXX_DiscardUnknown

func (m *MsgMTStakingDelegateResponse) XXX_DiscardUnknown()

func (*MsgMTStakingDelegateResponse) XXX_Marshal

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

func (*MsgMTStakingDelegateResponse) XXX_Merge

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

func (*MsgMTStakingDelegateResponse) XXX_Size

func (m *MsgMTStakingDelegateResponse) XXX_Size() int

func (*MsgMTStakingDelegateResponse) XXX_Unmarshal

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

type MsgMTStakingUndelegate

type MsgMTStakingUndelegate 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"`
}

MsgMTStakingUndelegate define the msg undelegate to a agent request type.

func (*MsgMTStakingUndelegate) Descriptor

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

func (MsgMTStakingUndelegate) GetSigners

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

GetSigners implements sdk.Msg.

func (*MsgMTStakingUndelegate) Marshal

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

func (*MsgMTStakingUndelegate) MarshalTo

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

func (*MsgMTStakingUndelegate) MarshalToSizedBuffer

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

func (*MsgMTStakingUndelegate) ProtoMessage

func (*MsgMTStakingUndelegate) ProtoMessage()

func (*MsgMTStakingUndelegate) Reset

func (m *MsgMTStakingUndelegate) Reset()

func (*MsgMTStakingUndelegate) Size

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

func (*MsgMTStakingUndelegate) String

func (m *MsgMTStakingUndelegate) String() string

func (*MsgMTStakingUndelegate) Unmarshal

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

func (MsgMTStakingUndelegate) ValidateBasic

func (msg MsgMTStakingUndelegate) ValidateBasic() error

ValidateBasic implements sdk.Msg.

func (*MsgMTStakingUndelegate) XXX_DiscardUnknown

func (m *MsgMTStakingUndelegate) XXX_DiscardUnknown()

func (*MsgMTStakingUndelegate) XXX_Marshal

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

func (*MsgMTStakingUndelegate) XXX_Merge

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

func (*MsgMTStakingUndelegate) XXX_Size

func (m *MsgMTStakingUndelegate) XXX_Size() int

func (*MsgMTStakingUndelegate) XXX_Unmarshal

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

type MsgMTStakingUndelegateResponse

type MsgMTStakingUndelegateResponse struct {
	CompletionTime time.Time  `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	Amount         types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgMTStakingUndelegateResponse define the msg undelegate to a agent response type.

func (*MsgMTStakingUndelegateResponse) Descriptor

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

func (*MsgMTStakingUndelegateResponse) Marshal

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

func (*MsgMTStakingUndelegateResponse) MarshalTo

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

func (*MsgMTStakingUndelegateResponse) MarshalToSizedBuffer

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

func (*MsgMTStakingUndelegateResponse) ProtoMessage

func (*MsgMTStakingUndelegateResponse) ProtoMessage()

func (*MsgMTStakingUndelegateResponse) Reset

func (m *MsgMTStakingUndelegateResponse) Reset()

func (*MsgMTStakingUndelegateResponse) Size

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

func (*MsgMTStakingUndelegateResponse) String

func (*MsgMTStakingUndelegateResponse) Unmarshal

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

func (*MsgMTStakingUndelegateResponse) XXX_DiscardUnknown

func (m *MsgMTStakingUndelegateResponse) XXX_DiscardUnknown()

func (*MsgMTStakingUndelegateResponse) XXX_Marshal

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

func (*MsgMTStakingUndelegateResponse) XXX_Merge

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

func (*MsgMTStakingUndelegateResponse) XXX_Size

func (m *MsgMTStakingUndelegateResponse) XXX_Size() int

func (*MsgMTStakingUndelegateResponse) XXX_Unmarshal

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

type MsgMTStakingWithdrawReward

type MsgMTStakingWithdrawReward struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	AgentAddress     string `protobuf:"bytes,2,opt,name=agent_address,json=agentAddress,proto3" json:"agent_address,omitempty"`
}

MsgMTStakingUndelegateResponse define the msg withdraw reward from agent request type.

func (*MsgMTStakingWithdrawReward) Descriptor

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

func (MsgMTStakingWithdrawReward) GetSigners

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

GetSigners implements sdk.Msg.

func (*MsgMTStakingWithdrawReward) Marshal

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

func (*MsgMTStakingWithdrawReward) MarshalTo

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

func (*MsgMTStakingWithdrawReward) MarshalToSizedBuffer

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

func (*MsgMTStakingWithdrawReward) ProtoMessage

func (*MsgMTStakingWithdrawReward) ProtoMessage()

func (*MsgMTStakingWithdrawReward) Reset

func (m *MsgMTStakingWithdrawReward) Reset()

func (*MsgMTStakingWithdrawReward) Size

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

func (*MsgMTStakingWithdrawReward) String

func (m *MsgMTStakingWithdrawReward) String() string

func (*MsgMTStakingWithdrawReward) Unmarshal

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

func (MsgMTStakingWithdrawReward) ValidateBasic

func (msg MsgMTStakingWithdrawReward) ValidateBasic() error

ValidateBasic implements sdk.Msg.

func (*MsgMTStakingWithdrawReward) XXX_DiscardUnknown

func (m *MsgMTStakingWithdrawReward) XXX_DiscardUnknown()

func (*MsgMTStakingWithdrawReward) XXX_Marshal

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

func (*MsgMTStakingWithdrawReward) XXX_Merge

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

func (*MsgMTStakingWithdrawReward) XXX_Size

func (m *MsgMTStakingWithdrawReward) XXX_Size() int

func (*MsgMTStakingWithdrawReward) XXX_Unmarshal

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

type MsgMTStakingWithdrawRewardResponse

type MsgMTStakingWithdrawRewardResponse struct {
}

MsgMTStakingUndelegateResponse define the msg withdraw reward from agent response type.

func (*MsgMTStakingWithdrawRewardResponse) Descriptor

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

func (*MsgMTStakingWithdrawRewardResponse) Marshal

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

func (*MsgMTStakingWithdrawRewardResponse) MarshalTo

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

func (*MsgMTStakingWithdrawRewardResponse) MarshalToSizedBuffer

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

func (*MsgMTStakingWithdrawRewardResponse) ProtoMessage

func (*MsgMTStakingWithdrawRewardResponse) ProtoMessage()

func (*MsgMTStakingWithdrawRewardResponse) Reset

func (*MsgMTStakingWithdrawRewardResponse) Size

func (*MsgMTStakingWithdrawRewardResponse) String

func (*MsgMTStakingWithdrawRewardResponse) Unmarshal

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

func (*MsgMTStakingWithdrawRewardResponse) XXX_DiscardUnknown

func (m *MsgMTStakingWithdrawRewardResponse) XXX_DiscardUnknown()

func (*MsgMTStakingWithdrawRewardResponse) XXX_Marshal

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

func (*MsgMTStakingWithdrawRewardResponse) XXX_Merge

func (*MsgMTStakingWithdrawRewardResponse) XXX_Size

func (*MsgMTStakingWithdrawRewardResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// MTStakingDelegate define a method for delegate token to a agent.
	// The agent will delegate it to a validator.
	MTStakingDelegate(context.Context, *MsgMTStakingDelegate) (*MsgMTStakingDelegateResponse, error)
	// MTStakingUndelegate define a mathod for undelegate shares from a agent.
	MTStakingUndelegate(context.Context, *MsgMTStakingUndelegate) (*MsgMTStakingUndelegateResponse, error)
	// MTStakingUndelegate define a mathod for delegator withdraw staking reward from agent.
	MTStakingWithdrawReward(context.Context, *MsgMTStakingWithdrawReward) (*MsgMTStakingWithdrawRewardResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAgentDelegationsRequest

type QueryAgentDelegationsRequest struct {
	AgentAddr  string             `protobuf:"bytes,1,opt,name=agent_addr,json=agentAddr,proto3" json:"agent_addr,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentDelegationsRequest is request type for query delegates of the agent.

func (*QueryAgentDelegationsRequest) Descriptor

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

func (*QueryAgentDelegationsRequest) Marshal

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

func (*QueryAgentDelegationsRequest) MarshalTo

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

func (*QueryAgentDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryAgentDelegationsRequest) ProtoMessage

func (*QueryAgentDelegationsRequest) ProtoMessage()

func (*QueryAgentDelegationsRequest) Reset

func (m *QueryAgentDelegationsRequest) Reset()

func (*QueryAgentDelegationsRequest) Size

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

func (*QueryAgentDelegationsRequest) String

func (*QueryAgentDelegationsRequest) Unmarshal

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

func (*QueryAgentDelegationsRequest) XXX_DiscardUnknown

func (m *QueryAgentDelegationsRequest) XXX_DiscardUnknown()

func (*QueryAgentDelegationsRequest) XXX_Marshal

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

func (*QueryAgentDelegationsRequest) XXX_Merge

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

func (*QueryAgentDelegationsRequest) XXX_Size

func (m *QueryAgentDelegationsRequest) XXX_Size() int

func (*QueryAgentDelegationsRequest) XXX_Unmarshal

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

type QueryAgentDelegationsResponse

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

QueryAgentDelegationsResponse is response type for query delegates of the agent.

func (*QueryAgentDelegationsResponse) Descriptor

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

func (*QueryAgentDelegationsResponse) GetDelegations

func (m *QueryAgentDelegationsResponse) GetDelegations() []MTStakingDelegation

func (*QueryAgentDelegationsResponse) GetPagination

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

func (*QueryAgentDelegationsResponse) Marshal

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

func (*QueryAgentDelegationsResponse) MarshalTo

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

func (*QueryAgentDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryAgentDelegationsResponse) ProtoMessage

func (*QueryAgentDelegationsResponse) ProtoMessage()

func (*QueryAgentDelegationsResponse) Reset

func (m *QueryAgentDelegationsResponse) Reset()

func (*QueryAgentDelegationsResponse) Size

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

func (*QueryAgentDelegationsResponse) String

func (*QueryAgentDelegationsResponse) Unmarshal

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

func (*QueryAgentDelegationsResponse) XXX_DiscardUnknown

func (m *QueryAgentDelegationsResponse) XXX_DiscardUnknown()

func (*QueryAgentDelegationsResponse) XXX_Marshal

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

func (*QueryAgentDelegationsResponse) XXX_Merge

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

func (*QueryAgentDelegationsResponse) XXX_Size

func (m *QueryAgentDelegationsResponse) XXX_Size() int

func (*QueryAgentDelegationsResponse) XXX_Unmarshal

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

type QueryAgentRequest

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

QueryAgentsRequest is request type for query agent by denom and validator RPC method.

func (*QueryAgentRequest) Descriptor

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

func (*QueryAgentRequest) Marshal

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

func (*QueryAgentRequest) MarshalTo

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

func (*QueryAgentRequest) MarshalToSizedBuffer

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

func (*QueryAgentRequest) ProtoMessage

func (*QueryAgentRequest) ProtoMessage()

func (*QueryAgentRequest) Reset

func (m *QueryAgentRequest) Reset()

func (*QueryAgentRequest) Size

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

func (*QueryAgentRequest) String

func (m *QueryAgentRequest) String() string

func (*QueryAgentRequest) Unmarshal

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

func (*QueryAgentRequest) XXX_DiscardUnknown

func (m *QueryAgentRequest) XXX_DiscardUnknown()

func (*QueryAgentRequest) XXX_Marshal

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

func (*QueryAgentRequest) XXX_Merge

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

func (*QueryAgentRequest) XXX_Size

func (m *QueryAgentRequest) XXX_Size() int

func (*QueryAgentRequest) XXX_Unmarshal

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

type QueryAgentResponse

type QueryAgentResponse struct {
	Agent MTStakingAgent `protobuf:"bytes,1,opt,name=Agent,proto3" json:"Agent"`
}

QueryAgentsRequest is response type for query agent by address RPC method.

func (*QueryAgentResponse) Descriptor

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

func (*QueryAgentResponse) GetAgent

func (m *QueryAgentResponse) GetAgent() MTStakingAgent

func (*QueryAgentResponse) Marshal

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

func (*QueryAgentResponse) MarshalTo

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

func (*QueryAgentResponse) MarshalToSizedBuffer

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

func (*QueryAgentResponse) ProtoMessage

func (*QueryAgentResponse) ProtoMessage()

func (*QueryAgentResponse) Reset

func (m *QueryAgentResponse) Reset()

func (*QueryAgentResponse) Size

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

func (*QueryAgentResponse) String

func (m *QueryAgentResponse) String() string

func (*QueryAgentResponse) Unmarshal

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

func (*QueryAgentResponse) XXX_DiscardUnknown

func (m *QueryAgentResponse) XXX_DiscardUnknown()

func (*QueryAgentResponse) XXX_Marshal

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

func (*QueryAgentResponse) XXX_Merge

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

func (*QueryAgentResponse) XXX_Size

func (m *QueryAgentResponse) XXX_Size() int

func (*QueryAgentResponse) XXX_Unmarshal

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

type QueryAgentsRequest

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

QueryAgentsRequest is request type for Query/Agents RPC method.

func (*QueryAgentsRequest) Descriptor

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

func (*QueryAgentsRequest) Marshal

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

func (*QueryAgentsRequest) MarshalTo

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

func (*QueryAgentsRequest) MarshalToSizedBuffer

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

func (*QueryAgentsRequest) ProtoMessage

func (*QueryAgentsRequest) ProtoMessage()

func (*QueryAgentsRequest) Reset

func (m *QueryAgentsRequest) Reset()

func (*QueryAgentsRequest) Size

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

func (*QueryAgentsRequest) String

func (m *QueryAgentsRequest) String() string

func (*QueryAgentsRequest) Unmarshal

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

func (*QueryAgentsRequest) XXX_DiscardUnknown

func (m *QueryAgentsRequest) XXX_DiscardUnknown()

func (*QueryAgentsRequest) XXX_Marshal

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

func (*QueryAgentsRequest) XXX_Merge

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

func (*QueryAgentsRequest) XXX_Size

func (m *QueryAgentsRequest) XXX_Size() int

func (*QueryAgentsRequest) XXX_Unmarshal

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

type QueryAgentsResponse

type QueryAgentsResponse struct {
	Agents     []MTStakingAgent    `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentsResponse is response type for Query/Agents RPC method.

func (*QueryAgentsResponse) Descriptor

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

func (*QueryAgentsResponse) GetAgents

func (m *QueryAgentsResponse) GetAgents() []MTStakingAgent

func (*QueryAgentsResponse) GetPagination

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

func (*QueryAgentsResponse) Marshal

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

func (*QueryAgentsResponse) MarshalTo

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

func (*QueryAgentsResponse) MarshalToSizedBuffer

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

func (*QueryAgentsResponse) ProtoMessage

func (*QueryAgentsResponse) ProtoMessage()

func (*QueryAgentsResponse) Reset

func (m *QueryAgentsResponse) Reset()

func (*QueryAgentsResponse) Size

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

func (*QueryAgentsResponse) String

func (m *QueryAgentsResponse) String() string

func (*QueryAgentsResponse) Unmarshal

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

func (*QueryAgentsResponse) XXX_DiscardUnknown

func (m *QueryAgentsResponse) XXX_DiscardUnknown()

func (*QueryAgentsResponse) XXX_Marshal

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

func (*QueryAgentsResponse) XXX_Merge

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

func (*QueryAgentsResponse) XXX_Size

func (m *QueryAgentsResponse) XXX_Size() int

func (*QueryAgentsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Agents queries all Agents.
	Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error)
	// Agents queries the  agent by the address.
	Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error)
	// DenomAgents queries agents by the staking denom.
	DenomAgents(ctx context.Context, in *QueryDenomAgentsRequest, opts ...grpc.CallOption) (*QueryDenomAgentsResponse, error)
	// AgentDelegations queries delegate info for given agent.
	AgentDelegations(ctx context.Context, in *QueryAgentDelegationsRequest, opts ...grpc.CallOption) (*QueryAgentDelegationsResponse, error)
	// AgentUnbondingDelegations queries unbonding delegations of a agent.
	AgentUnbondingDelegations(ctx context.Context, in *AgentUnbondingDelegationsRequest, opts ...grpc.CallOption) (*AgentUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given agent delegator pair.
	Delegation(ctx context.Context, in *DelegationRequest, opts ...grpc.CallOption) (*DelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given Agent delegator pair.
	UnbondingDelegation(ctx context.Context, in *UnbondingDelegationRequest, opts ...grpc.CallOption) (*UnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(ctx context.Context, in *DelegatorDelegationsRequest, opts ...grpc.CallOption) (*DelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
	DelegatorUnbondingDelegations(ctx context.Context, in *DelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*DelegatorUnbondingDelegationsResponse, error)
	// DelegatorAgents queries all agents info for given delegator
	DelegatorAgents(ctx context.Context, in *DelegatorAgentsRequest, opts ...grpc.CallOption) (*DelegatorAgentsResponse, 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 QueryDenomAgentsRequest

type QueryDenomAgentsRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomAgentsRequest is request type for query agents by the staking denom.

func (*QueryDenomAgentsRequest) Descriptor

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

func (*QueryDenomAgentsRequest) Marshal

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

func (*QueryDenomAgentsRequest) MarshalTo

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

func (*QueryDenomAgentsRequest) MarshalToSizedBuffer

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

func (*QueryDenomAgentsRequest) ProtoMessage

func (*QueryDenomAgentsRequest) ProtoMessage()

func (*QueryDenomAgentsRequest) Reset

func (m *QueryDenomAgentsRequest) Reset()

func (*QueryDenomAgentsRequest) Size

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

func (*QueryDenomAgentsRequest) String

func (m *QueryDenomAgentsRequest) String() string

func (*QueryDenomAgentsRequest) Unmarshal

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

func (*QueryDenomAgentsRequest) XXX_DiscardUnknown

func (m *QueryDenomAgentsRequest) XXX_DiscardUnknown()

func (*QueryDenomAgentsRequest) XXX_Marshal

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

func (*QueryDenomAgentsRequest) XXX_Merge

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

func (*QueryDenomAgentsRequest) XXX_Size

func (m *QueryDenomAgentsRequest) XXX_Size() int

func (*QueryDenomAgentsRequest) XXX_Unmarshal

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

type QueryDenomAgentsResponse

type QueryDenomAgentsResponse struct {
	Agents     []MTStakingAgent    `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomAgentsResponse is response type for query agents by the staking denom.

func (*QueryDenomAgentsResponse) Descriptor

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

func (*QueryDenomAgentsResponse) GetAgents

func (m *QueryDenomAgentsResponse) GetAgents() []MTStakingAgent

func (*QueryDenomAgentsResponse) GetPagination

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

func (*QueryDenomAgentsResponse) Marshal

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

func (*QueryDenomAgentsResponse) MarshalTo

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

func (*QueryDenomAgentsResponse) MarshalToSizedBuffer

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

func (*QueryDenomAgentsResponse) ProtoMessage

func (*QueryDenomAgentsResponse) ProtoMessage()

func (*QueryDenomAgentsResponse) Reset

func (m *QueryDenomAgentsResponse) Reset()

func (*QueryDenomAgentsResponse) Size

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

func (*QueryDenomAgentsResponse) String

func (m *QueryDenomAgentsResponse) String() string

func (*QueryDenomAgentsResponse) Unmarshal

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

func (*QueryDenomAgentsResponse) XXX_DiscardUnknown

func (m *QueryDenomAgentsResponse) XXX_DiscardUnknown()

func (*QueryDenomAgentsResponse) XXX_Marshal

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

func (*QueryDenomAgentsResponse) XXX_Merge

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

func (*QueryDenomAgentsResponse) XXX_Size

func (m *QueryDenomAgentsResponse) XXX_Size() int

func (*QueryDenomAgentsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Agents queries all Agents.
	Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error)
	// Agents queries the  agent by the address.
	Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error)
	// DenomAgents queries agents by the staking denom.
	DenomAgents(context.Context, *QueryDenomAgentsRequest) (*QueryDenomAgentsResponse, error)
	// AgentDelegations queries delegate info for given agent.
	AgentDelegations(context.Context, *QueryAgentDelegationsRequest) (*QueryAgentDelegationsResponse, error)
	// AgentUnbondingDelegations queries unbonding delegations of a agent.
	AgentUnbondingDelegations(context.Context, *AgentUnbondingDelegationsRequest) (*AgentUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given agent delegator pair.
	Delegation(context.Context, *DelegationRequest) (*DelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given Agent delegator pair.
	UnbondingDelegation(context.Context, *UnbondingDelegationRequest) (*UnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(context.Context, *DelegatorDelegationsRequest) (*DelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
	DelegatorUnbondingDelegations(context.Context, *DelegatorUnbondingDelegationsRequest) (*DelegatorUnbondingDelegationsResponse, error)
	// DelegatorAgents queries all agents info for given delegator
	DelegatorAgents(context.Context, *DelegatorAgentsRequest) (*DelegatorAgentsResponse, error)
}

QueryServer is the server API for Query service.

type RemoveNonNativeTokenToStakingProposal

type RemoveNonNativeTokenToStakingProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// A list of denoms representing the denom of the non-native token to be removed from staking
	Denoms []string `protobuf:"bytes,3,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

RemoveNonNativeTokenToStakingProposal defines a proposal to remove a non-native token from participating in Proof-of-Stake (POS) staking.

func (*RemoveNonNativeTokenToStakingProposal) Descriptor

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

func (*RemoveNonNativeTokenToStakingProposal) Marshal

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

func (*RemoveNonNativeTokenToStakingProposal) MarshalTo

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

func (*RemoveNonNativeTokenToStakingProposal) MarshalToSizedBuffer

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

func (*RemoveNonNativeTokenToStakingProposal) ProtoMessage

func (*RemoveNonNativeTokenToStakingProposal) ProtoMessage()

func (*RemoveNonNativeTokenToStakingProposal) Reset

func (*RemoveNonNativeTokenToStakingProposal) Size

func (*RemoveNonNativeTokenToStakingProposal) String

func (*RemoveNonNativeTokenToStakingProposal) Unmarshal

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

func (*RemoveNonNativeTokenToStakingProposal) XXX_DiscardUnknown

func (m *RemoveNonNativeTokenToStakingProposal) XXX_DiscardUnknown()

func (*RemoveNonNativeTokenToStakingProposal) XXX_Marshal

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

func (*RemoveNonNativeTokenToStakingProposal) XXX_Merge

func (*RemoveNonNativeTokenToStakingProposal) XXX_Size

func (*RemoveNonNativeTokenToStakingProposal) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
	GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error)
	Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
	UnbondingTime(ctx sdk.Context) time.Duration
	GetParams(ctx sdk.Context) stakingtypes.Params
	Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec) (math.Int, error)

	IterateBondedValidatorsByPower(ctx sdk.Context, fn func(int64, stakingtypes.ValidatorI) bool)
	TotalBondedTokens(ctx sdk.Context) math.Int
	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(int64, stakingtypes.DelegationI) bool)
}

type UnbondingDelegationRequest

type UnbondingDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// agent_addr defines the agent address to query for.
	AgentAddr string `protobuf:"bytes,2,opt,name=agent_addr,json=agentAddr,proto3" json:"agent_addr,omitempty"`
}

UnbondingDelegationRequest is request type for query unbonding delegation for the delegator agent pair.

func (*UnbondingDelegationRequest) Descriptor

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

func (*UnbondingDelegationRequest) Marshal

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

func (*UnbondingDelegationRequest) MarshalTo

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

func (*UnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*UnbondingDelegationRequest) ProtoMessage

func (*UnbondingDelegationRequest) ProtoMessage()

func (*UnbondingDelegationRequest) Reset

func (m *UnbondingDelegationRequest) Reset()

func (*UnbondingDelegationRequest) Size

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

func (*UnbondingDelegationRequest) String

func (m *UnbondingDelegationRequest) String() string

func (*UnbondingDelegationRequest) Unmarshal

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

func (*UnbondingDelegationRequest) XXX_DiscardUnknown

func (m *UnbondingDelegationRequest) XXX_DiscardUnknown()

func (*UnbondingDelegationRequest) XXX_Marshal

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

func (*UnbondingDelegationRequest) XXX_Merge

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

func (*UnbondingDelegationRequest) XXX_Size

func (m *UnbondingDelegationRequest) XXX_Size() int

func (*UnbondingDelegationRequest) XXX_Unmarshal

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

type UnbondingDelegationResponse

type UnbondingDelegationResponse struct {
	Unbond MTStakingUnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
}

UnbondingDelegationRequest is response type for query unbonding delegation for the delegator agent pair.

func (*UnbondingDelegationResponse) Descriptor

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

func (*UnbondingDelegationResponse) GetUnbond

func (*UnbondingDelegationResponse) Marshal

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

func (*UnbondingDelegationResponse) MarshalTo

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

func (*UnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*UnbondingDelegationResponse) ProtoMessage

func (*UnbondingDelegationResponse) ProtoMessage()

func (*UnbondingDelegationResponse) Reset

func (m *UnbondingDelegationResponse) Reset()

func (*UnbondingDelegationResponse) Size

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

func (*UnbondingDelegationResponse) String

func (m *UnbondingDelegationResponse) String() string

func (*UnbondingDelegationResponse) Unmarshal

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

func (*UnbondingDelegationResponse) XXX_DiscardUnknown

func (m *UnbondingDelegationResponse) XXX_DiscardUnknown()

func (*UnbondingDelegationResponse) XXX_Marshal

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

func (*UnbondingDelegationResponse) XXX_Merge

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

func (*UnbondingDelegationResponse) XXX_Size

func (m *UnbondingDelegationResponse) XXX_Size() int

func (*UnbondingDelegationResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) MTStakingDelegate

func (*UnimplementedMsgServer) MTStakingUndelegate

func (*UnimplementedMsgServer) MTStakingWithdrawReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Agent

func (*UnimplementedQueryServer) AgentDelegations

func (*UnimplementedQueryServer) AgentUnbondingDelegations

func (*UnimplementedQueryServer) Agents

func (*UnimplementedQueryServer) Delegation

func (*UnimplementedQueryServer) DelegatorAgents

func (*UnimplementedQueryServer) DelegatorDelegations

func (*UnimplementedQueryServer) DenomAgents

func (*UnimplementedQueryServer) UnbondingDelegation

Jump to

Keyboard shortcuts

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