types

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT 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 (
	AttributeKeyReporter        = "reporter"
	AttributeKeyDelegator       = "delegator"
	EventTypeCommission         = "commission"
	EventTypeWithdrawCommission = "withdraw_commission"
	EventTypeRewards            = "rewards"
	EventTypeWithdrawRewards    = "withdraw_rewards"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "reporter"

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

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

	Denom = "loya"

	TipsEscrowPool = "tips_escrow_pool"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidSigner                = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message")
	ErrSample                       = sdkerrors.Register(ModuleName, 1101, "sample error")
	ErrReporterExists               = sdkerrors.Register(ModuleName, 1102, "reporter already registered!")
	ErrAddressDelegated             = sdkerrors.Register(ModuleName, 1103, "address currently delegated to a reporter")
	ErrCommissionLTMinRate          = sdkerrors.Register(ModuleName, 1104, "commission cannot be less than min rate")
	ErrInvalidReporter              = sdkerrors.Register(ModuleName, 1105, "invalid reporter")
	ErrInsufficientTokens           = sdkerrors.Register(ModuleName, 1106, "insufficient tokens")
	ErrTokenAmountMismatch          = sdkerrors.Register(ModuleName, 1107, "token amount mismatch")
	ErrReporterMismatch             = sdkerrors.Register(ModuleName, 1108, "reporter mismatch")
	ErrEmptyDelegationDistInfo      = sdkerrors.Register(ModuleName, 1109, "no delegation distribution info")
	ErrNoReporterCommission         = sdkerrors.Register(ModuleName, 1110, "no reporter commission to withdraw")
	ErrReporterDoesNotExist         = sdkerrors.Register(ModuleName, 1111, "reporter does not exist")
	ErrReporterJailed               = sdkerrors.Register(ModuleName, 1112, "reporter jailed")
	ErrReporterNotJailed            = sdkerrors.Register(ModuleName, 1113, "reporter not jailed")
	ErrNoUnbondingDelegationEntries = sdkerrors.Register(ModuleName, 1114, "no unbonding delegation entries")
)

x/reporter module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey                       = []byte("p_reporter")
	ReportersKey                    = collections.NewPrefix(11)
	SelectorsKey                    = collections.NewPrefix(12)
	ReporterSelectorsIndexPrefix    = collections.NewPrefix(13)
	SelectorTipsPrefix              = collections.NewPrefix(14)
	DisputedDelegationAmountsPrefix = collections.NewPrefix(15)
	FeePaidFromStakePrefix          = collections.NewPrefix(16)
	StakeTrackerPrefix              = collections.NewPrefix(17)
	ReporterPrefix                  = collections.NewPrefix(18)
)
View Source
var (
	ErrInvalidLengthOracleReporter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOracleReporter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOracleReporter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMinCommissionRate = []byte("MinCommissionRate")
	// TODO: Determine the default value
	DefaultMinCommissionRate = math.NewUint(0)
	DefaultMinTrb            = math.NewIntWithDecimal(1, 6)
	DefaultMaxSelectors      = uint64(100)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSelection        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSelection          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSelection = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTokenOrigin        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTokenOrigin          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTokenOrigin = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation

}

AccountKeeper defines the expected interface for the Account module.

type BankKeeper

type BankKeeper interface {
	SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface for the Bank module.

type BigUint

type BigUint struct {
	Value cosmossdk_io_math.Uint `protobuf:"bytes,1,opt,name=value,proto3,customtype=cosmossdk.io/math.Uint" json:"value"`
}

func (*BigUint) Descriptor

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

func (*BigUint) Marshal

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

func (*BigUint) MarshalTo

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

func (*BigUint) MarshalToSizedBuffer

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

func (*BigUint) ProtoMessage

func (*BigUint) ProtoMessage()

func (*BigUint) Reset

func (m *BigUint) Reset()

func (*BigUint) Size

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

func (*BigUint) String

func (m *BigUint) String() string

func (*BigUint) Unmarshal

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

func (*BigUint) XXX_DiscardUnknown

func (m *BigUint) XXX_DiscardUnknown()

func (*BigUint) XXX_Marshal

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

func (*BigUint) XXX_Merge

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

func (*BigUint) XXX_Size

func (m *BigUint) XXX_Size() int

func (*BigUint) XXX_Unmarshal

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

type DelegationsAmounts

type DelegationsAmounts struct {
	// token_origins is the list of token origins for and where the amounts are staked
	TokenOrigins []*TokenOriginInfo `protobuf:"bytes,1,rep,name=token_origins,json=tokenOrigins,proto3" json:"token_origins,omitempty"`
	// total amount of tokens in the list
	Total cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=total,proto3,customtype=cosmossdk.io/math.Int" json:"total"`
}

DelegationsAmounts is the struct that holds the data of delegations and amounts and the total

func (*DelegationsAmounts) Descriptor

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

func (*DelegationsAmounts) GetTokenOrigins

func (m *DelegationsAmounts) GetTokenOrigins() []*TokenOriginInfo

func (*DelegationsAmounts) Marshal

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

func (*DelegationsAmounts) MarshalTo

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

func (*DelegationsAmounts) MarshalToSizedBuffer

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

func (*DelegationsAmounts) ProtoMessage

func (*DelegationsAmounts) ProtoMessage()

func (*DelegationsAmounts) Reset

func (m *DelegationsAmounts) Reset()

func (*DelegationsAmounts) Size

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

func (*DelegationsAmounts) String

func (m *DelegationsAmounts) String() string

func (*DelegationsAmounts) Unmarshal

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

func (*DelegationsAmounts) XXX_DiscardUnknown

func (m *DelegationsAmounts) XXX_DiscardUnknown()

func (*DelegationsAmounts) XXX_Marshal

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

func (*DelegationsAmounts) XXX_Merge

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

func (*DelegationsAmounts) XXX_Size

func (m *DelegationsAmounts) XXX_Size() int

func (*DelegationsAmounts) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the reporter module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// CreateReporter defines a (reporter) operation for creating a new reporter.
	CreateReporter(ctx context.Context, in *MsgCreateReporter, opts ...grpc.CallOption) (*MsgCreateReporterResponse, error)
	// SelectReporter defines a (selector) operation for choosing a reporter.
	SelectReporter(ctx context.Context, in *MsgSelectReporter, opts ...grpc.CallOption) (*MsgSelectReporterResponse, error)
	// SwitchReporter defines a (selector) operation for switching a reporter.
	SwitchReporter(ctx context.Context, in *MsgSwitchReporter, opts ...grpc.CallOption) (*MsgSwitchReporterResponse, error)
	// RemoveSelector defines an operation for removing a selector that no longer meets
	// the reporter's minimum requirements and the reporter is capped.
	RemoveSelector(ctx context.Context, in *MsgRemoveSelector, opts ...grpc.CallOption) (*MsgRemoveSelectorResponse, error)
	// UnjailReporter defines a method to unjail a jailed reporter.
	UnjailReporter(ctx context.Context, in *MsgUnjailReporter, opts ...grpc.CallOption) (*MsgUnjailReporterResponse, error)
	// WithdrawTip defines a method to withdraw tip from a reporter module.
	WithdrawTip(ctx context.Context, in *MsgWithdrawTip, opts ...grpc.CallOption) (*MsgWithdrawTipResponse, 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 MsgCreateReporter

type MsgCreateReporter struct {
	// reporter_address is the address of the reporter.
	ReporterAddress   string                 `protobuf:"bytes,1,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
	CommissionRate    cosmossdk_io_math.Uint `` /* 127-byte string literal not displayed */
	MinTokensRequired cosmossdk_io_math.Int  `` /* 137-byte string literal not displayed */
}

MsgCreateReporter defines the Msg/CreateReporter request type.

func NewMsgCreateReporter

func NewMsgCreateReporter(reporter string, commission math.Uint) *MsgCreateReporter

func (*MsgCreateReporter) Descriptor

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

func (*MsgCreateReporter) GetReporterAddress

func (m *MsgCreateReporter) GetReporterAddress() string

func (*MsgCreateReporter) Marshal

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

func (*MsgCreateReporter) MarshalTo

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

func (*MsgCreateReporter) MarshalToSizedBuffer

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

func (*MsgCreateReporter) ProtoMessage

func (*MsgCreateReporter) ProtoMessage()

func (*MsgCreateReporter) Reset

func (m *MsgCreateReporter) Reset()

func (*MsgCreateReporter) Size

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

func (*MsgCreateReporter) String

func (m *MsgCreateReporter) String() string

func (*MsgCreateReporter) Unmarshal

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

func (*MsgCreateReporter) ValidateBasic

func (msg *MsgCreateReporter) ValidateBasic() error

func (*MsgCreateReporter) XXX_DiscardUnknown

func (m *MsgCreateReporter) XXX_DiscardUnknown()

func (*MsgCreateReporter) XXX_Marshal

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

func (*MsgCreateReporter) XXX_Merge

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

func (*MsgCreateReporter) XXX_Size

func (m *MsgCreateReporter) XXX_Size() int

func (*MsgCreateReporter) XXX_Unmarshal

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

type MsgCreateReporterResponse

type MsgCreateReporterResponse struct {
}

MsgCreateReporterResponse defines the Msg/CreateReporter response type.

func (*MsgCreateReporterResponse) Descriptor

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

func (*MsgCreateReporterResponse) Marshal

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

func (*MsgCreateReporterResponse) MarshalTo

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

func (*MsgCreateReporterResponse) MarshalToSizedBuffer

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

func (*MsgCreateReporterResponse) ProtoMessage

func (*MsgCreateReporterResponse) ProtoMessage()

func (*MsgCreateReporterResponse) Reset

func (m *MsgCreateReporterResponse) Reset()

func (*MsgCreateReporterResponse) Size

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

func (*MsgCreateReporterResponse) String

func (m *MsgCreateReporterResponse) String() string

func (*MsgCreateReporterResponse) Unmarshal

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

func (*MsgCreateReporterResponse) XXX_DiscardUnknown

func (m *MsgCreateReporterResponse) XXX_DiscardUnknown()

func (*MsgCreateReporterResponse) XXX_Marshal

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

func (*MsgCreateReporterResponse) XXX_Merge

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

func (*MsgCreateReporterResponse) XXX_Size

func (m *MsgCreateReporterResponse) XXX_Size() int

func (*MsgCreateReporterResponse) XXX_Unmarshal

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

type MsgRemoveSelector

type MsgRemoveSelector struct {
	// any_address is the caller which can be any address.
	AnyAddress string `protobuf:"bytes,1,opt,name=any_address,json=anyAddress,proto3" json:"any_address,omitempty"`
	// selector_address is the address of the selector.
	SelectorAddress string `protobuf:"bytes,2,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
}

MsgRemoveSelector defines the Msg/RemoveSelector request type.

func NewMsgRemoveSelector

func NewMsgRemoveSelector(anyAddress, selector string) *MsgRemoveSelector

func (*MsgRemoveSelector) Descriptor

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

func (*MsgRemoveSelector) GetAnyAddress

func (m *MsgRemoveSelector) GetAnyAddress() string

func (*MsgRemoveSelector) GetSelectorAddress

func (m *MsgRemoveSelector) GetSelectorAddress() string

func (*MsgRemoveSelector) Marshal

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

func (*MsgRemoveSelector) MarshalTo

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

func (*MsgRemoveSelector) MarshalToSizedBuffer

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

func (*MsgRemoveSelector) ProtoMessage

func (*MsgRemoveSelector) ProtoMessage()

func (*MsgRemoveSelector) Reset

func (m *MsgRemoveSelector) Reset()

func (*MsgRemoveSelector) Size

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

func (*MsgRemoveSelector) String

func (m *MsgRemoveSelector) String() string

func (*MsgRemoveSelector) Unmarshal

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

func (*MsgRemoveSelector) ValidateBasic

func (msg *MsgRemoveSelector) ValidateBasic() error

func (*MsgRemoveSelector) XXX_DiscardUnknown

func (m *MsgRemoveSelector) XXX_DiscardUnknown()

func (*MsgRemoveSelector) XXX_Marshal

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

func (*MsgRemoveSelector) XXX_Merge

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

func (*MsgRemoveSelector) XXX_Size

func (m *MsgRemoveSelector) XXX_Size() int

func (*MsgRemoveSelector) XXX_Unmarshal

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

type MsgRemoveSelectorResponse

type MsgRemoveSelectorResponse struct {
}

MsgRemoveSelectorResponse defines the Msg/RemoveSelector response type.

func (*MsgRemoveSelectorResponse) Descriptor

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

func (*MsgRemoveSelectorResponse) Marshal

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

func (*MsgRemoveSelectorResponse) MarshalTo

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

func (*MsgRemoveSelectorResponse) MarshalToSizedBuffer

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

func (*MsgRemoveSelectorResponse) ProtoMessage

func (*MsgRemoveSelectorResponse) ProtoMessage()

func (*MsgRemoveSelectorResponse) Reset

func (m *MsgRemoveSelectorResponse) Reset()

func (*MsgRemoveSelectorResponse) Size

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

func (*MsgRemoveSelectorResponse) String

func (m *MsgRemoveSelectorResponse) String() string

func (*MsgRemoveSelectorResponse) Unmarshal

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

func (*MsgRemoveSelectorResponse) XXX_DiscardUnknown

func (m *MsgRemoveSelectorResponse) XXX_DiscardUnknown()

func (*MsgRemoveSelectorResponse) XXX_Marshal

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

func (*MsgRemoveSelectorResponse) XXX_Merge

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

func (*MsgRemoveSelectorResponse) XXX_Size

func (m *MsgRemoveSelectorResponse) XXX_Size() int

func (*MsgRemoveSelectorResponse) XXX_Unmarshal

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

type MsgSelectReporter

type MsgSelectReporter struct {
	// selector_address is the address of the selector.
	SelectorAddress string `protobuf:"bytes,1,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
	// reporter_address is the address of the reporter to select.
	ReporterAddress string `protobuf:"bytes,2,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
}

MsgSelectReporter defines the Msg/SelectReporter request type.

func NewMsgSelectReporter

func NewMsgSelectReporter(selector, reporter string) *MsgSelectReporter

func (*MsgSelectReporter) Descriptor

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

func (*MsgSelectReporter) GetReporterAddress

func (m *MsgSelectReporter) GetReporterAddress() string

func (*MsgSelectReporter) GetSelectorAddress

func (m *MsgSelectReporter) GetSelectorAddress() string

func (*MsgSelectReporter) Marshal

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

func (*MsgSelectReporter) MarshalTo

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

func (*MsgSelectReporter) MarshalToSizedBuffer

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

func (*MsgSelectReporter) ProtoMessage

func (*MsgSelectReporter) ProtoMessage()

func (*MsgSelectReporter) Reset

func (m *MsgSelectReporter) Reset()

func (*MsgSelectReporter) Size

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

func (*MsgSelectReporter) String

func (m *MsgSelectReporter) String() string

func (*MsgSelectReporter) Unmarshal

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

func (*MsgSelectReporter) ValidateBasic

func (msg *MsgSelectReporter) ValidateBasic() error

func (*MsgSelectReporter) XXX_DiscardUnknown

func (m *MsgSelectReporter) XXX_DiscardUnknown()

func (*MsgSelectReporter) XXX_Marshal

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

func (*MsgSelectReporter) XXX_Merge

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

func (*MsgSelectReporter) XXX_Size

func (m *MsgSelectReporter) XXX_Size() int

func (*MsgSelectReporter) XXX_Unmarshal

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

type MsgSelectReporterResponse

type MsgSelectReporterResponse struct {
}

func (*MsgSelectReporterResponse) Descriptor

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

func (*MsgSelectReporterResponse) Marshal

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

func (*MsgSelectReporterResponse) MarshalTo

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

func (*MsgSelectReporterResponse) MarshalToSizedBuffer

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

func (*MsgSelectReporterResponse) ProtoMessage

func (*MsgSelectReporterResponse) ProtoMessage()

func (*MsgSelectReporterResponse) Reset

func (m *MsgSelectReporterResponse) Reset()

func (*MsgSelectReporterResponse) Size

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

func (*MsgSelectReporterResponse) String

func (m *MsgSelectReporterResponse) String() string

func (*MsgSelectReporterResponse) Unmarshal

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

func (*MsgSelectReporterResponse) XXX_DiscardUnknown

func (m *MsgSelectReporterResponse) XXX_DiscardUnknown()

func (*MsgSelectReporterResponse) XXX_Marshal

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

func (*MsgSelectReporterResponse) XXX_Merge

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

func (*MsgSelectReporterResponse) XXX_Size

func (m *MsgSelectReporterResponse) XXX_Size() int

func (*MsgSelectReporterResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// CreateReporter defines a (reporter) operation for creating a new reporter.
	CreateReporter(context.Context, *MsgCreateReporter) (*MsgCreateReporterResponse, error)
	// SelectReporter defines a (selector) operation for choosing a reporter.
	SelectReporter(context.Context, *MsgSelectReporter) (*MsgSelectReporterResponse, error)
	// SwitchReporter defines a (selector) operation for switching a reporter.
	SwitchReporter(context.Context, *MsgSwitchReporter) (*MsgSwitchReporterResponse, error)
	// RemoveSelector defines an operation for removing a selector that no longer meets
	// the reporter's minimum requirements and the reporter is capped.
	RemoveSelector(context.Context, *MsgRemoveSelector) (*MsgRemoveSelectorResponse, error)
	// UnjailReporter defines a method to unjail a jailed reporter.
	UnjailReporter(context.Context, *MsgUnjailReporter) (*MsgUnjailReporterResponse, error)
	// WithdrawTip defines a method to withdraw tip from a reporter module.
	WithdrawTip(context.Context, *MsgWithdrawTip) (*MsgWithdrawTipResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSwitchReporter

type MsgSwitchReporter struct {
	// selector_address is the address of the selector.
	SelectorAddress string `protobuf:"bytes,1,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
	// reporter_address is the address of the reporter to switch.
	ReporterAddress string `protobuf:"bytes,2,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
}

MsgSwitchReporter defines the Msg/SwitchReporter request type.

func NewMsgSwitchReporter

func NewMsgSwitchReporter(selector, reporter string) *MsgSwitchReporter

func (*MsgSwitchReporter) Descriptor

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

func (*MsgSwitchReporter) GetReporterAddress

func (m *MsgSwitchReporter) GetReporterAddress() string

func (*MsgSwitchReporter) GetSelectorAddress

func (m *MsgSwitchReporter) GetSelectorAddress() string

func (*MsgSwitchReporter) Marshal

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

func (*MsgSwitchReporter) MarshalTo

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

func (*MsgSwitchReporter) MarshalToSizedBuffer

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

func (*MsgSwitchReporter) ProtoMessage

func (*MsgSwitchReporter) ProtoMessage()

func (*MsgSwitchReporter) Reset

func (m *MsgSwitchReporter) Reset()

func (*MsgSwitchReporter) Size

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

func (*MsgSwitchReporter) String

func (m *MsgSwitchReporter) String() string

func (*MsgSwitchReporter) Unmarshal

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

func (*MsgSwitchReporter) ValidateBasic

func (msg *MsgSwitchReporter) ValidateBasic() error

func (*MsgSwitchReporter) XXX_DiscardUnknown

func (m *MsgSwitchReporter) XXX_DiscardUnknown()

func (*MsgSwitchReporter) XXX_Marshal

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

func (*MsgSwitchReporter) XXX_Merge

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

func (*MsgSwitchReporter) XXX_Size

func (m *MsgSwitchReporter) XXX_Size() int

func (*MsgSwitchReporter) XXX_Unmarshal

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

type MsgSwitchReporterResponse

type MsgSwitchReporterResponse struct {
}

MsgSwitchReporterResponse defines the Msg/SwitchReporter response type.

func (*MsgSwitchReporterResponse) Descriptor

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

func (*MsgSwitchReporterResponse) Marshal

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

func (*MsgSwitchReporterResponse) MarshalTo

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

func (*MsgSwitchReporterResponse) MarshalToSizedBuffer

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

func (*MsgSwitchReporterResponse) ProtoMessage

func (*MsgSwitchReporterResponse) ProtoMessage()

func (*MsgSwitchReporterResponse) Reset

func (m *MsgSwitchReporterResponse) Reset()

func (*MsgSwitchReporterResponse) Size

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

func (*MsgSwitchReporterResponse) String

func (m *MsgSwitchReporterResponse) String() string

func (*MsgSwitchReporterResponse) Unmarshal

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

func (*MsgSwitchReporterResponse) XXX_DiscardUnknown

func (m *MsgSwitchReporterResponse) XXX_DiscardUnknown()

func (*MsgSwitchReporterResponse) XXX_Marshal

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

func (*MsgSwitchReporterResponse) XXX_Merge

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

func (*MsgSwitchReporterResponse) XXX_Size

func (m *MsgSwitchReporterResponse) XXX_Size() int

func (*MsgSwitchReporterResponse) XXX_Unmarshal

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

type MsgUnjailReporter

type MsgUnjailReporter struct {
	ReporterAddress string `protobuf:"bytes,1,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
}

MsgUnjailReporter defines the Msg/UnjailReporter request type.

func (*MsgUnjailReporter) Descriptor

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

func (*MsgUnjailReporter) Marshal

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

func (*MsgUnjailReporter) MarshalTo

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

func (*MsgUnjailReporter) MarshalToSizedBuffer

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

func (*MsgUnjailReporter) ProtoMessage

func (*MsgUnjailReporter) ProtoMessage()

func (*MsgUnjailReporter) Reset

func (m *MsgUnjailReporter) Reset()

func (*MsgUnjailReporter) Size

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

func (*MsgUnjailReporter) String

func (m *MsgUnjailReporter) String() string

func (*MsgUnjailReporter) Unmarshal

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

func (*MsgUnjailReporter) XXX_DiscardUnknown

func (m *MsgUnjailReporter) XXX_DiscardUnknown()

func (*MsgUnjailReporter) XXX_Marshal

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

func (*MsgUnjailReporter) XXX_Merge

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

func (*MsgUnjailReporter) XXX_Size

func (m *MsgUnjailReporter) XXX_Size() int

func (*MsgUnjailReporter) XXX_Unmarshal

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

type MsgUnjailReporterResponse

type MsgUnjailReporterResponse struct {
}

MsgUnjailReporterResponse defines the Msg/UnjailReporter response type.

func (*MsgUnjailReporterResponse) Descriptor

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

func (*MsgUnjailReporterResponse) Marshal

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

func (*MsgUnjailReporterResponse) MarshalTo

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

func (*MsgUnjailReporterResponse) MarshalToSizedBuffer

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

func (*MsgUnjailReporterResponse) ProtoMessage

func (*MsgUnjailReporterResponse) ProtoMessage()

func (*MsgUnjailReporterResponse) Reset

func (m *MsgUnjailReporterResponse) Reset()

func (*MsgUnjailReporterResponse) Size

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

func (*MsgUnjailReporterResponse) String

func (m *MsgUnjailReporterResponse) String() string

func (*MsgUnjailReporterResponse) Unmarshal

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

func (*MsgUnjailReporterResponse) XXX_DiscardUnknown

func (m *MsgUnjailReporterResponse) XXX_DiscardUnknown()

func (*MsgUnjailReporterResponse) XXX_Marshal

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

func (*MsgUnjailReporterResponse) XXX_Merge

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

func (*MsgUnjailReporterResponse) XXX_Size

func (m *MsgUnjailReporterResponse) XXX_Size() int

func (*MsgUnjailReporterResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgWithdrawTip

type MsgWithdrawTip struct {
	SelectorAddress  string `protobuf:"bytes,1,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

MsgWithdrawTip defines the Msg/WithdrawTip request type.

func NewMsgWithdrawTip

func NewMsgWithdrawTip(validatorAddress, selectorAddress string) *MsgWithdrawTip

func (*MsgWithdrawTip) Descriptor

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

func (*MsgWithdrawTip) GetSelectorAddress

func (m *MsgWithdrawTip) GetSelectorAddress() string

func (*MsgWithdrawTip) GetValidatorAddress

func (m *MsgWithdrawTip) GetValidatorAddress() string

func (*MsgWithdrawTip) Marshal

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

func (*MsgWithdrawTip) MarshalTo

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

func (*MsgWithdrawTip) MarshalToSizedBuffer

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

func (*MsgWithdrawTip) ProtoMessage

func (*MsgWithdrawTip) ProtoMessage()

func (*MsgWithdrawTip) Reset

func (m *MsgWithdrawTip) Reset()

func (*MsgWithdrawTip) Size

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

func (*MsgWithdrawTip) String

func (m *MsgWithdrawTip) String() string

func (*MsgWithdrawTip) Unmarshal

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

func (*MsgWithdrawTip) ValidateBasic

func (msg *MsgWithdrawTip) ValidateBasic() error

func (*MsgWithdrawTip) XXX_DiscardUnknown

func (m *MsgWithdrawTip) XXX_DiscardUnknown()

func (*MsgWithdrawTip) XXX_Marshal

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

func (*MsgWithdrawTip) XXX_Merge

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

func (*MsgWithdrawTip) XXX_Size

func (m *MsgWithdrawTip) XXX_Size() int

func (*MsgWithdrawTip) XXX_Unmarshal

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

type MsgWithdrawTipResponse

type MsgWithdrawTipResponse struct {
}

MsgWithdrawTipResponse defines the Msg/WithdrawTip response type.

func (*MsgWithdrawTipResponse) Descriptor

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

func (*MsgWithdrawTipResponse) Marshal

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

func (*MsgWithdrawTipResponse) MarshalTo

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

func (*MsgWithdrawTipResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawTipResponse) ProtoMessage

func (*MsgWithdrawTipResponse) ProtoMessage()

func (*MsgWithdrawTipResponse) Reset

func (m *MsgWithdrawTipResponse) Reset()

func (*MsgWithdrawTipResponse) Size

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

func (*MsgWithdrawTipResponse) String

func (m *MsgWithdrawTipResponse) String() string

func (*MsgWithdrawTipResponse) Unmarshal

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

func (*MsgWithdrawTipResponse) XXX_DiscardUnknown

func (m *MsgWithdrawTipResponse) XXX_DiscardUnknown()

func (*MsgWithdrawTipResponse) XXX_Marshal

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

func (*MsgWithdrawTipResponse) XXX_Merge

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

func (*MsgWithdrawTipResponse) XXX_Size

func (m *MsgWithdrawTipResponse) XXX_Size() int

func (*MsgWithdrawTipResponse) XXX_Unmarshal

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

type OracleReporter

type OracleReporter struct {
	// min_tokens_required to select this reporter
	MinTokensRequired cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
	// commission for the reporter
	CommissionRate cosmossdk_io_math.Uint `` /* 127-byte string literal not displayed */
	// jailed is a bool whether the reporter is jailed or not
	Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// jailed_until is the time the reporter is jailed until
	JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until"`
}

OracleReporter is the struct that holds the data for a reporter

func NewReporter

func NewReporter(commission math.Uint, minTokensRequired math.Int) OracleReporter

func (*OracleReporter) Descriptor

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

func (*OracleReporter) GetJailed

func (m *OracleReporter) GetJailed() bool

func (*OracleReporter) GetJailedUntil

func (m *OracleReporter) GetJailedUntil() time.Time

func (*OracleReporter) Marshal

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

func (*OracleReporter) MarshalTo

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

func (*OracleReporter) MarshalToSizedBuffer

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

func (*OracleReporter) ProtoMessage

func (*OracleReporter) ProtoMessage()

func (*OracleReporter) Reset

func (m *OracleReporter) Reset()

func (*OracleReporter) Size

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

func (*OracleReporter) String

func (m *OracleReporter) String() string

func (*OracleReporter) Unmarshal

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

func (*OracleReporter) XXX_DiscardUnknown

func (m *OracleReporter) XXX_DiscardUnknown()

func (*OracleReporter) XXX_Marshal

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

func (*OracleReporter) XXX_Merge

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

func (*OracleReporter) XXX_Size

func (m *OracleReporter) XXX_Size() int

func (*OracleReporter) XXX_Unmarshal

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

type Params

type Params struct {
	// min_commission_rate, adopted from staking module, is the minimum commission rate a reporter can their delegators
	MinCommissionRate cosmossdk_io_math.Uint `` /* 165-byte string literal not displayed */
	// min_trb to be a reporter
	MinTrb cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=min_trb,json=minTrb,proto3,customtype=cosmossdk.io/math.Int" json:"min_trb" yaml:"min_trb"`
	// max number of selectors for a reporter
	MaxSelectors uint64 `protobuf:"varint,3,opt,name=max_selectors,json=maxSelectors,proto3" json:"max_selectors,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	minCommissionRate math.Uint,
	minTrb math.Int,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetMaxSelectors

func (m *Params) GetMaxSelectors() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllowedAmountExpirationRequest

type QueryAllowedAmountExpirationRequest struct {
}

func (*QueryAllowedAmountExpirationRequest) Descriptor

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

func (*QueryAllowedAmountExpirationRequest) Marshal

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

func (*QueryAllowedAmountExpirationRequest) MarshalTo

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

func (*QueryAllowedAmountExpirationRequest) MarshalToSizedBuffer

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

func (*QueryAllowedAmountExpirationRequest) ProtoMessage

func (*QueryAllowedAmountExpirationRequest) ProtoMessage()

func (*QueryAllowedAmountExpirationRequest) Reset

func (*QueryAllowedAmountExpirationRequest) Size

func (*QueryAllowedAmountExpirationRequest) String

func (*QueryAllowedAmountExpirationRequest) Unmarshal

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

func (*QueryAllowedAmountExpirationRequest) XXX_DiscardUnknown

func (m *QueryAllowedAmountExpirationRequest) XXX_DiscardUnknown()

func (*QueryAllowedAmountExpirationRequest) XXX_Marshal

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

func (*QueryAllowedAmountExpirationRequest) XXX_Merge

func (*QueryAllowedAmountExpirationRequest) XXX_Size

func (*QueryAllowedAmountExpirationRequest) XXX_Unmarshal

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

type QueryAllowedAmountExpirationResponse

type QueryAllowedAmountExpirationResponse struct {
	Expiration uint64 `protobuf:"varint,1,opt,name=expiration,proto3" json:"expiration,omitempty"`
}

func (*QueryAllowedAmountExpirationResponse) Descriptor

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

func (*QueryAllowedAmountExpirationResponse) GetExpiration

func (m *QueryAllowedAmountExpirationResponse) GetExpiration() uint64

func (*QueryAllowedAmountExpirationResponse) Marshal

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

func (*QueryAllowedAmountExpirationResponse) MarshalTo

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

func (*QueryAllowedAmountExpirationResponse) MarshalToSizedBuffer

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

func (*QueryAllowedAmountExpirationResponse) ProtoMessage

func (*QueryAllowedAmountExpirationResponse) ProtoMessage()

func (*QueryAllowedAmountExpirationResponse) Reset

func (*QueryAllowedAmountExpirationResponse) Size

func (*QueryAllowedAmountExpirationResponse) String

func (*QueryAllowedAmountExpirationResponse) Unmarshal

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

func (*QueryAllowedAmountExpirationResponse) XXX_DiscardUnknown

func (m *QueryAllowedAmountExpirationResponse) XXX_DiscardUnknown()

func (*QueryAllowedAmountExpirationResponse) XXX_Marshal

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

func (*QueryAllowedAmountExpirationResponse) XXX_Merge

func (*QueryAllowedAmountExpirationResponse) XXX_Size

func (*QueryAllowedAmountExpirationResponse) XXX_Unmarshal

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

type QueryAllowedAmountRequest

type QueryAllowedAmountRequest struct {
}

func (*QueryAllowedAmountRequest) Descriptor

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

func (*QueryAllowedAmountRequest) Marshal

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

func (*QueryAllowedAmountRequest) MarshalTo

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

func (*QueryAllowedAmountRequest) MarshalToSizedBuffer

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

func (*QueryAllowedAmountRequest) ProtoMessage

func (*QueryAllowedAmountRequest) ProtoMessage()

func (*QueryAllowedAmountRequest) Reset

func (m *QueryAllowedAmountRequest) Reset()

func (*QueryAllowedAmountRequest) Size

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

func (*QueryAllowedAmountRequest) String

func (m *QueryAllowedAmountRequest) String() string

func (*QueryAllowedAmountRequest) Unmarshal

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

func (*QueryAllowedAmountRequest) XXX_DiscardUnknown

func (m *QueryAllowedAmountRequest) XXX_DiscardUnknown()

func (*QueryAllowedAmountRequest) XXX_Marshal

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

func (*QueryAllowedAmountRequest) XXX_Merge

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

func (*QueryAllowedAmountRequest) XXX_Size

func (m *QueryAllowedAmountRequest) XXX_Size() int

func (*QueryAllowedAmountRequest) XXX_Unmarshal

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

type QueryAllowedAmountResponse

type QueryAllowedAmountResponse struct {
	// allowed_amount defines the currently allowed amount to stake or unstake.
	StakingAmount   cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=staking_amount,json=stakingAmount,proto3,customtype=cosmossdk.io/math.Int" json:"staking_amount"`
	UnstakingAmount cosmossdk_io_math.Int `` /* 129-byte string literal not displayed */
}

func (*QueryAllowedAmountResponse) Descriptor

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

func (*QueryAllowedAmountResponse) Marshal

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

func (*QueryAllowedAmountResponse) MarshalTo

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

func (*QueryAllowedAmountResponse) MarshalToSizedBuffer

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

func (*QueryAllowedAmountResponse) ProtoMessage

func (*QueryAllowedAmountResponse) ProtoMessage()

func (*QueryAllowedAmountResponse) Reset

func (m *QueryAllowedAmountResponse) Reset()

func (*QueryAllowedAmountResponse) Size

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

func (*QueryAllowedAmountResponse) String

func (m *QueryAllowedAmountResponse) String() string

func (*QueryAllowedAmountResponse) Unmarshal

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

func (*QueryAllowedAmountResponse) XXX_DiscardUnknown

func (m *QueryAllowedAmountResponse) XXX_DiscardUnknown()

func (*QueryAllowedAmountResponse) XXX_Marshal

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

func (*QueryAllowedAmountResponse) XXX_Merge

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

func (*QueryAllowedAmountResponse) XXX_Size

func (m *QueryAllowedAmountResponse) XXX_Size() int

func (*QueryAllowedAmountResponse) XXX_Unmarshal

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

type QueryAvailableTipsRequest

type QueryAvailableTipsRequest struct {
	// selector address defines the address of the selector to query for.
	SelectorAddress string `protobuf:"bytes,1,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
}

func (*QueryAvailableTipsRequest) Descriptor

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

func (*QueryAvailableTipsRequest) GetSelectorAddress

func (m *QueryAvailableTipsRequest) GetSelectorAddress() string

func (*QueryAvailableTipsRequest) Marshal

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

func (*QueryAvailableTipsRequest) MarshalTo

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

func (*QueryAvailableTipsRequest) MarshalToSizedBuffer

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

func (*QueryAvailableTipsRequest) ProtoMessage

func (*QueryAvailableTipsRequest) ProtoMessage()

func (*QueryAvailableTipsRequest) Reset

func (m *QueryAvailableTipsRequest) Reset()

func (*QueryAvailableTipsRequest) Size

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

func (*QueryAvailableTipsRequest) String

func (m *QueryAvailableTipsRequest) String() string

func (*QueryAvailableTipsRequest) Unmarshal

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

func (*QueryAvailableTipsRequest) XXX_DiscardUnknown

func (m *QueryAvailableTipsRequest) XXX_DiscardUnknown()

func (*QueryAvailableTipsRequest) XXX_Marshal

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

func (*QueryAvailableTipsRequest) XXX_Merge

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

func (*QueryAvailableTipsRequest) XXX_Size

func (m *QueryAvailableTipsRequest) XXX_Size() int

func (*QueryAvailableTipsRequest) XXX_Unmarshal

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

type QueryAvailableTipsResponse

type QueryAvailableTipsResponse struct {
	// available_tips defines the tips available for withdrawal for a given selector.
	AvailableTips cosmossdk_io_math.Uint `protobuf:"bytes,1,opt,name=available_tips,json=availableTips,proto3,customtype=cosmossdk.io/math.Uint" json:"available_tips"`
}

func (*QueryAvailableTipsResponse) Descriptor

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

func (*QueryAvailableTipsResponse) Marshal

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

func (*QueryAvailableTipsResponse) MarshalTo

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

func (*QueryAvailableTipsResponse) MarshalToSizedBuffer

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

func (*QueryAvailableTipsResponse) ProtoMessage

func (*QueryAvailableTipsResponse) ProtoMessage()

func (*QueryAvailableTipsResponse) Reset

func (m *QueryAvailableTipsResponse) Reset()

func (*QueryAvailableTipsResponse) Size

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

func (*QueryAvailableTipsResponse) String

func (m *QueryAvailableTipsResponse) String() string

func (*QueryAvailableTipsResponse) Unmarshal

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

func (*QueryAvailableTipsResponse) XXX_DiscardUnknown

func (m *QueryAvailableTipsResponse) XXX_DiscardUnknown()

func (*QueryAvailableTipsResponse) XXX_Marshal

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

func (*QueryAvailableTipsResponse) XXX_Merge

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

func (*QueryAvailableTipsResponse) XXX_Size

func (m *QueryAvailableTipsResponse) XXX_Size() int

func (*QueryAvailableTipsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Reporters queries all the staked reporters.
	Reporters(ctx context.Context, in *QueryReportersRequest, opts ...grpc.CallOption) (*QueryReportersResponse, error)
	// SelectorReporter queries the reporter of a selector.
	SelectorReporter(ctx context.Context, in *QuerySelectorReporterRequest, opts ...grpc.CallOption) (*QuerySelectorReporterResponse, error)
	// AllowedAmount queries the currently allowed amount to stake or unstake.
	AllowedAmount(ctx context.Context, in *QueryAllowedAmountRequest, opts ...grpc.CallOption) (*QueryAllowedAmountResponse, error)
	AllowedAmountExpiration(ctx context.Context, in *QueryAllowedAmountExpirationRequest, opts ...grpc.CallOption) (*QueryAllowedAmountExpirationResponse, error)
	// NumOfSelectorsByReporter queries the number of selectors by a reporter.
	NumOfSelectorsByReporter(ctx context.Context, in *QueryNumOfSelectorsByReporterRequest, opts ...grpc.CallOption) (*QueryNumOfSelectorsByReporterResponse, error)
	// SpaceAvailableByReporter queries the space available in a reporter.
	SpaceAvailableByReporter(ctx context.Context, in *QuerySpaceAvailableByReporterRequest, opts ...grpc.CallOption) (*QuerySpaceAvailableByReporterResponse, error)
	// AvailableTips queries the tips available for withdrawal for a given selector.
	AvailableTips(ctx context.Context, in *QueryAvailableTipsRequest, opts ...grpc.CallOption) (*QueryAvailableTipsResponse, 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 QueryNumOfSelectorsByReporterRequest

type QueryNumOfSelectorsByReporterRequest struct {
	// reporter_address defines the reporter address to query for.
	ReporterAddress string `protobuf:"bytes,1,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
}

QueryNumOfSelectorsByReporterRequest is the request type for the Query/NumOfSelectorsByReporter RPC method.

func (*QueryNumOfSelectorsByReporterRequest) Descriptor

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

func (*QueryNumOfSelectorsByReporterRequest) Marshal

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

func (*QueryNumOfSelectorsByReporterRequest) MarshalTo

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

func (*QueryNumOfSelectorsByReporterRequest) MarshalToSizedBuffer

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

func (*QueryNumOfSelectorsByReporterRequest) ProtoMessage

func (*QueryNumOfSelectorsByReporterRequest) ProtoMessage()

func (*QueryNumOfSelectorsByReporterRequest) Reset

func (*QueryNumOfSelectorsByReporterRequest) Size

func (*QueryNumOfSelectorsByReporterRequest) String

func (*QueryNumOfSelectorsByReporterRequest) Unmarshal

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

func (*QueryNumOfSelectorsByReporterRequest) XXX_DiscardUnknown

func (m *QueryNumOfSelectorsByReporterRequest) XXX_DiscardUnknown()

func (*QueryNumOfSelectorsByReporterRequest) XXX_Marshal

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

func (*QueryNumOfSelectorsByReporterRequest) XXX_Merge

func (*QueryNumOfSelectorsByReporterRequest) XXX_Size

func (*QueryNumOfSelectorsByReporterRequest) XXX_Unmarshal

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

type QueryNumOfSelectorsByReporterResponse

type QueryNumOfSelectorsByReporterResponse struct {
	// num_of_selectors defines the number of selectors by a reporter.
	NumOfSelectors int32 `protobuf:"varint,1,opt,name=num_of_selectors,json=numOfSelectors,proto3" json:"num_of_selectors,omitempty"`
}

QueryNumOfSelectorsByReporterResponse is the response type for the Query/NumOfSelectorsByReporter RPC method.

func (*QueryNumOfSelectorsByReporterResponse) Descriptor

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

func (*QueryNumOfSelectorsByReporterResponse) GetNumOfSelectors

func (m *QueryNumOfSelectorsByReporterResponse) GetNumOfSelectors() int32

func (*QueryNumOfSelectorsByReporterResponse) Marshal

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

func (*QueryNumOfSelectorsByReporterResponse) MarshalTo

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

func (*QueryNumOfSelectorsByReporterResponse) MarshalToSizedBuffer

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

func (*QueryNumOfSelectorsByReporterResponse) ProtoMessage

func (*QueryNumOfSelectorsByReporterResponse) ProtoMessage()

func (*QueryNumOfSelectorsByReporterResponse) Reset

func (*QueryNumOfSelectorsByReporterResponse) Size

func (*QueryNumOfSelectorsByReporterResponse) String

func (*QueryNumOfSelectorsByReporterResponse) Unmarshal

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

func (*QueryNumOfSelectorsByReporterResponse) XXX_DiscardUnknown

func (m *QueryNumOfSelectorsByReporterResponse) XXX_DiscardUnknown()

func (*QueryNumOfSelectorsByReporterResponse) XXX_Marshal

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

func (*QueryNumOfSelectorsByReporterResponse) XXX_Merge

func (*QueryNumOfSelectorsByReporterResponse) XXX_Size

func (*QueryNumOfSelectorsByReporterResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryReportersRequest

type QueryReportersRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReportersRequest is the request type for the Query/Reporters RPC method.

func (*QueryReportersRequest) Descriptor

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

func (*QueryReportersRequest) GetPagination

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

func (*QueryReportersRequest) Marshal

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

func (*QueryReportersRequest) MarshalTo

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

func (*QueryReportersRequest) MarshalToSizedBuffer

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

func (*QueryReportersRequest) ProtoMessage

func (*QueryReportersRequest) ProtoMessage()

func (*QueryReportersRequest) Reset

func (m *QueryReportersRequest) Reset()

func (*QueryReportersRequest) Size

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

func (*QueryReportersRequest) String

func (m *QueryReportersRequest) String() string

func (*QueryReportersRequest) Unmarshal

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

func (*QueryReportersRequest) XXX_DiscardUnknown

func (m *QueryReportersRequest) XXX_DiscardUnknown()

func (*QueryReportersRequest) XXX_Marshal

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

func (*QueryReportersRequest) XXX_Merge

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

func (*QueryReportersRequest) XXX_Size

func (m *QueryReportersRequest) XXX_Size() int

func (*QueryReportersRequest) XXX_Unmarshal

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

type QueryReportersResponse

type QueryReportersResponse struct {
	// all the reporters.
	Reporters []*Reporter `protobuf:"bytes,1,rep,name=reporters,proto3" json:"reporters,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryReportersResponse is the response type for the Query/Reporters RPC method.

func (*QueryReportersResponse) Descriptor

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

func (*QueryReportersResponse) GetPagination

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

func (*QueryReportersResponse) GetReporters

func (m *QueryReportersResponse) GetReporters() []*Reporter

func (*QueryReportersResponse) Marshal

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

func (*QueryReportersResponse) MarshalTo

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

func (*QueryReportersResponse) MarshalToSizedBuffer

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

func (*QueryReportersResponse) ProtoMessage

func (*QueryReportersResponse) ProtoMessage()

func (*QueryReportersResponse) Reset

func (m *QueryReportersResponse) Reset()

func (*QueryReportersResponse) Size

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

func (*QueryReportersResponse) String

func (m *QueryReportersResponse) String() string

func (*QueryReportersResponse) Unmarshal

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

func (*QueryReportersResponse) XXX_DiscardUnknown

func (m *QueryReportersResponse) XXX_DiscardUnknown()

func (*QueryReportersResponse) XXX_Marshal

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

func (*QueryReportersResponse) XXX_Merge

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

func (*QueryReportersResponse) XXX_Size

func (m *QueryReportersResponse) XXX_Size() int

func (*QueryReportersResponse) XXX_Unmarshal

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

type QuerySelectorReporterRequest

type QuerySelectorReporterRequest struct {
	// selector_address defines the selector address to query for.
	SelectorAddress string `protobuf:"bytes,1,opt,name=selector_address,json=selectorAddress,proto3" json:"selector_address,omitempty"`
}

QuerySelectorReporterRequest is the request type for the Query/SelectorReporter RPC method.

func (*QuerySelectorReporterRequest) Descriptor

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

func (*QuerySelectorReporterRequest) Marshal

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

func (*QuerySelectorReporterRequest) MarshalTo

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

func (*QuerySelectorReporterRequest) MarshalToSizedBuffer

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

func (*QuerySelectorReporterRequest) ProtoMessage

func (*QuerySelectorReporterRequest) ProtoMessage()

func (*QuerySelectorReporterRequest) Reset

func (m *QuerySelectorReporterRequest) Reset()

func (*QuerySelectorReporterRequest) Size

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

func (*QuerySelectorReporterRequest) String

func (*QuerySelectorReporterRequest) Unmarshal

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

func (*QuerySelectorReporterRequest) XXX_DiscardUnknown

func (m *QuerySelectorReporterRequest) XXX_DiscardUnknown()

func (*QuerySelectorReporterRequest) XXX_Marshal

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

func (*QuerySelectorReporterRequest) XXX_Merge

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

func (*QuerySelectorReporterRequest) XXX_Size

func (m *QuerySelectorReporterRequest) XXX_Size() int

func (*QuerySelectorReporterRequest) XXX_Unmarshal

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

type QuerySelectorReporterResponse

type QuerySelectorReporterResponse struct {
	// reporter defines the reporter of a selector.
	Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"`
}

QuerySelectorReporterResponse is the response type for the Query/SelectorReporter RPC method.

func (*QuerySelectorReporterResponse) Descriptor

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

func (*QuerySelectorReporterResponse) GetReporter

func (m *QuerySelectorReporterResponse) GetReporter() string

func (*QuerySelectorReporterResponse) Marshal

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

func (*QuerySelectorReporterResponse) MarshalTo

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

func (*QuerySelectorReporterResponse) MarshalToSizedBuffer

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

func (*QuerySelectorReporterResponse) ProtoMessage

func (*QuerySelectorReporterResponse) ProtoMessage()

func (*QuerySelectorReporterResponse) Reset

func (m *QuerySelectorReporterResponse) Reset()

func (*QuerySelectorReporterResponse) Size

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

func (*QuerySelectorReporterResponse) String

func (*QuerySelectorReporterResponse) Unmarshal

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

func (*QuerySelectorReporterResponse) XXX_DiscardUnknown

func (m *QuerySelectorReporterResponse) XXX_DiscardUnknown()

func (*QuerySelectorReporterResponse) XXX_Marshal

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

func (*QuerySelectorReporterResponse) XXX_Merge

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

func (*QuerySelectorReporterResponse) XXX_Size

func (m *QuerySelectorReporterResponse) XXX_Size() int

func (*QuerySelectorReporterResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Reporters queries all the staked reporters.
	Reporters(context.Context, *QueryReportersRequest) (*QueryReportersResponse, error)
	// SelectorReporter queries the reporter of a selector.
	SelectorReporter(context.Context, *QuerySelectorReporterRequest) (*QuerySelectorReporterResponse, error)
	// AllowedAmount queries the currently allowed amount to stake or unstake.
	AllowedAmount(context.Context, *QueryAllowedAmountRequest) (*QueryAllowedAmountResponse, error)
	AllowedAmountExpiration(context.Context, *QueryAllowedAmountExpirationRequest) (*QueryAllowedAmountExpirationResponse, error)
	// NumOfSelectorsByReporter queries the number of selectors by a reporter.
	NumOfSelectorsByReporter(context.Context, *QueryNumOfSelectorsByReporterRequest) (*QueryNumOfSelectorsByReporterResponse, error)
	// SpaceAvailableByReporter queries the space available in a reporter.
	SpaceAvailableByReporter(context.Context, *QuerySpaceAvailableByReporterRequest) (*QuerySpaceAvailableByReporterResponse, error)
	// AvailableTips queries the tips available for withdrawal for a given selector.
	AvailableTips(context.Context, *QueryAvailableTipsRequest) (*QueryAvailableTipsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySpaceAvailableByReporterRequest

type QuerySpaceAvailableByReporterRequest struct {
	// reporter_address defines the reporter address to query for.
	ReporterAddress string `protobuf:"bytes,1,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
}

QuerySpaceAvailableByReporterRequest is the request type for the Query/SpaceAvailableByReporter RPC method.

func (*QuerySpaceAvailableByReporterRequest) Descriptor

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

func (*QuerySpaceAvailableByReporterRequest) Marshal

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

func (*QuerySpaceAvailableByReporterRequest) MarshalTo

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

func (*QuerySpaceAvailableByReporterRequest) MarshalToSizedBuffer

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

func (*QuerySpaceAvailableByReporterRequest) ProtoMessage

func (*QuerySpaceAvailableByReporterRequest) ProtoMessage()

func (*QuerySpaceAvailableByReporterRequest) Reset

func (*QuerySpaceAvailableByReporterRequest) Size

func (*QuerySpaceAvailableByReporterRequest) String

func (*QuerySpaceAvailableByReporterRequest) Unmarshal

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

func (*QuerySpaceAvailableByReporterRequest) XXX_DiscardUnknown

func (m *QuerySpaceAvailableByReporterRequest) XXX_DiscardUnknown()

func (*QuerySpaceAvailableByReporterRequest) XXX_Marshal

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

func (*QuerySpaceAvailableByReporterRequest) XXX_Merge

func (*QuerySpaceAvailableByReporterRequest) XXX_Size

func (*QuerySpaceAvailableByReporterRequest) XXX_Unmarshal

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

type QuerySpaceAvailableByReporterResponse

type QuerySpaceAvailableByReporterResponse struct {
	// space_available defines the space available in a reporter.
	SpaceAvailable int32 `protobuf:"varint,1,opt,name=space_available,json=spaceAvailable,proto3" json:"space_available,omitempty"`
}

QuerySpaceAvailableByReporterResponse is the response type for the Query/SpaceAvailableByReporter RPC method.

func (*QuerySpaceAvailableByReporterResponse) Descriptor

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

func (*QuerySpaceAvailableByReporterResponse) GetSpaceAvailable

func (m *QuerySpaceAvailableByReporterResponse) GetSpaceAvailable() int32

func (*QuerySpaceAvailableByReporterResponse) Marshal

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

func (*QuerySpaceAvailableByReporterResponse) MarshalTo

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

func (*QuerySpaceAvailableByReporterResponse) MarshalToSizedBuffer

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

func (*QuerySpaceAvailableByReporterResponse) ProtoMessage

func (*QuerySpaceAvailableByReporterResponse) ProtoMessage()

func (*QuerySpaceAvailableByReporterResponse) Reset

func (*QuerySpaceAvailableByReporterResponse) Size

func (*QuerySpaceAvailableByReporterResponse) String

func (*QuerySpaceAvailableByReporterResponse) Unmarshal

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

func (*QuerySpaceAvailableByReporterResponse) XXX_DiscardUnknown

func (m *QuerySpaceAvailableByReporterResponse) XXX_DiscardUnknown()

func (*QuerySpaceAvailableByReporterResponse) XXX_Marshal

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

func (*QuerySpaceAvailableByReporterResponse) XXX_Merge

func (*QuerySpaceAvailableByReporterResponse) XXX_Size

func (*QuerySpaceAvailableByReporterResponse) XXX_Unmarshal

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

type RegistryKeeper

type RegistryKeeper interface {
	MaxReportBufferWindow(ctx context.Context) (uint64, error)
}

type Reporter

type Reporter struct {
	Address  string          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Metadata *OracleReporter `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*Reporter) Descriptor

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

func (*Reporter) GetAddress

func (m *Reporter) GetAddress() string

func (*Reporter) GetMetadata

func (m *Reporter) GetMetadata() *OracleReporter

func (*Reporter) Marshal

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

func (*Reporter) MarshalTo

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

func (*Reporter) MarshalToSizedBuffer

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

func (*Reporter) ProtoMessage

func (*Reporter) ProtoMessage()

func (*Reporter) Reset

func (m *Reporter) Reset()

func (*Reporter) Size

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

func (*Reporter) String

func (m *Reporter) String() string

func (*Reporter) Unmarshal

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

func (*Reporter) XXX_DiscardUnknown

func (m *Reporter) XXX_DiscardUnknown()

func (*Reporter) XXX_Marshal

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

func (*Reporter) XXX_Merge

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

func (*Reporter) XXX_Size

func (m *Reporter) XXX_Size() int

func (*Reporter) XXX_Unmarshal

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

type Selection

type Selection struct {
	// reporter is the address of the reporter being delegated to
	Reporter []byte `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"`
	// locked_until_time is the time until which the tokens are locked before they
	// can be used for reporting again
	LockedUntilTime  time.Time `protobuf:"bytes,2,opt,name=locked_until_time,json=lockedUntilTime,proto3,stdtime" json:"locked_until_time"`
	DelegationsCount uint64    `protobuf:"varint,3,opt,name=delegations_count,json=delegationsCount,proto3" json:"delegations_count,omitempty"`
}

Selection is a type that represents a delegator's selection

func NewSelection

func NewSelection(reporter []byte, delegationCount uint64) Selection

func (*Selection) Descriptor

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

func (*Selection) GetDelegationsCount

func (m *Selection) GetDelegationsCount() uint64

func (*Selection) GetLockedUntilTime

func (m *Selection) GetLockedUntilTime() time.Time

func (*Selection) GetReporter

func (m *Selection) GetReporter() []byte

func (*Selection) Marshal

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

func (*Selection) MarshalTo

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

func (*Selection) MarshalToSizedBuffer

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

func (*Selection) ProtoMessage

func (*Selection) ProtoMessage()

func (*Selection) Reset

func (m *Selection) Reset()

func (*Selection) Size

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

func (*Selection) String

func (m *Selection) String() string

func (*Selection) Unmarshal

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

func (*Selection) XXX_DiscardUnknown

func (m *Selection) XXX_DiscardUnknown()

func (*Selection) XXX_Marshal

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

func (*Selection) XXX_Merge

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

func (*Selection) XXX_Size

func (m *Selection) XXX_Size() int

func (*Selection) XXX_Unmarshal

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

type StakeTracker

type StakeTracker struct {
	Expiration *time.Time            `protobuf:"bytes,1,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"`
	Amount     cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount" yaml:"amount"`
}

func (*StakeTracker) Descriptor

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

func (*StakeTracker) GetExpiration

func (m *StakeTracker) GetExpiration() *time.Time

func (*StakeTracker) Marshal

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

func (*StakeTracker) MarshalTo

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

func (*StakeTracker) MarshalToSizedBuffer

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

func (*StakeTracker) ProtoMessage

func (*StakeTracker) ProtoMessage()

func (*StakeTracker) Reset

func (m *StakeTracker) Reset()

func (*StakeTracker) Size

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

func (*StakeTracker) String

func (m *StakeTracker) String() string

func (*StakeTracker) Unmarshal

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

func (*StakeTracker) XXX_DiscardUnknown

func (m *StakeTracker) XXX_DiscardUnknown()

func (*StakeTracker) XXX_Marshal

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

func (*StakeTracker) XXX_Merge

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

func (*StakeTracker) XXX_Size

func (m *StakeTracker) XXX_Size() int

func (*StakeTracker) XXX_Unmarshal

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

type StakingHooks

type StakingHooks interface {
	AfterValidatorCreated(ctx context.Context, valAddr sdk.ValAddress) error                           // Must be called when a validator is created
	BeforeValidatorModified(ctx context.Context, valAddr sdk.ValAddress) error                         // Must be called when a validator's state changes
	AfterValidatorRemoved(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error // Must be called when a validator is deleted

	AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error         // Must be called when a validator is bonded
	AfterValidatorBeginUnbonding(ctx context.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error // Must be called when a validator begins unbonding

	BeforeDelegationCreated(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error        // Must be called when a delegation is created
	BeforeDelegationSharesModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error // Must be called when a delegation's shares are modified
	BeforeDelegationRemoved(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error        // Must be called when a delegation is removed
	AfterDelegationModified(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) error
	BeforeValidatorSlashed(ctx context.Context, valAddr sdk.ValAddress, fraction math.LegacyDec) error
}

StakingHooks event hooks for staking validator object (noalias)

type StakingKeeper

type StakingKeeper interface {
	UnbondingTime(ctx context.Context) (time.Duration, error)
	GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error)
	Delegate(
		ctx context.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus,
		validator stakingtypes.Validator, subtractAccount bool,
	) (newShares math.LegacyDec, err error)
	GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd stakingtypes.UnbondingDelegation, err error)
	GetRedelegationsFromSrcValidator(ctx context.Context, valAddr sdk.ValAddress) (reds []stakingtypes.Redelegation, err error)
	RemoveUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
	SetUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
	GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, error)
	Unbond(
		ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares math.LegacyDec,
	) (amount math.Int, err error)
	ValidatorsPowerStoreIterator(ctx context.Context) (store.Iterator, error)
	TotalBondedTokens(context.Context) (math.Int, error)
	GetValidatorSet() stakingtypes.ValidatorSet
	IterateDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress, cb func(delegation stakingtypes.Delegation) (stop bool)) error
	IterateDelegatorUnbondingDelegations(ctx context.Context, delegator sdk.AccAddress, cb func(ubd stakingtypes.UnbondingDelegation) (stop bool)) error
}

StakingKeeper defines the expected interface for the Staking module.

type TokenOriginInfo

type TokenOriginInfo struct {
	// delegator_address is the address of the delegator
	DelegatorAddress []byte `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the address of the validator
	ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// amount is the amount of tokens staked
	Amount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"`
}

TokenOriginInfo is the struct that holds the data of where tokens are staked

func (*TokenOriginInfo) Descriptor

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

func (*TokenOriginInfo) GetDelegatorAddress

func (m *TokenOriginInfo) GetDelegatorAddress() []byte

func (*TokenOriginInfo) GetValidatorAddress

func (m *TokenOriginInfo) GetValidatorAddress() []byte

func (*TokenOriginInfo) Marshal

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

func (*TokenOriginInfo) MarshalTo

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

func (*TokenOriginInfo) MarshalToSizedBuffer

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

func (*TokenOriginInfo) ProtoMessage

func (*TokenOriginInfo) ProtoMessage()

func (*TokenOriginInfo) Reset

func (m *TokenOriginInfo) Reset()

func (*TokenOriginInfo) Size

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

func (*TokenOriginInfo) String

func (m *TokenOriginInfo) String() string

func (*TokenOriginInfo) Unmarshal

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

func (*TokenOriginInfo) XXX_DiscardUnknown

func (m *TokenOriginInfo) XXX_DiscardUnknown()

func (*TokenOriginInfo) XXX_Marshal

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

func (*TokenOriginInfo) XXX_Merge

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

func (*TokenOriginInfo) XXX_Size

func (m *TokenOriginInfo) XXX_Size() int

func (*TokenOriginInfo) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateReporter

func (*UnimplementedMsgServer) RemoveSelector

func (*UnimplementedMsgServer) SelectReporter

func (*UnimplementedMsgServer) SwitchReporter

func (*UnimplementedMsgServer) UnjailReporter

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) WithdrawTip

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllowedAmount

func (*UnimplementedQueryServer) AvailableTips

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Reporters

func (*UnimplementedQueryServer) SelectorReporter

Jump to

Keyboard shortcuts

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