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: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the restaking coordinator module
	ModuleName = "restakingCoordinator"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// RouterKey is the msg router key for the restaking coordinator module
	RouterKey = ModuleName

	QuerierRoute = ModuleName

	StringListSplitter = "|"
)
View Source
const (
	ConsumerAdditionProposalPrefix byte = iota

	ConsumerClientIDPrefix

	ConsumerClientIDToTransferChannelPrefix

	ConsumerValidatorListPrefix

	ConsumerValidatorPrefix

	ConsumerRestakingTokens

	ConsumerRewardTokens

	ConsumerClientToChannelPrefix

	OperatorPrefix

	OperatorIDByteKey

	PortByteKey

	DelegationRecordPrefix

	DelegationStartingInfoPrefix

	UndelegationRecordPrefix

	WithdrawRecordPrefix

	OperatorLastRewardPeriodPrefix

	OperatorHistoricalRewardPrefix

	ConsumerTransferRewardPrefix

	UnbondingDelegationKey

	DelegationPrefix

	IBCCallbackPrefix

	UnbondingIDKey

	UnbondingIndexKey

	UnbondingQueueKey
)
View Source
const ProposalTypeConsumerAddition = "ConsumerAddition"

Variables

View Source
var (
	ErrInvalidLengthCoordinator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCoordinator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCoordinator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrAdditionalProposalNotFound = errorsmod.Register(ModuleName, 1, "add consumer proposal not found")
	ErrParams                     = errorsmod.Register(ModuleName, 2, "parameters of msg are't match")
	ErrUnknownConsumer            = errorsmod.Register(ModuleName, 3, "")
	ErrNotExistedValidator        = errorsmod.Register(ModuleName, 4, "")
	ErrUnsupportedRestakingToken  = errorsmod.Register(ModuleName, 5, "The consumer do't support the restaking token")
	ErrUnknownOperator            = errorsmod.Register(ModuleName, 6, "")
	ErrInsufficientDelegation     = errorsmod.Register(ModuleName, 7, "")
	ErrIBCCallbackNotExisted      = errorsmod.Register(ModuleName, 8, "")
	ErrUnknownIBCCallbackType     = errorsmod.Register(ModuleName, 9, "")
	ErrIBCCallback                = errorsmod.Register(ModuleName, 10, "Some error was generated in process ibc callback handler")
	ErrMismatchStatus             = errorsmod.Register(ModuleName, 11, "")
	ErrNoUnbondingDelegation      = errorsmod.Register(ModuleName, 12, "")
)
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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var KeyTemplateClient = []byte("TemplateClient")

Functions

func ConsumerAdditionProposalKey

func ConsumerAdditionProposalKey(chainID string) []byte

func ConsumerClientIDKey

func ConsumerClientIDKey(chainID string) []byte

func ConsumerClientIDToTransferKey

func ConsumerClientIDToTransferKey(chainID string) []byte

func ConsumerClientToChannelKey

func ConsumerClientToChannelKey(clientID string) []byte

func ConsumerRestakingTokensKey

func ConsumerRestakingTokensKey(chainID string) []byte

func ConsumerRewardTokensKey

func ConsumerRewardTokensKey(chainID string) []byte

func ConsumerTransferRewardKey

func ConsumerTransferRewardKey(destChannel, destPort string, sequence uint64) []byte

func ConsumerValidatorKey

func ConsumerValidatorKey(chainID string, valAddr string) []byte

func ConsumerValidatorListKey

func ConsumerValidatorListKey(chainID string) []byte

func DelegationKey

func DelegationKey(ownerAccAddr, operatorAccAddr sdk.AccAddress) []byte

func DelegationRecordKey

func DelegationRecordKey(blockHeight uint64, operatorAccAddr sdk.AccAddress) []byte

func DelegationStartingInfoKey

func DelegationStartingInfoKey(delegatorAccAddr, operatorAccAddr sdk.AccAddress) []byte

func GetUBDKey

func GetUBDKey(delAddr sdk.AccAddress, opAddr sdk.AccAddress) []byte

func GetUBDsKey

func GetUBDsKey(delAddr sdk.AccAddress) []byte

func GetUnbondingDelegationTimeKey

func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte

func GetUnbondingIndexKey

func GetUnbondingIndexKey(id uint64) []byte

func IBCCallbackKey

func IBCCallbackKey(channelID, portID string, seq uint64) []byte

func OperatorHistoricalRewardKey

func OperatorHistoricalRewardKey(period uint64, operatorAccAddr sdk.AccAddress) []byte

func OperatorKey

func OperatorKey(operatorAccAddr sdk.AccAddress) []byte

func OperatorLastRewardPeriodKey

func OperatorLastRewardPeriodKey(operatorAccAddr sdk.AccAddress) []byte

func OperatorWithdrawRecordKey

func OperatorWithdrawRecordKey(blockHeight uint64, operatorAccAddr sdk.AccAddress) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func PortKey

func PortKey() []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.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)

func UndelegationRecordKey

func UndelegationRecordKey(blockHeight uint64, operatorAccAddr sdk.AccAddress) []byte

Types

type CallType

type CallType = uint32
const (
	InterChainDelegateCall CallType = iota
	InterChainUndelegateCall
	InterChainWithdrawRewardCall
)

type ConsumerAdditionProposal

type ConsumerAdditionProposal struct {
	// The title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// The description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The id of consumer chain.
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Unbonding period for the consumer,
	UnbondingPeriod time.Duration `protobuf:"bytes,4,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"`
	// Sent restaking related IBC packets will timeout after this duration
	TimeoutPeriod time.Duration `protobuf:"bytes,5,opt,name=timeout_period,json=timeoutPeriod,proto3,stdduration" json:"timeout_period"`
	// Sent transfer related IBC packets will timeout after this duration
	TransferTimeoutPeriod time.Duration `` /* 128-byte string literal not displayed */
	// Tokens accepted by the Consumer chain as restaking tokens.
	RestakingTokens []string `protobuf:"bytes,7,rep,name=restaking_tokens,json=restakingTokens,proto3" json:"restaking_tokens,omitempty"`
	// Tokens are rewards for restaking on the consumer platform.
	RewardTokens []string `protobuf:"bytes,8,rep,name=reward_tokens,json=rewardTokens,proto3" json:"reward_tokens,omitempty"`
	// ibc transfer channel id.
	TransferChannelId string `protobuf:"bytes,9,opt,name=transfer_channel_id,json=transferChannelId,proto3" json:"transfer_channel_id,omitempty"`
}

ConsumerAdditionProposal is a governance proposal on the coordinator chain to resgister a new consumer chain.

func (*ConsumerAdditionProposal) Descriptor

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

func (*ConsumerAdditionProposal) GetDescription

func (cap *ConsumerAdditionProposal) GetDescription() string

GetDescription implements v1beta1.Content

func (*ConsumerAdditionProposal) GetTitle

func (cap *ConsumerAdditionProposal) GetTitle() string

GetTitle implements v1beta1.Content

func (*ConsumerAdditionProposal) Marshal

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

func (*ConsumerAdditionProposal) MarshalTo

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

func (*ConsumerAdditionProposal) MarshalToSizedBuffer

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

func (*ConsumerAdditionProposal) ProposalRoute

func (*ConsumerAdditionProposal) ProposalRoute() string

ProposalRoute implements v1beta1.Content

func (*ConsumerAdditionProposal) ProposalType

func (*ConsumerAdditionProposal) ProposalType() string

ProposalType implements v1beta1.Content

func (*ConsumerAdditionProposal) ProtoMessage

func (*ConsumerAdditionProposal) ProtoMessage()

func (*ConsumerAdditionProposal) Reset

func (m *ConsumerAdditionProposal) Reset()

func (*ConsumerAdditionProposal) Size

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

func (*ConsumerAdditionProposal) String

func (m *ConsumerAdditionProposal) String() string

func (*ConsumerAdditionProposal) Unmarshal

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

func (*ConsumerAdditionProposal) ValidateBasic

func (*ConsumerAdditionProposal) ValidateBasic() error

ValidateBasic implements v1beta1.Content

func (*ConsumerAdditionProposal) XXX_DiscardUnknown

func (m *ConsumerAdditionProposal) XXX_DiscardUnknown()

func (*ConsumerAdditionProposal) XXX_Marshal

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

func (*ConsumerAdditionProposal) XXX_Merge

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

func (*ConsumerAdditionProposal) XXX_Size

func (m *ConsumerAdditionProposal) XXX_Size() int

func (*ConsumerAdditionProposal) XXX_Unmarshal

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

type ConsumerValidator

type ConsumerValidator struct {
	// validator_address is the address of the validator being slashed.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

ConsumerValidator tracks the validators on the consumer.

func (*ConsumerValidator) Descriptor

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

func (*ConsumerValidator) GetAddress

func (m *ConsumerValidator) GetAddress() string

func (*ConsumerValidator) Marshal

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

func (*ConsumerValidator) MarshalTo

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

func (*ConsumerValidator) MarshalToSizedBuffer

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

func (*ConsumerValidator) ProtoMessage

func (*ConsumerValidator) ProtoMessage()

func (*ConsumerValidator) Reset

func (m *ConsumerValidator) Reset()

func (*ConsumerValidator) Size

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

func (*ConsumerValidator) String

func (m *ConsumerValidator) String() string

func (*ConsumerValidator) Unmarshal

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

func (*ConsumerValidator) XXX_DiscardUnknown

func (m *ConsumerValidator) XXX_DiscardUnknown()

func (*ConsumerValidator) XXX_Marshal

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

func (*ConsumerValidator) XXX_Merge

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

func (*ConsumerValidator) XXX_Size

func (m *ConsumerValidator) XXX_Size() int

func (*ConsumerValidator) XXX_Unmarshal

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

type DOPair

type DOPair struct {
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	Operator  string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

DVPair is struct that just has a delegator-opeator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DOPair can be used to construct the key to getting an UnbondingDelegation from state.

func (*DOPair) Descriptor

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

func (*DOPair) GetDelegator

func (m *DOPair) GetDelegator() string

func (*DOPair) GetOperator

func (m *DOPair) GetOperator() string

func (*DOPair) Marshal

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

func (*DOPair) MarshalTo

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

func (*DOPair) MarshalToSizedBuffer

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

func (*DOPair) ProtoMessage

func (*DOPair) ProtoMessage()

func (*DOPair) Reset

func (m *DOPair) Reset()

func (*DOPair) Size

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

func (*DOPair) String

func (m *DOPair) String() string

func (*DOPair) Unmarshal

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

func (*DOPair) XXX_DiscardUnknown

func (m *DOPair) XXX_DiscardUnknown()

func (*DOPair) XXX_Marshal

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

func (*DOPair) XXX_Merge

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

func (*DOPair) XXX_Size

func (m *DOPair) XXX_Size() int

func (*DOPair) XXX_Unmarshal

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

type DOPairs

type DOPairs struct {
	Pairs []DOPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs"`
}

DVPairs defines an array of DOPair objects.

func (*DOPairs) Descriptor

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

func (*DOPairs) GetPairs

func (m *DOPairs) GetPairs() []DOPair

func (*DOPairs) Marshal

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

func (*DOPairs) MarshalTo

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

func (*DOPairs) MarshalToSizedBuffer

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

func (*DOPairs) ProtoMessage

func (*DOPairs) ProtoMessage()

func (*DOPairs) Reset

func (m *DOPairs) Reset()

func (*DOPairs) Size

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

func (*DOPairs) String

func (m *DOPairs) String() string

func (*DOPairs) Unmarshal

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

func (*DOPairs) XXX_DiscardUnknown

func (m *DOPairs) XXX_DiscardUnknown()

func (*DOPairs) XXX_Marshal

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

func (*DOPairs) XXX_Merge

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

func (*DOPairs) XXX_Size

func (m *DOPairs) XXX_Size() int

func (*DOPairs) XXX_Unmarshal

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

type Dec

type Dec = sdk.Dec

type Delegation

type Delegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// opeator_address is the bech32-encoded address of the opeator.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// shares define the delegation shares received.
	Shares Int `protobuf:"bytes,3,opt,name=shares,proto3,customtype=Int" json:"shares"`
}

Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one opeator.

func (*Delegation) Descriptor

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

func (*Delegation) Marshal

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

func (*Delegation) MarshalTo

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

func (*Delegation) MarshalToSizedBuffer

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

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

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

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

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

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

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

func (*Delegation) XXX_Merge

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

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

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

type DelegationStartInfo

type DelegationStartInfo struct {
	PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty"`
	Shares         Int    `protobuf:"bytes,2,opt,name=shares,proto3,customtype=Int" json:"shares"`
	Height         uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

DelegationStartInfo

func (*DelegationStartInfo) Descriptor

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

func (*DelegationStartInfo) Marshal

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

func (*DelegationStartInfo) MarshalTo

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

func (*DelegationStartInfo) MarshalToSizedBuffer

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

func (*DelegationStartInfo) ProtoMessage

func (*DelegationStartInfo) ProtoMessage()

func (*DelegationStartInfo) Reset

func (m *DelegationStartInfo) Reset()

func (*DelegationStartInfo) Size

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

func (*DelegationStartInfo) String

func (m *DelegationStartInfo) String() string

func (*DelegationStartInfo) Unmarshal

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

func (*DelegationStartInfo) XXX_DiscardUnknown

func (m *DelegationStartInfo) XXX_DiscardUnknown()

func (*DelegationStartInfo) XXX_Marshal

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

func (*DelegationStartInfo) XXX_Merge

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

func (*DelegationStartInfo) XXX_Size

func (m *DelegationStartInfo) XXX_Size() int

func (*DelegationStartInfo) XXX_Unmarshal

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

type DelegationStartingInfo

type DelegationStartingInfo struct {
	PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty"`
	Stake          Int    `protobuf:"bytes,2,opt,name=stake,proto3,customtype=Int" json:"stake"`
	Height         uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

DelegationStartingInfo represent a delegation info at starting.

func (*DelegationStartingInfo) Descriptor

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

func (*DelegationStartingInfo) GetHeight

func (m *DelegationStartingInfo) GetHeight() uint64

func (*DelegationStartingInfo) GetPreviousPeriod

func (m *DelegationStartingInfo) GetPreviousPeriod() uint64

func (*DelegationStartingInfo) Marshal

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

func (*DelegationStartingInfo) MarshalTo

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

func (*DelegationStartingInfo) MarshalToSizedBuffer

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

func (*DelegationStartingInfo) ProtoMessage

func (*DelegationStartingInfo) ProtoMessage()

func (*DelegationStartingInfo) Reset

func (m *DelegationStartingInfo) Reset()

func (*DelegationStartingInfo) Size

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

func (*DelegationStartingInfo) String

func (m *DelegationStartingInfo) String() string

func (*DelegationStartingInfo) Unmarshal

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

func (*DelegationStartingInfo) XXX_DiscardUnknown

func (m *DelegationStartingInfo) XXX_DiscardUnknown()

func (*DelegationStartingInfo) XXX_Marshal

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

func (*DelegationStartingInfo) XXX_Merge

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

func (*DelegationStartingInfo) XXX_Size

func (m *DelegationStartingInfo) XXX_Size() int

func (*DelegationStartingInfo) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
}

GenesisState defines the restaking consumer module's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type IBCCallback

type IBCCallback struct {
	// The type of the callback operation.
	CallType CallType `protobuf:"varint,1,opt,name=call_type,json=callType,proto3,customtype=CallType" json:"call_type"`
	// The arguments of the callback, serialized as a string.
	Args string `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
}

IBCCallback represents a callback for an IBC operation.

func (*IBCCallback) Descriptor

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

func (*IBCCallback) GetArgs

func (m *IBCCallback) GetArgs() string

func (*IBCCallback) Marshal

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

func (*IBCCallback) MarshalTo

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

func (*IBCCallback) MarshalToSizedBuffer

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

func (*IBCCallback) ProtoMessage

func (*IBCCallback) ProtoMessage()

func (*IBCCallback) Reset

func (m *IBCCallback) Reset()

func (*IBCCallback) Size

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

func (*IBCCallback) String

func (m *IBCCallback) String() string

func (*IBCCallback) Unmarshal

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

func (*IBCCallback) XXX_DiscardUnknown

func (m *IBCCallback) XXX_DiscardUnknown()

func (*IBCCallback) XXX_Marshal

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

func (*IBCCallback) XXX_Merge

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

func (*IBCCallback) XXX_Size

func (m *IBCCallback) XXX_Size() int

func (*IBCCallback) XXX_Unmarshal

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

type Int

type Int = sdkmath.Int

type MsgClient

type MsgClient interface {
	// RegisterOperator define a method for register a operator.
	RegisterOperator(ctx context.Context, in *MsgRegisterOperatorRequest, opts ...grpc.CallOption) (*MsgRegisterOperatorResponse, error)
	// Delegate define a method for staker delegate to a opeator.
	Delegate(ctx context.Context, in *MsgDelegateRequest, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	// Undelegate define a method for staker undelegate from a opeator.
	Undelegate(ctx context.Context, in *MsgUndelegateRequest, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// Undelegate define a method for staker withdraw rewards from a opeator.
	WithdrawReward(ctx context.Context, in *MsgWithdrawRewardRequest, opts ...grpc.CallOption) (*MsgWithdrawRewardResponse, 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 MsgDelegateRequest

type MsgDelegateRequest struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	OperatorAddress  string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	Amount           Int    `protobuf:"bytes,3,opt,name=amount,proto3,customtype=Int" json:"amount"`
}

MsgDelegateRequset define the msg for staker delegate to the operator request type

func (*MsgDelegateRequest) Descriptor

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

func (*MsgDelegateRequest) GetDelegatorAddress

func (m *MsgDelegateRequest) GetDelegatorAddress() string

func (*MsgDelegateRequest) GetOperatorAddress

func (m *MsgDelegateRequest) GetOperatorAddress() string

func (*MsgDelegateRequest) GetSigners

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

GetSigners implements types.Msg.

func (*MsgDelegateRequest) Marshal

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

func (*MsgDelegateRequest) MarshalTo

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

func (*MsgDelegateRequest) MarshalToSizedBuffer

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

func (*MsgDelegateRequest) ProtoMessage

func (*MsgDelegateRequest) ProtoMessage()

func (*MsgDelegateRequest) Reset

func (m *MsgDelegateRequest) Reset()

func (*MsgDelegateRequest) Size

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

func (*MsgDelegateRequest) String

func (m *MsgDelegateRequest) String() string

func (*MsgDelegateRequest) Unmarshal

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

func (*MsgDelegateRequest) ValidateBasic

func (msg *MsgDelegateRequest) ValidateBasic() error

ValidateBasic implements types.Msg.

func (*MsgDelegateRequest) XXX_DiscardUnknown

func (m *MsgDelegateRequest) XXX_DiscardUnknown()

func (*MsgDelegateRequest) XXX_Marshal

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

func (*MsgDelegateRequest) XXX_Merge

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

func (*MsgDelegateRequest) XXX_Size

func (m *MsgDelegateRequest) XXX_Size() int

func (*MsgDelegateRequest) XXX_Unmarshal

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

type MsgDelegateResponse

type MsgDelegateResponse struct {
}

MsgDelegateRequset define the msg for staker delegate to the operator response type

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 MsgRegisterOperatorRequest

type MsgRegisterOperatorRequest struct {
	ConsumerChainIDs           []string `protobuf:"bytes,1,rep,name=ConsumerChainIDs,proto3" json:"ConsumerChainIDs,omitempty"`
	ConsumerValidatorAddresses []string `` /* 141-byte string literal not displayed */
	RestakingDenom             string   `protobuf:"bytes,3,opt,name=restaking_denom,json=restakingDenom,proto3" json:"restaking_denom,omitempty"`
	Sender                     string   `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgRegisterOperator define the msg to register a operator request type.

func (*MsgRegisterOperatorRequest) Descriptor

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

func (*MsgRegisterOperatorRequest) GetSigners

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

GetSigners implements types.Msg.

func (*MsgRegisterOperatorRequest) Marshal

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

func (*MsgRegisterOperatorRequest) MarshalTo

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

func (*MsgRegisterOperatorRequest) MarshalToSizedBuffer

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

func (*MsgRegisterOperatorRequest) ProtoMessage

func (*MsgRegisterOperatorRequest) ProtoMessage()

func (*MsgRegisterOperatorRequest) Reset

func (m *MsgRegisterOperatorRequest) Reset()

func (*MsgRegisterOperatorRequest) Size

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

func (*MsgRegisterOperatorRequest) String

func (m *MsgRegisterOperatorRequest) String() string

func (*MsgRegisterOperatorRequest) Unmarshal

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

func (*MsgRegisterOperatorRequest) ValidateBasic

func (msg *MsgRegisterOperatorRequest) ValidateBasic() error

ValidateBasic implements types.Msg.

func (*MsgRegisterOperatorRequest) XXX_DiscardUnknown

func (m *MsgRegisterOperatorRequest) XXX_DiscardUnknown()

func (*MsgRegisterOperatorRequest) XXX_Marshal

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

func (*MsgRegisterOperatorRequest) XXX_Merge

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

func (*MsgRegisterOperatorRequest) XXX_Size

func (m *MsgRegisterOperatorRequest) XXX_Size() int

func (*MsgRegisterOperatorRequest) XXX_Unmarshal

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

type MsgRegisterOperatorResponse

type MsgRegisterOperatorResponse struct {
}

MsgRegisterOperatorResponse define the msg to register a operator response type

func (*MsgRegisterOperatorResponse) Descriptor

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

func (*MsgRegisterOperatorResponse) Marshal

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

func (*MsgRegisterOperatorResponse) MarshalTo

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

func (*MsgRegisterOperatorResponse) MarshalToSizedBuffer

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

func (*MsgRegisterOperatorResponse) ProtoMessage

func (*MsgRegisterOperatorResponse) ProtoMessage()

func (*MsgRegisterOperatorResponse) Reset

func (m *MsgRegisterOperatorResponse) Reset()

func (*MsgRegisterOperatorResponse) Size

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

func (*MsgRegisterOperatorResponse) String

func (m *MsgRegisterOperatorResponse) String() string

func (*MsgRegisterOperatorResponse) Unmarshal

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

func (*MsgRegisterOperatorResponse) XXX_DiscardUnknown

func (m *MsgRegisterOperatorResponse) XXX_DiscardUnknown()

func (*MsgRegisterOperatorResponse) XXX_Marshal

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

func (*MsgRegisterOperatorResponse) XXX_Merge

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

func (*MsgRegisterOperatorResponse) XXX_Size

func (m *MsgRegisterOperatorResponse) XXX_Size() int

func (*MsgRegisterOperatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterOperator define a method for register a operator.
	RegisterOperator(context.Context, *MsgRegisterOperatorRequest) (*MsgRegisterOperatorResponse, error)
	// Delegate define a method for staker delegate to a opeator.
	Delegate(context.Context, *MsgDelegateRequest) (*MsgDelegateResponse, error)
	// Undelegate define a method for staker undelegate from a opeator.
	Undelegate(context.Context, *MsgUndelegateRequest) (*MsgUndelegateResponse, error)
	// Undelegate define a method for staker withdraw rewards from a opeator.
	WithdrawReward(context.Context, *MsgWithdrawRewardRequest) (*MsgWithdrawRewardResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUndelegateRequest

type MsgUndelegateRequest struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	OperatorAddress  string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	Amount           Int    `protobuf:"bytes,3,opt,name=amount,proto3,customtype=Int" json:"amount"`
}

MsgUndelegateRequset define the msg for staker undelegate from the operator resquest type

func (*MsgUndelegateRequest) Descriptor

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

func (*MsgUndelegateRequest) GetDelegatorAddress

func (m *MsgUndelegateRequest) GetDelegatorAddress() string

func (*MsgUndelegateRequest) GetOperatorAddress

func (m *MsgUndelegateRequest) GetOperatorAddress() string

func (*MsgUndelegateRequest) GetSigners

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

GetSigners implements types.Msg.

func (*MsgUndelegateRequest) Marshal

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

func (*MsgUndelegateRequest) MarshalTo

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

func (*MsgUndelegateRequest) MarshalToSizedBuffer

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

func (*MsgUndelegateRequest) ProtoMessage

func (*MsgUndelegateRequest) ProtoMessage()

func (*MsgUndelegateRequest) Reset

func (m *MsgUndelegateRequest) Reset()

func (*MsgUndelegateRequest) Size

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

func (*MsgUndelegateRequest) String

func (m *MsgUndelegateRequest) String() string

func (*MsgUndelegateRequest) Unmarshal

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

func (*MsgUndelegateRequest) ValidateBasic

func (msg *MsgUndelegateRequest) ValidateBasic() error

ValidateBasic implements types.Msg.

func (*MsgUndelegateRequest) XXX_DiscardUnknown

func (m *MsgUndelegateRequest) XXX_DiscardUnknown()

func (*MsgUndelegateRequest) XXX_Marshal

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

func (*MsgUndelegateRequest) XXX_Merge

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

func (*MsgUndelegateRequest) XXX_Size

func (m *MsgUndelegateRequest) XXX_Size() int

func (*MsgUndelegateRequest) XXX_Unmarshal

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

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
}

MsgUndelegateRequset define the msg for staker undelegate from the operator response type

func (*MsgUndelegateResponse) Descriptor

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

func (*MsgUndelegateResponse) Marshal

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

func (*MsgUndelegateResponse) MarshalTo

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

func (*MsgUndelegateResponse) MarshalToSizedBuffer

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

func (*MsgUndelegateResponse) ProtoMessage

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size

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

func (*MsgUndelegateResponse) String

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal

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

func (*MsgUndelegateResponse) XXX_DiscardUnknown

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal

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

func (*MsgUndelegateResponse) XXX_Merge

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

func (*MsgUndelegateResponse) XXX_Size

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal

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

type MsgWithdrawRewardRequest

type MsgWithdrawRewardRequest struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	OperatorAddress  string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

MsgWithdrawRewardRequst define the msg for staker withdraw the restaking rewards request type

func (*MsgWithdrawRewardRequest) Descriptor

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

func (*MsgWithdrawRewardRequest) GetDelegatorAddress

func (m *MsgWithdrawRewardRequest) GetDelegatorAddress() string

func (*MsgWithdrawRewardRequest) GetOperatorAddress

func (m *MsgWithdrawRewardRequest) GetOperatorAddress() string

func (*MsgWithdrawRewardRequest) GetSigners

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

GetSigners implements types.Msg.

func (*MsgWithdrawRewardRequest) Marshal

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

func (*MsgWithdrawRewardRequest) MarshalTo

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

func (*MsgWithdrawRewardRequest) MarshalToSizedBuffer

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

func (*MsgWithdrawRewardRequest) ProtoMessage

func (*MsgWithdrawRewardRequest) ProtoMessage()

func (*MsgWithdrawRewardRequest) Reset

func (m *MsgWithdrawRewardRequest) Reset()

func (*MsgWithdrawRewardRequest) Size

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

func (*MsgWithdrawRewardRequest) String

func (m *MsgWithdrawRewardRequest) String() string

func (*MsgWithdrawRewardRequest) Unmarshal

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

func (*MsgWithdrawRewardRequest) ValidateBasic

func (*MsgWithdrawRewardRequest) ValidateBasic() error

ValidateBasic implements types.Msg.

func (*MsgWithdrawRewardRequest) XXX_DiscardUnknown

func (m *MsgWithdrawRewardRequest) XXX_DiscardUnknown()

func (*MsgWithdrawRewardRequest) XXX_Marshal

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

func (*MsgWithdrawRewardRequest) XXX_Merge

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

func (*MsgWithdrawRewardRequest) XXX_Size

func (m *MsgWithdrawRewardRequest) XXX_Size() int

func (*MsgWithdrawRewardRequest) XXX_Unmarshal

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

type MsgWithdrawRewardResponse

type MsgWithdrawRewardResponse struct {
}

MsgWithdrawRewardResponse define the msg for staker withdraw the restaking reward response type

func (*MsgWithdrawRewardResponse) Descriptor

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

func (*MsgWithdrawRewardResponse) Marshal

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

func (*MsgWithdrawRewardResponse) MarshalTo

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

func (*MsgWithdrawRewardResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawRewardResponse) ProtoMessage

func (*MsgWithdrawRewardResponse) ProtoMessage()

func (*MsgWithdrawRewardResponse) Reset

func (m *MsgWithdrawRewardResponse) Reset()

func (*MsgWithdrawRewardResponse) Size

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

func (*MsgWithdrawRewardResponse) String

func (m *MsgWithdrawRewardResponse) String() string

func (*MsgWithdrawRewardResponse) Unmarshal

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

func (*MsgWithdrawRewardResponse) XXX_DiscardUnknown

func (m *MsgWithdrawRewardResponse) XXX_DiscardUnknown()

func (*MsgWithdrawRewardResponse) XXX_Marshal

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

func (*MsgWithdrawRewardResponse) XXX_Merge

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

func (*MsgWithdrawRewardResponse) XXX_Size

func (m *MsgWithdrawRewardResponse) XXX_Size() int

func (*MsgWithdrawRewardResponse) XXX_Unmarshal

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

type OperatedValidator

type OperatedValidator struct {
	// the chain id of consumer.
	ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// the chain id of consumer.
	ClientID string `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"`
	// validator_address is the address of the validator being slashed.
	ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

OperatedValidator represent the validator in opeator.

func (*OperatedValidator) Descriptor

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

func (*OperatedValidator) GetChainID

func (m *OperatedValidator) GetChainID() string

func (*OperatedValidator) GetClientID

func (m *OperatedValidator) GetClientID() string

func (*OperatedValidator) GetValidatorAddress

func (m *OperatedValidator) GetValidatorAddress() string

func (*OperatedValidator) Marshal

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

func (*OperatedValidator) MarshalTo

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

func (*OperatedValidator) MarshalToSizedBuffer

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

func (*OperatedValidator) ProtoMessage

func (*OperatedValidator) ProtoMessage()

func (*OperatedValidator) Reset

func (m *OperatedValidator) Reset()

func (*OperatedValidator) Size

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

func (*OperatedValidator) String

func (m *OperatedValidator) String() string

func (*OperatedValidator) Unmarshal

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

func (*OperatedValidator) XXX_DiscardUnknown

func (m *OperatedValidator) XXX_DiscardUnknown()

func (*OperatedValidator) XXX_Marshal

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

func (*OperatedValidator) XXX_Merge

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

func (*OperatedValidator) XXX_Size

func (m *OperatedValidator) XXX_Size() int

func (*OperatedValidator) XXX_Unmarshal

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

type Operator

type Operator struct {
	// The denomination of the tokens being restaked.
	RestakingDenom string `protobuf:"bytes,1,opt,name=restaking_denom,json=restakingDenom,proto3" json:"restaking_denom,omitempty"`
	// The operator's address.
	OperatorAddress string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// The amount of tokens that have been restaked.
	RestakedAmount Int `protobuf:"bytes,3,opt,name=restaked_amount,json=restakedAmount,proto3,customtype=Int" json:"restaked_amount"`
	// The total shares representing the sum of all user stakes delegated to the operator.
	Shares Int `protobuf:"bytes,4,opt,name=shares,proto3,customtype=Int" json:"shares"`
	// The list of operated validators associated with the operator.
	OperatedValidators []OperatedValidator `protobuf:"bytes,5,rep,name=operated_validators,json=operatedValidators,proto3" json:"operated_validators"`
	// The owner's address of the operator. The owner has the authority to update
	// the operated validators for the operator.
	Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
}

Operator represents an operator who restakes tokens on the consumer platform. Operator can restake on multiple consumer chains, but each chain can only select one validator.

func (*Operator) Descriptor

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

func (*Operator) GetOperatedValidators

func (m *Operator) GetOperatedValidators() []OperatedValidator

func (*Operator) GetOperatorAddress

func (m *Operator) GetOperatorAddress() string

func (*Operator) GetOwner

func (m *Operator) GetOwner() string

func (*Operator) GetRestakingDenom

func (m *Operator) GetRestakingDenom() string

func (*Operator) Marshal

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

func (*Operator) MarshalTo

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

func (*Operator) MarshalToSizedBuffer

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

func (*Operator) ProtoMessage

func (*Operator) ProtoMessage()

func (*Operator) Reset

func (m *Operator) Reset()

func (*Operator) Size

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

func (*Operator) String

func (m *Operator) String() string

func (Operator) TokensFromShares

func (o Operator) TokensFromShares(shares math.Int) math.Int

func (*Operator) Unmarshal

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

func (*Operator) XXX_DiscardUnknown

func (m *Operator) XXX_DiscardUnknown()

func (*Operator) XXX_Marshal

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

func (*Operator) XXX_Merge

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

func (*Operator) XXX_Size

func (m *Operator) XXX_Size() int

func (*Operator) XXX_Unmarshal

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

type OperatorCurrentRewards

type OperatorCurrentRewards struct {
	Rewards []types.DecCoin `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
	Period  uint64          `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
}

OperatorCurrentRewards

func (*OperatorCurrentRewards) Descriptor

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

func (*OperatorCurrentRewards) Marshal

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

func (*OperatorCurrentRewards) MarshalTo

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

func (*OperatorCurrentRewards) MarshalToSizedBuffer

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

func (*OperatorCurrentRewards) ProtoMessage

func (*OperatorCurrentRewards) ProtoMessage()

func (*OperatorCurrentRewards) Reset

func (m *OperatorCurrentRewards) Reset()

func (*OperatorCurrentRewards) Size

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

func (*OperatorCurrentRewards) String

func (m *OperatorCurrentRewards) String() string

func (*OperatorCurrentRewards) Unmarshal

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

func (*OperatorCurrentRewards) XXX_DiscardUnknown

func (m *OperatorCurrentRewards) XXX_DiscardUnknown()

func (*OperatorCurrentRewards) XXX_Marshal

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

func (*OperatorCurrentRewards) XXX_Merge

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

func (*OperatorCurrentRewards) XXX_Size

func (m *OperatorCurrentRewards) XXX_Size() int

func (*OperatorCurrentRewards) XXX_Unmarshal

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

type OperatorDelegationRecord

type OperatorDelegationRecord struct {
	// The operator's address.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// The amount of tokens delegated to the operator in this record.
	DelegationAmount Int `protobuf:"bytes,2,opt,name=delegation_amount,json=delegationAmount,proto3,customtype=Int" json:"delegation_amount"`
	// The status of the operator delegation.
	Status OperatorDelegationRecordStatus `protobuf:"varint,3,opt,name=status,proto3,customtype=OperatorDelegationRecordStatus" json:"status"`
	// The list of IBC callback IDs associated with the delegation record.
	IbcCallbackIds []string `protobuf:"bytes,4,rep,name=ibc_callback_ids,json=ibcCallbackIds,proto3" json:"ibc_callback_ids,omitempty"`
}

OperatorDelegationRecord represents a record of operator delegation in a epoch. It will be deleted once the coordinator receives acknowledgments for all IBC calls.

func (*OperatorDelegationRecord) Descriptor

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

func (*OperatorDelegationRecord) GetIbcCallbackIds

func (m *OperatorDelegationRecord) GetIbcCallbackIds() []string

func (*OperatorDelegationRecord) GetOperatorAddress

func (m *OperatorDelegationRecord) GetOperatorAddress() string

func (*OperatorDelegationRecord) Marshal

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

func (*OperatorDelegationRecord) MarshalTo

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

func (*OperatorDelegationRecord) MarshalToSizedBuffer

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

func (*OperatorDelegationRecord) ProtoMessage

func (*OperatorDelegationRecord) ProtoMessage()

func (*OperatorDelegationRecord) Reset

func (m *OperatorDelegationRecord) Reset()

func (*OperatorDelegationRecord) Size

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

func (*OperatorDelegationRecord) String

func (m *OperatorDelegationRecord) String() string

func (*OperatorDelegationRecord) Unmarshal

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

func (*OperatorDelegationRecord) XXX_DiscardUnknown

func (m *OperatorDelegationRecord) XXX_DiscardUnknown()

func (*OperatorDelegationRecord) XXX_Marshal

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

func (*OperatorDelegationRecord) XXX_Merge

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

func (*OperatorDelegationRecord) XXX_Size

func (m *OperatorDelegationRecord) XXX_Size() int

func (*OperatorDelegationRecord) XXX_Unmarshal

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

type OperatorDelegationRecordStatus

type OperatorDelegationRecordStatus = uint32
const (
	OpDelRecordPending OperatorDelegationRecordStatus = iota
	OpDelRecordProcessing
)

type OperatorHistoricalRewards

type OperatorHistoricalRewards struct {
	CumulativeRewardRatios []types.DecCoin `protobuf:"bytes,1,rep,name=cumulative_reward_ratios,json=cumulativeRewardRatios,proto3" json:"cumulative_reward_ratios"`
}

OperatorHistoricalRewards

func (*OperatorHistoricalRewards) Descriptor

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

func (*OperatorHistoricalRewards) Marshal

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

func (*OperatorHistoricalRewards) MarshalTo

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

func (*OperatorHistoricalRewards) MarshalToSizedBuffer

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

func (*OperatorHistoricalRewards) ProtoMessage

func (*OperatorHistoricalRewards) ProtoMessage()

func (*OperatorHistoricalRewards) Reset

func (m *OperatorHistoricalRewards) Reset()

func (*OperatorHistoricalRewards) Size

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

func (*OperatorHistoricalRewards) String

func (m *OperatorHistoricalRewards) String() string

func (*OperatorHistoricalRewards) Unmarshal

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

func (*OperatorHistoricalRewards) XXX_DiscardUnknown

func (m *OperatorHistoricalRewards) XXX_DiscardUnknown()

func (*OperatorHistoricalRewards) XXX_Marshal

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

func (*OperatorHistoricalRewards) XXX_Merge

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

func (*OperatorHistoricalRewards) XXX_Size

func (m *OperatorHistoricalRewards) XXX_Size() int

func (*OperatorHistoricalRewards) XXX_Unmarshal

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

type OperatorUndelegationRecord

type OperatorUndelegationRecord struct {
	// The operator's address.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// The amount of tokens undelegated from the operator.
	UndelegationAmount Int `protobuf:"bytes,2,opt,name=undelegation_amount,json=undelegationAmount,proto3,customtype=Int" json:"undelegation_amount"`
	// The status of the operator undelegation.
	Status OperatorUndelegationRecordStatus `protobuf:"varint,3,opt,name=status,proto3,customtype=OperatorUndelegationRecordStatus" json:"status"`
	// The list of IBC callback IDs associated with the undelegation record.
	IbcCallbackIds []string `protobuf:"bytes,4,rep,name=ibc_callback_ids,json=ibcCallbackIds,proto3" json:"ibc_callback_ids,omitempty"`
	// The list of unbonding entry IDs associated with the undelegation record.
	UnbondingEntryIds []uint64 `protobuf:"varint,5,rep,packed,name=unbonding_entry_ids,json=unbondingEntryIds,proto3" json:"unbonding_entry_ids,omitempty"`
	// The latest complete time of the undelegation record. Each consumer chain may
	// have a different undelegation complete time, the latest one is chosen as the completion time.
	LatestCompleteTime int64 `protobuf:"varint,6,opt,name=latest_complete_time,json=latestCompleteTime,proto3" json:"latest_complete_time,omitempty"`
}

OperatorUndelegationRecord represents a record of operator undelegation in a epoch.

func (*OperatorUndelegationRecord) Descriptor

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

func (*OperatorUndelegationRecord) GetIbcCallbackIds

func (m *OperatorUndelegationRecord) GetIbcCallbackIds() []string

func (*OperatorUndelegationRecord) GetLatestCompleteTime

func (m *OperatorUndelegationRecord) GetLatestCompleteTime() int64

func (*OperatorUndelegationRecord) GetOperatorAddress

func (m *OperatorUndelegationRecord) GetOperatorAddress() string

func (*OperatorUndelegationRecord) GetUnbondingEntryIds

func (m *OperatorUndelegationRecord) GetUnbondingEntryIds() []uint64

func (*OperatorUndelegationRecord) Marshal

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

func (*OperatorUndelegationRecord) MarshalTo

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

func (*OperatorUndelegationRecord) MarshalToSizedBuffer

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

func (*OperatorUndelegationRecord) ProtoMessage

func (*OperatorUndelegationRecord) ProtoMessage()

func (*OperatorUndelegationRecord) Reset

func (m *OperatorUndelegationRecord) Reset()

func (*OperatorUndelegationRecord) Size

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

func (*OperatorUndelegationRecord) String

func (m *OperatorUndelegationRecord) String() string

func (*OperatorUndelegationRecord) Unmarshal

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

func (*OperatorUndelegationRecord) XXX_DiscardUnknown

func (m *OperatorUndelegationRecord) XXX_DiscardUnknown()

func (*OperatorUndelegationRecord) XXX_Marshal

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

func (*OperatorUndelegationRecord) XXX_Merge

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

func (*OperatorUndelegationRecord) XXX_Size

func (m *OperatorUndelegationRecord) XXX_Size() int

func (*OperatorUndelegationRecord) XXX_Unmarshal

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

type OperatorUndelegationRecordStatus

type OperatorUndelegationRecordStatus = uint32
const (
	OpUndelegationRecordPending OperatorUndelegationRecordStatus = iota
	OpUndelegationRecordProcessing
)

type OperatorWithdrawRewardRecord

type OperatorWithdrawRewardRecord struct {
	// The operator's address.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// The list of IBC callback IDs associated with the undelegation record.
	IbcCallbackIds []string `protobuf:"bytes,2,rep,name=ibc_callback_ids,json=ibcCallbackIds,proto3" json:"ibc_callback_ids,omitempty"`
	TransferIds    []string `protobuf:"bytes,3,rep,name=transfer_ids,json=transferIds,proto3" json:"transfer_ids,omitempty"`
	// withdraw -> done then ibc transfer
	Statues []OperatorWithdrawRewardRecordStatus `protobuf:"varint,4,rep,packed,name=statues,proto3,customtype=OperatorWithdrawRewardRecordStatus" json:"statues"`
	Rewards []types.Coin                         `protobuf:"bytes,5,rep,name=rewards,proto3" json:"rewards"`
}

WithdrawRewardRecord represents a record of operator withdraw reward from all consumer in a epoch.

func (*OperatorWithdrawRewardRecord) Descriptor

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

func (*OperatorWithdrawRewardRecord) GetIbcCallbackIds

func (m *OperatorWithdrawRewardRecord) GetIbcCallbackIds() []string

func (*OperatorWithdrawRewardRecord) GetOperatorAddress

func (m *OperatorWithdrawRewardRecord) GetOperatorAddress() string

func (*OperatorWithdrawRewardRecord) GetRewards

func (m *OperatorWithdrawRewardRecord) GetRewards() []types.Coin

func (*OperatorWithdrawRewardRecord) GetTransferIds

func (m *OperatorWithdrawRewardRecord) GetTransferIds() []string

func (*OperatorWithdrawRewardRecord) Marshal

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

func (*OperatorWithdrawRewardRecord) MarshalTo

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

func (*OperatorWithdrawRewardRecord) MarshalToSizedBuffer

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

func (*OperatorWithdrawRewardRecord) ProtoMessage

func (*OperatorWithdrawRewardRecord) ProtoMessage()

func (*OperatorWithdrawRewardRecord) Reset

func (m *OperatorWithdrawRewardRecord) Reset()

func (*OperatorWithdrawRewardRecord) Size

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

func (*OperatorWithdrawRewardRecord) String

func (*OperatorWithdrawRewardRecord) Unmarshal

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

func (*OperatorWithdrawRewardRecord) XXX_DiscardUnknown

func (m *OperatorWithdrawRewardRecord) XXX_DiscardUnknown()

func (*OperatorWithdrawRewardRecord) XXX_Marshal

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

func (*OperatorWithdrawRewardRecord) XXX_Merge

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

func (*OperatorWithdrawRewardRecord) XXX_Size

func (m *OperatorWithdrawRewardRecord) XXX_Size() int

func (*OperatorWithdrawRewardRecord) XXX_Unmarshal

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

type OperatorWithdrawRewardRecordStatus

type OperatorWithdrawRewardRecordStatus = uint32
const (
	OpWithdrawingReward OperatorWithdrawRewardRecordStatus = iota
	OpTransferringReward
	OpTransferredReward
)

type Params

type Params struct {
	// template_client maybe unused
	TemplateClient *TendermintLightClientState `` /* 141-byte string literal not displayed */
}

Params maybe unused

func NewParams

func NewParams(
	cs *ibctm.ClientState,
) Params

NewParams creates new provider parameters with provided arguments

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 implements 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 (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Operators queries all operators.
	Operators(ctx context.Context, in *QueryOperatorsRequest, opts ...grpc.CallOption) (*QueryOperatorsResponse, error)
	// Operator queries the operator by the address.
	Operator(ctx context.Context, in *QueryOperatorRequest, opts ...grpc.CallOption) (*QueryOperatorResponse, error)
	// OperatorDelegations queries delegate info for given operator.
	OperatorDelegations(ctx context.Context, in *QueryOperatorDelegationsRequest, opts ...grpc.CallOption) (*QueryOperatorDelegationsResponse, error)
	// OperatorUnbondingDelegations queries unbonding delegations of a operator.
	OperatorUnbondingDelegations(ctx context.Context, in *QueryOperatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryOperatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given operator delegator pair.
	Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given operator delegator pair.
	UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
	DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// DelegatorOperators queries all Operators info for given delegator
	DelegatorOperators(ctx context.Context, in *QueryDelegatorOperatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorOperatorsResponse, 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 QueryDelegationRequest

type QueryDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// operator_addr defines the agent address to query for.
	OperatorAddress string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

QueryDelegationRequest is request type for queries delegate info for given operator delegator pair.

func (*QueryDelegationRequest) Descriptor

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

func (*QueryDelegationRequest) Marshal

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

func (*QueryDelegationRequest) MarshalTo

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

func (*QueryDelegationRequest) MarshalToSizedBuffer

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

func (*QueryDelegationRequest) ProtoMessage

func (*QueryDelegationRequest) ProtoMessage()

func (*QueryDelegationRequest) Reset

func (m *QueryDelegationRequest) Reset()

func (*QueryDelegationRequest) Size

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

func (*QueryDelegationRequest) String

func (m *QueryDelegationRequest) String() string

func (*QueryDelegationRequest) Unmarshal

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

func (*QueryDelegationRequest) XXX_DiscardUnknown

func (m *QueryDelegationRequest) XXX_DiscardUnknown()

func (*QueryDelegationRequest) XXX_Marshal

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

func (*QueryDelegationRequest) XXX_Merge

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

func (*QueryDelegationRequest) XXX_Size

func (m *QueryDelegationRequest) XXX_Size() int

func (*QueryDelegationRequest) XXX_Unmarshal

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

type QueryDelegationResponse

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

QueryDelegationResponse is response type for queries delegate info for given operator delegator pair.

func (*QueryDelegationResponse) Descriptor

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

func (*QueryDelegationResponse) GetBalance

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

func (*QueryDelegationResponse) GetDelegation

func (m *QueryDelegationResponse) GetDelegation() Delegation

func (*QueryDelegationResponse) Marshal

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

func (*QueryDelegationResponse) MarshalTo

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

func (*QueryDelegationResponse) MarshalToSizedBuffer

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

func (*QueryDelegationResponse) ProtoMessage

func (*QueryDelegationResponse) ProtoMessage()

func (*QueryDelegationResponse) Reset

func (m *QueryDelegationResponse) Reset()

func (*QueryDelegationResponse) Size

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

func (*QueryDelegationResponse) String

func (m *QueryDelegationResponse) String() string

func (*QueryDelegationResponse) Unmarshal

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

func (*QueryDelegationResponse) XXX_DiscardUnknown

func (m *QueryDelegationResponse) XXX_DiscardUnknown()

func (*QueryDelegationResponse) XXX_Marshal

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

func (*QueryDelegationResponse) XXX_Merge

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

func (*QueryDelegationResponse) XXX_Size

func (m *QueryDelegationResponse) XXX_Size() int

func (*QueryDelegationResponse) XXX_Unmarshal

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

type QueryDelegatorDelegationsRequest

type QueryDelegatorDelegationsRequest 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 (*QueryDelegatorDelegationsRequest) Descriptor

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

func (*QueryDelegatorDelegationsRequest) Marshal

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

func (*QueryDelegatorDelegationsRequest) MarshalTo

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

func (*QueryDelegatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorDelegationsRequest) ProtoMessage

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) Reset

func (*QueryDelegatorDelegationsRequest) Size

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

func (*QueryDelegatorDelegationsRequest) String

func (*QueryDelegatorDelegationsRequest) Unmarshal

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

func (*QueryDelegatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorDelegationsRequest) XXX_Merge

func (*QueryDelegatorDelegationsRequest) XXX_Size

func (m *QueryDelegatorDelegationsRequest) XXX_Size() int

func (*QueryDelegatorDelegationsRequest) XXX_Unmarshal

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

type QueryDelegatorDelegationsResponse

type QueryDelegatorDelegationsResponse struct {
	// delegation_responses defines all the delegations' info of a delegator.
	Delegations []Delegation        `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 (*QueryDelegatorDelegationsResponse) Descriptor

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

func (*QueryDelegatorDelegationsResponse) GetDelegations

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

func (*QueryDelegatorDelegationsResponse) GetPagination

func (*QueryDelegatorDelegationsResponse) Marshal

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

func (*QueryDelegatorDelegationsResponse) MarshalTo

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

func (*QueryDelegatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorDelegationsResponse) ProtoMessage

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) Reset

func (*QueryDelegatorDelegationsResponse) Size

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

func (*QueryDelegatorDelegationsResponse) String

func (*QueryDelegatorDelegationsResponse) Unmarshal

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

func (*QueryDelegatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorDelegationsResponse) XXX_Merge

func (*QueryDelegatorDelegationsResponse) XXX_Size

func (m *QueryDelegatorDelegationsResponse) XXX_Size() int

func (*QueryDelegatorDelegationsResponse) XXX_Unmarshal

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

type QueryDelegatorOperatorsRequest

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

QueryDelegatorOperatorsRequest is request type for query all operators info for given delegator

func (*QueryDelegatorOperatorsRequest) Descriptor

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

func (*QueryDelegatorOperatorsRequest) Marshal

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

func (*QueryDelegatorOperatorsRequest) MarshalTo

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

func (*QueryDelegatorOperatorsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorsRequest) ProtoMessage

func (*QueryDelegatorOperatorsRequest) ProtoMessage()

func (*QueryDelegatorOperatorsRequest) Reset

func (m *QueryDelegatorOperatorsRequest) Reset()

func (*QueryDelegatorOperatorsRequest) Size

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

func (*QueryDelegatorOperatorsRequest) String

func (*QueryDelegatorOperatorsRequest) Unmarshal

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

func (*QueryDelegatorOperatorsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorsRequest) XXX_Marshal

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

func (*QueryDelegatorOperatorsRequest) XXX_Merge

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

func (*QueryDelegatorOperatorsRequest) XXX_Size

func (m *QueryDelegatorOperatorsRequest) XXX_Size() int

func (*QueryDelegatorOperatorsRequest) XXX_Unmarshal

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

type QueryDelegatorOperatorsResponse

type QueryDelegatorOperatorsResponse struct {
	Operators  []Operator          `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorsResponse is response type for query all operators info for given delegator

func (*QueryDelegatorOperatorsResponse) Descriptor

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

func (*QueryDelegatorOperatorsResponse) GetOperators

func (m *QueryDelegatorOperatorsResponse) GetOperators() []Operator

func (*QueryDelegatorOperatorsResponse) GetPagination

func (*QueryDelegatorOperatorsResponse) Marshal

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

func (*QueryDelegatorOperatorsResponse) MarshalTo

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

func (*QueryDelegatorOperatorsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorsResponse) ProtoMessage

func (*QueryDelegatorOperatorsResponse) ProtoMessage()

func (*QueryDelegatorOperatorsResponse) Reset

func (*QueryDelegatorOperatorsResponse) Size

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

func (*QueryDelegatorOperatorsResponse) String

func (*QueryDelegatorOperatorsResponse) Unmarshal

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

func (*QueryDelegatorOperatorsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorsResponse) XXX_Marshal

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

func (*QueryDelegatorOperatorsResponse) XXX_Merge

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

func (*QueryDelegatorOperatorsResponse) XXX_Size

func (m *QueryDelegatorOperatorsResponse) XXX_Size() int

func (*QueryDelegatorOperatorsResponse) XXX_Unmarshal

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

type QueryDelegatorUnbondingDelegationsRequest

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

QueryDelegatorUnbondingDelegationsRequest is request type for query unbonding delegations of the delegator

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryDelegatorUnbondingDelegationsRequest) Marshal

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryDelegatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsRequest) Reset

func (*QueryDelegatorUnbondingDelegationsRequest) Size

func (*QueryDelegatorUnbondingDelegationsRequest) String

func (*QueryDelegatorUnbondingDelegationsRequest) Unmarshal

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Size

func (*QueryDelegatorUnbondingDelegationsRequest) XXX_Unmarshal

type QueryDelegatorUnbondingDelegationsResponse

type QueryDelegatorUnbondingDelegationsResponse struct {
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	Pagination           *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorUnbondingDelegationsResponse is response type for query unbonding delegations of the delegator

func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor

func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingDelegations

func (m *QueryDelegatorUnbondingDelegationsResponse) GetUnbondingDelegations() []UnbondingDelegation

func (*QueryDelegatorUnbondingDelegationsResponse) Marshal

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryDelegatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsResponse) Reset

func (*QueryDelegatorUnbondingDelegationsResponse) Size

func (*QueryDelegatorUnbondingDelegationsResponse) String

func (*QueryDelegatorUnbondingDelegationsResponse) Unmarshal

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Size

func (*QueryDelegatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryOperatorDelegationsRequest

type QueryOperatorDelegationsRequest struct {
	OperatorAddress string             `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	Pagination      *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorDelegationsRequest is request type for query delegates of the operator.

func (*QueryOperatorDelegationsRequest) Descriptor

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

func (*QueryOperatorDelegationsRequest) Marshal

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

func (*QueryOperatorDelegationsRequest) MarshalTo

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

func (*QueryOperatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationsRequest) ProtoMessage

func (*QueryOperatorDelegationsRequest) ProtoMessage()

func (*QueryOperatorDelegationsRequest) Reset

func (*QueryOperatorDelegationsRequest) Size

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

func (*QueryOperatorDelegationsRequest) String

func (*QueryOperatorDelegationsRequest) Unmarshal

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

func (*QueryOperatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryOperatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryOperatorDelegationsRequest) XXX_Marshal

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

func (*QueryOperatorDelegationsRequest) XXX_Merge

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

func (*QueryOperatorDelegationsRequest) XXX_Size

func (m *QueryOperatorDelegationsRequest) XXX_Size() int

func (*QueryOperatorDelegationsRequest) XXX_Unmarshal

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

type QueryOperatorDelegationsResponse

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

QueryOperatorDelegationsResponse is response type for query delegates of the operator.

func (*QueryOperatorDelegationsResponse) Descriptor

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

func (*QueryOperatorDelegationsResponse) GetDelegations

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

func (*QueryOperatorDelegationsResponse) GetPagination

func (*QueryOperatorDelegationsResponse) Marshal

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

func (*QueryOperatorDelegationsResponse) MarshalTo

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

func (*QueryOperatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationsResponse) ProtoMessage

func (*QueryOperatorDelegationsResponse) ProtoMessage()

func (*QueryOperatorDelegationsResponse) Reset

func (*QueryOperatorDelegationsResponse) Size

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

func (*QueryOperatorDelegationsResponse) String

func (*QueryOperatorDelegationsResponse) Unmarshal

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

func (*QueryOperatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryOperatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryOperatorDelegationsResponse) XXX_Marshal

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

func (*QueryOperatorDelegationsResponse) XXX_Merge

func (*QueryOperatorDelegationsResponse) XXX_Size

func (m *QueryOperatorDelegationsResponse) XXX_Size() int

func (*QueryOperatorDelegationsResponse) XXX_Unmarshal

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

type QueryOperatorRequest

type QueryOperatorRequest struct {
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

QueryOperatorRequest is request type for Query/Operator by address RPC method.

func (*QueryOperatorRequest) Descriptor

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

func (*QueryOperatorRequest) Marshal

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

func (*QueryOperatorRequest) MarshalTo

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

func (*QueryOperatorRequest) MarshalToSizedBuffer

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

func (*QueryOperatorRequest) ProtoMessage

func (*QueryOperatorRequest) ProtoMessage()

func (*QueryOperatorRequest) Reset

func (m *QueryOperatorRequest) Reset()

func (*QueryOperatorRequest) Size

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

func (*QueryOperatorRequest) String

func (m *QueryOperatorRequest) String() string

func (*QueryOperatorRequest) Unmarshal

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

func (*QueryOperatorRequest) XXX_DiscardUnknown

func (m *QueryOperatorRequest) XXX_DiscardUnknown()

func (*QueryOperatorRequest) XXX_Marshal

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

func (*QueryOperatorRequest) XXX_Merge

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

func (*QueryOperatorRequest) XXX_Size

func (m *QueryOperatorRequest) XXX_Size() int

func (*QueryOperatorRequest) XXX_Unmarshal

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

type QueryOperatorResponse

type QueryOperatorResponse struct {
	Operator Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator"`
}

QueryOperatorRequest is response type for Query/Operator by address RPC method.

func (*QueryOperatorResponse) Descriptor

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

func (*QueryOperatorResponse) GetOperator

func (m *QueryOperatorResponse) GetOperator() Operator

func (*QueryOperatorResponse) Marshal

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

func (*QueryOperatorResponse) MarshalTo

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

func (*QueryOperatorResponse) MarshalToSizedBuffer

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

func (*QueryOperatorResponse) ProtoMessage

func (*QueryOperatorResponse) ProtoMessage()

func (*QueryOperatorResponse) Reset

func (m *QueryOperatorResponse) Reset()

func (*QueryOperatorResponse) Size

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

func (*QueryOperatorResponse) String

func (m *QueryOperatorResponse) String() string

func (*QueryOperatorResponse) Unmarshal

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

func (*QueryOperatorResponse) XXX_DiscardUnknown

func (m *QueryOperatorResponse) XXX_DiscardUnknown()

func (*QueryOperatorResponse) XXX_Marshal

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

func (*QueryOperatorResponse) XXX_Merge

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

func (*QueryOperatorResponse) XXX_Size

func (m *QueryOperatorResponse) XXX_Size() int

func (*QueryOperatorResponse) XXX_Unmarshal

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

type QueryOperatorUnbondingDelegationsRequest

type QueryOperatorUnbondingDelegationsRequest struct {
	OperatorAddress string             `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	Pagination      *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorUnbondingDelegationsRequest

func (*QueryOperatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryOperatorUnbondingDelegationsRequest) Marshal

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

func (*QueryOperatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryOperatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryOperatorUnbondingDelegationsRequest) Reset

func (*QueryOperatorUnbondingDelegationsRequest) Size

func (*QueryOperatorUnbondingDelegationsRequest) String

func (*QueryOperatorUnbondingDelegationsRequest) Unmarshal

func (*QueryOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Size

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Unmarshal

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

type QueryOperatorUnbondingDelegationsResponse

type QueryOperatorUnbondingDelegationsResponse struct {
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	Pagination           *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorUnbondingDelegationsResponse

func (*QueryOperatorUnbondingDelegationsResponse) Descriptor

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

func (*QueryOperatorUnbondingDelegationsResponse) GetPagination

func (*QueryOperatorUnbondingDelegationsResponse) GetUnbondingDelegations

func (m *QueryOperatorUnbondingDelegationsResponse) GetUnbondingDelegations() []UnbondingDelegation

func (*QueryOperatorUnbondingDelegationsResponse) Marshal

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

func (*QueryOperatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryOperatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryOperatorUnbondingDelegationsResponse) Reset

func (*QueryOperatorUnbondingDelegationsResponse) Size

func (*QueryOperatorUnbondingDelegationsResponse) String

func (*QueryOperatorUnbondingDelegationsResponse) Unmarshal

func (*QueryOperatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Size

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryOperatorsRequest

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

QueryOperatorsRequest is request type for Query/Operator RPC method.

func (*QueryOperatorsRequest) Descriptor

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

func (*QueryOperatorsRequest) Marshal

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

func (*QueryOperatorsRequest) MarshalTo

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

func (*QueryOperatorsRequest) MarshalToSizedBuffer

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

func (*QueryOperatorsRequest) ProtoMessage

func (*QueryOperatorsRequest) ProtoMessage()

func (*QueryOperatorsRequest) Reset

func (m *QueryOperatorsRequest) Reset()

func (*QueryOperatorsRequest) Size

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

func (*QueryOperatorsRequest) String

func (m *QueryOperatorsRequest) String() string

func (*QueryOperatorsRequest) Unmarshal

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

func (*QueryOperatorsRequest) XXX_DiscardUnknown

func (m *QueryOperatorsRequest) XXX_DiscardUnknown()

func (*QueryOperatorsRequest) XXX_Marshal

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

func (*QueryOperatorsRequest) XXX_Merge

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

func (*QueryOperatorsRequest) XXX_Size

func (m *QueryOperatorsRequest) XXX_Size() int

func (*QueryOperatorsRequest) XXX_Unmarshal

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

type QueryOperatorsResponse

type QueryOperatorsResponse struct {
	Operators  []Operator          `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorsResponse is response type for Query/Operator RPC method.

func (*QueryOperatorsResponse) Descriptor

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

func (*QueryOperatorsResponse) GetOperators

func (m *QueryOperatorsResponse) GetOperators() []Operator

func (*QueryOperatorsResponse) GetPagination

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

func (*QueryOperatorsResponse) Marshal

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

func (*QueryOperatorsResponse) MarshalTo

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

func (*QueryOperatorsResponse) MarshalToSizedBuffer

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

func (*QueryOperatorsResponse) ProtoMessage

func (*QueryOperatorsResponse) ProtoMessage()

func (*QueryOperatorsResponse) Reset

func (m *QueryOperatorsResponse) Reset()

func (*QueryOperatorsResponse) Size

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

func (*QueryOperatorsResponse) String

func (m *QueryOperatorsResponse) String() string

func (*QueryOperatorsResponse) Unmarshal

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

func (*QueryOperatorsResponse) XXX_DiscardUnknown

func (m *QueryOperatorsResponse) XXX_DiscardUnknown()

func (*QueryOperatorsResponse) XXX_Marshal

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

func (*QueryOperatorsResponse) XXX_Merge

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

func (*QueryOperatorsResponse) XXX_Size

func (m *QueryOperatorsResponse) XXX_Size() int

func (*QueryOperatorsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Operators queries all operators.
	Operators(context.Context, *QueryOperatorsRequest) (*QueryOperatorsResponse, error)
	// Operator queries the operator by the address.
	Operator(context.Context, *QueryOperatorRequest) (*QueryOperatorResponse, error)
	// OperatorDelegations queries delegate info for given operator.
	OperatorDelegations(context.Context, *QueryOperatorDelegationsRequest) (*QueryOperatorDelegationsResponse, error)
	// OperatorUnbondingDelegations queries unbonding delegations of a operator.
	OperatorUnbondingDelegations(context.Context, *QueryOperatorUnbondingDelegationsRequest) (*QueryOperatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given operator delegator pair.
	Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given operator delegator pair.
	UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
	DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// DelegatorOperators queries all Operators info for given delegator
	DelegatorOperators(context.Context, *QueryDelegatorOperatorsRequest) (*QueryDelegatorOperatorsResponse, error)
}

QueryServer is the server API for Query service.

type QueryUnbondingDelegationRequest

type QueryUnbondingDelegationRequest struct {
	// delegator_addr defines the delegator address to query for.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// operator_addr defines the agent address to query for.
	OperatorAddress string `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

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

func (*QueryUnbondingDelegationRequest) Descriptor

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

func (*QueryUnbondingDelegationRequest) Marshal

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

func (*QueryUnbondingDelegationRequest) MarshalTo

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

func (*QueryUnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*QueryUnbondingDelegationRequest) ProtoMessage

func (*QueryUnbondingDelegationRequest) ProtoMessage()

func (*QueryUnbondingDelegationRequest) Reset

func (*QueryUnbondingDelegationRequest) Size

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

func (*QueryUnbondingDelegationRequest) String

func (*QueryUnbondingDelegationRequest) Unmarshal

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

func (*QueryUnbondingDelegationRequest) XXX_DiscardUnknown

func (m *QueryUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationRequest) XXX_Marshal

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

func (*QueryUnbondingDelegationRequest) XXX_Merge

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

func (*QueryUnbondingDelegationRequest) XXX_Size

func (m *QueryUnbondingDelegationRequest) XXX_Size() int

func (*QueryUnbondingDelegationRequest) XXX_Unmarshal

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

type QueryUnbondingDelegationResponse

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

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

func (*QueryUnbondingDelegationResponse) Descriptor

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

func (*QueryUnbondingDelegationResponse) GetUnbond

func (*QueryUnbondingDelegationResponse) Marshal

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

func (*QueryUnbondingDelegationResponse) MarshalTo

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

func (*QueryUnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*QueryUnbondingDelegationResponse) ProtoMessage

func (*QueryUnbondingDelegationResponse) ProtoMessage()

func (*QueryUnbondingDelegationResponse) Reset

func (*QueryUnbondingDelegationResponse) Size

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

func (*QueryUnbondingDelegationResponse) String

func (*QueryUnbondingDelegationResponse) Unmarshal

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

func (*QueryUnbondingDelegationResponse) XXX_DiscardUnknown

func (m *QueryUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryUnbondingDelegationResponse) XXX_Marshal

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

func (*QueryUnbondingDelegationResponse) XXX_Merge

func (*QueryUnbondingDelegationResponse) XXX_Size

func (m *QueryUnbondingDelegationResponse) XXX_Size() int

func (*QueryUnbondingDelegationResponse) XXX_Unmarshal

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

type TendermintLightClientState

type TendermintLightClientState = ibctm.ClientState

type UnbondingDelegation

type UnbondingDelegation struct {
	DelegatorAddress string           `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	OperatorAddress  string           `protobuf:"bytes,2,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	Entries          []UnbondingEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single opeator in an time-ordered list.

func NewUnbondingDelegation

func NewUnbondingDelegation(
	delegatorAddr, operatorAddr sdk.AccAddress, creationHeight uint64, balance sdk.Coin, id uint64,
) UnbondingDelegation

func (*UnbondingDelegation) AddEntry

func (ubd *UnbondingDelegation) AddEntry(creationHeight uint64, coin sdk.Coin, unbondingID uint64)

func (*UnbondingDelegation) Descriptor

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

func (*UnbondingDelegation) GetDelegatorAddress

func (m *UnbondingDelegation) GetDelegatorAddress() string

func (*UnbondingDelegation) GetEntries

func (m *UnbondingDelegation) GetEntries() []UnbondingEntry

func (*UnbondingDelegation) GetOperatorAddress

func (m *UnbondingDelegation) GetOperatorAddress() string

func (*UnbondingDelegation) Marshal

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

func (*UnbondingDelegation) MarshalTo

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

func (*UnbondingDelegation) MarshalToSizedBuffer

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

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) RemoveEntry

func (ubd *UnbondingDelegation) RemoveEntry(i int64)

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

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

func (*UnbondingDelegation) String

func (m *UnbondingDelegation) String() string

func (*UnbondingDelegation) Unmarshal

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

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

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

func (*UnbondingDelegation) XXX_Merge

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

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

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

type UnbondingEntry

type UnbondingEntry struct {
	// Incrementing id that uniquely identifies this entry.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// amount defines the tokens to receive at completion.
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
	// creation_height is the height which the unbonding took place.
	CreateHeight uint64 `protobuf:"varint,3,opt,name=create_height,json=createHeight,proto3" json:"create_height,omitempty"`
	// completion_time is the unix nano time for unbonding completion.
	CompleteTime int64 `protobuf:"varint,4,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
}

UnbondingEntry defines an unbonding object with relevant metadata.

func NewUnbondingDelegationEntry

func NewUnbondingDelegationEntry(creationHeight uint64, coin sdk.Coin, unbondingID uint64) UnbondingEntry

func (*UnbondingEntry) Descriptor

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

func (*UnbondingEntry) GetAmount

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

func (*UnbondingEntry) GetCompleteTime

func (m *UnbondingEntry) GetCompleteTime() int64

func (*UnbondingEntry) GetCreateHeight

func (m *UnbondingEntry) GetCreateHeight() uint64

func (*UnbondingEntry) GetId

func (m *UnbondingEntry) GetId() uint64

func (UnbondingEntry) IsMature

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

func (*UnbondingEntry) Marshal

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

func (*UnbondingEntry) MarshalTo

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

func (*UnbondingEntry) MarshalToSizedBuffer

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

func (*UnbondingEntry) ProtoMessage

func (*UnbondingEntry) ProtoMessage()

func (*UnbondingEntry) Reset

func (m *UnbondingEntry) Reset()

func (*UnbondingEntry) Size

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

func (*UnbondingEntry) String

func (m *UnbondingEntry) String() string

func (*UnbondingEntry) Unmarshal

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

func (*UnbondingEntry) XXX_DiscardUnknown

func (m *UnbondingEntry) XXX_DiscardUnknown()

func (*UnbondingEntry) XXX_Marshal

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

func (*UnbondingEntry) XXX_Merge

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

func (*UnbondingEntry) XXX_Size

func (m *UnbondingEntry) XXX_Size() int

func (*UnbondingEntry) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) RegisterOperator

func (*UnimplementedMsgServer) Undelegate

func (*UnimplementedMsgServer) WithdrawReward

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Delegation

func (*UnimplementedQueryServer) DelegatorOperators

func (*UnimplementedQueryServer) Operator

func (*UnimplementedQueryServer) OperatorDelegations

func (*UnimplementedQueryServer) Operators

func (*UnimplementedQueryServer) UnbondingDelegation

Jump to

Keyboard shortcuts

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