Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgServiceClient) error
- func RegisterMsgServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServiceServer) error
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- type Banker
- type Distributor
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type InflationRateRequest
- func (*InflationRateRequest) Descriptor() ([]byte, []int)
- func (m *InflationRateRequest) Marshal() (dAtA []byte, err error)
- func (m *InflationRateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *InflationRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InflationRateRequest) ProtoMessage()
- func (m *InflationRateRequest) Reset()
- func (m *InflationRateRequest) Size() (n int)
- func (m *InflationRateRequest) String() string
- func (m *InflationRateRequest) Unmarshal(dAtA []byte) error
- func (m *InflationRateRequest) XXX_DiscardUnknown()
- func (m *InflationRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InflationRateRequest) XXX_Merge(src proto.Message)
- func (m *InflationRateRequest) XXX_Size() int
- func (m *InflationRateRequest) XXX_Unmarshal(b []byte) error
- type InflationRateResponse
- func (*InflationRateResponse) Descriptor() ([]byte, []int)
- func (m *InflationRateResponse) Marshal() (dAtA []byte, err error)
- func (m *InflationRateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *InflationRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InflationRateResponse) ProtoMessage()
- func (m *InflationRateResponse) Reset()
- func (m *InflationRateResponse) Size() (n int)
- func (m *InflationRateResponse) String() string
- func (m *InflationRateResponse) Unmarshal(dAtA []byte) error
- func (m *InflationRateResponse) XXX_DiscardUnknown()
- func (m *InflationRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InflationRateResponse) XXX_Merge(src proto.Message)
- func (m *InflationRateResponse) XXX_Size() int
- func (m *InflationRateResponse) XXX_Unmarshal(b []byte) error
- type Minter
- type MsgServiceClient
- type MsgServiceServer
- type MultiSig
- type Nexus
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ParamsRequest
- func (*ParamsRequest) Descriptor() ([]byte, []int)
- func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsRequest) ProtoMessage()
- func (m *ParamsRequest) Reset()
- func (m *ParamsRequest) Size() (n int)
- func (m *ParamsRequest) String() string
- func (m *ParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ParamsRequest) XXX_DiscardUnknown()
- func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsRequest) XXX_Merge(src proto.Message)
- func (m *ParamsRequest) XXX_Size() int
- func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
- type ParamsResponse
- func (*ParamsResponse) Descriptor() ([]byte, []int)
- func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsResponse) ProtoMessage()
- func (m *ParamsResponse) Reset()
- func (m *ParamsResponse) Size() (n int)
- func (m *ParamsResponse) String() string
- func (m *ParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ParamsResponse) XXX_DiscardUnknown()
- func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsResponse) XXX_Merge(src proto.Message)
- func (m *ParamsResponse) XXX_Size() int
- func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m Pool) ValidateBasic() error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type Pool_Reward
- func (*Pool_Reward) Descriptor() ([]byte, []int)
- func (m *Pool_Reward) Marshal() (dAtA []byte, err error)
- func (m *Pool_Reward) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool_Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool_Reward) ProtoMessage()
- func (m *Pool_Reward) Reset()
- func (m *Pool_Reward) Size() (n int)
- func (m *Pool_Reward) String() string
- func (m *Pool_Reward) Unmarshal(dAtA []byte) error
- func (m *Pool_Reward) XXX_DiscardUnknown()
- func (m *Pool_Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool_Reward) XXX_Merge(src proto.Message)
- func (m *Pool_Reward) XXX_Size() int
- func (m *Pool_Reward) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type Refund
- func (*Refund) Descriptor() ([]byte, []int)
- func (m *Refund) Marshal() (dAtA []byte, err error)
- func (m *Refund) MarshalTo(dAtA []byte) (int, error)
- func (m *Refund) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Refund) ProtoMessage()
- func (m *Refund) Reset()
- func (m *Refund) Size() (n int)
- func (m *Refund) String() string
- func (m *Refund) Unmarshal(dAtA []byte) error
- func (m Refund) ValidateBasic() error
- func (m *Refund) XXX_DiscardUnknown()
- func (m *Refund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Refund) XXX_Merge(src proto.Message)
- func (m *Refund) XXX_Size() int
- func (m *Refund) XXX_Unmarshal(b []byte) error
- type RefundMsgRequest
- func (*RefundMsgRequest) Descriptor() ([]byte, []int)
- func (m RefundMsgRequest) GetInnerMessage() exported.Refundable
- func (m RefundMsgRequest) GetSignBytes() []byte
- func (m RefundMsgRequest) GetSigners() []sdk.AccAddress
- func (m *RefundMsgRequest) Marshal() (dAtA []byte, err error)
- func (m *RefundMsgRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RefundMsgRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RefundMsgRequest) ProtoMessage()
- func (m *RefundMsgRequest) Reset()
- func (m RefundMsgRequest) Route() string
- func (m *RefundMsgRequest) Size() (n int)
- func (m *RefundMsgRequest) String() string
- func (m RefundMsgRequest) Type() string
- func (m *RefundMsgRequest) Unmarshal(dAtA []byte) error
- func (m RefundMsgRequest) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (m RefundMsgRequest) ValidateBasic() error
- func (m *RefundMsgRequest) XXX_DiscardUnknown()
- func (m *RefundMsgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefundMsgRequest) XXX_Merge(src proto.Message)
- func (m *RefundMsgRequest) XXX_Size() int
- func (m *RefundMsgRequest) XXX_Unmarshal(b []byte) error
- type RefundMsgResponse
- func (*RefundMsgResponse) Descriptor() ([]byte, []int)
- func (m *RefundMsgResponse) Marshal() (dAtA []byte, err error)
- func (m *RefundMsgResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *RefundMsgResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RefundMsgResponse) ProtoMessage()
- func (m *RefundMsgResponse) Reset()
- func (m *RefundMsgResponse) Size() (n int)
- func (m *RefundMsgResponse) String() string
- func (m *RefundMsgResponse) Unmarshal(dAtA []byte) error
- func (m *RefundMsgResponse) XXX_DiscardUnknown()
- func (m *RefundMsgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefundMsgResponse) XXX_Merge(src proto.Message)
- func (m *RefundMsgResponse) XXX_Size() int
- func (m *RefundMsgResponse) XXX_Unmarshal(b []byte) error
- type Refunder
- type Rewarder
- type Slasher
- type Snapshotter
- type Staker
- type UnimplementedMsgServiceServer
- type UnimplementedQueryServiceServer
Constants ¶
const ( // ModuleName is the name of the module ModuleName = "reward" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for legacy query routing QuerierRoute = ModuleName )
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyExternalChainVotingInflationRate = []byte("ExternalChainVotingInflationRate") KeyKeyMgmtRelativeInflationRate = []byte("KeyMgmtRelativeInflationRate") )
Parameter store keys
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
ErrReward = sdkerrors.Register(ModuleName, 2, "reward module error")
)
module errors
var ModuleCdc = codec.NewAminoCodec(amino)
ModuleCdc defines the module codec
Functions ¶
func KeyTable ¶
func KeyTable() paramtypes.KeyTable
KeyTable retrieves a subspace table for the module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers types and interfaces with the given registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on codec
func RegisterMsgServiceHandler ¶ added in v0.9.0
func RegisterMsgServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMsgServiceHandler registers the http handlers for service MsgService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgServiceHandlerClient ¶ added in v0.9.0
func RegisterMsgServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgServiceClient) error
RegisterMsgServiceHandlerClient registers the http handlers for service MsgService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgServiceClient" to call the correct interceptors.
func RegisterMsgServiceHandlerFromEndpoint ¶ added in v0.9.0
func RegisterMsgServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgServiceHandlerFromEndpoint is same as RegisterMsgServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgServiceHandlerServer ¶ added in v0.9.0
func RegisterMsgServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServiceServer) error
RegisterMsgServiceHandlerServer registers the http handlers for service MsgService to "mux". UnaryRPC :call MsgServiceServer 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgServiceHandlerFromEndpoint instead.
func RegisterMsgServiceServer ¶ added in v0.9.0
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶ added in v0.33.1
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶ added in v0.33.1
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶ added in v0.33.1
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶ added in v0.33.1
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶ added in v0.33.1
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
Types ¶
type Banker ¶
type Banker interface { SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error }
Banker provides bank functionality
type Distributor ¶
type Distributor interface {
AllocateTokensToValidator(ctx sdk.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins)
}
Distributor provides distribution functionality
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Pools []Pool `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools"` }
GenesisState represents the genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a genesis state with default parameters
func GetGenesisStateFromAppState ¶ added in v0.9.0
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/reward GenesisState given raw application genesis state.
func NewGenesisState ¶ added in v0.9.0
func NewGenesisState(params Params, pools []Pool) *GenesisState
NewGenesisState is the constructor for GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 (m GenesisState) Validate() error
Validate performs a validation check on the genesis parameters
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 InflationRateRequest ¶ added in v0.33.1
type InflationRateRequest struct {
Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
}
InflationRateRequest represents a message that queries the Axelar specific inflation RPC method. Ideally, this would use ValAddress as the validator field type. However, this makes it awkward for REST-based calls, because it would expect a byte array as part of the url. So, the bech32 encoded address string is used for this request instead.
func (*InflationRateRequest) Descriptor ¶ added in v0.33.1
func (*InflationRateRequest) Descriptor() ([]byte, []int)
func (*InflationRateRequest) Marshal ¶ added in v0.33.1
func (m *InflationRateRequest) Marshal() (dAtA []byte, err error)
func (*InflationRateRequest) MarshalTo ¶ added in v0.33.1
func (m *InflationRateRequest) MarshalTo(dAtA []byte) (int, error)
func (*InflationRateRequest) MarshalToSizedBuffer ¶ added in v0.33.1
func (m *InflationRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InflationRateRequest) ProtoMessage ¶ added in v0.33.1
func (*InflationRateRequest) ProtoMessage()
func (*InflationRateRequest) Reset ¶ added in v0.33.1
func (m *InflationRateRequest) Reset()
func (*InflationRateRequest) Size ¶ added in v0.33.1
func (m *InflationRateRequest) Size() (n int)
func (*InflationRateRequest) String ¶ added in v0.33.1
func (m *InflationRateRequest) String() string
func (*InflationRateRequest) Unmarshal ¶ added in v0.33.1
func (m *InflationRateRequest) Unmarshal(dAtA []byte) error
func (*InflationRateRequest) XXX_DiscardUnknown ¶ added in v0.33.1
func (m *InflationRateRequest) XXX_DiscardUnknown()
func (*InflationRateRequest) XXX_Marshal ¶ added in v0.33.1
func (m *InflationRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InflationRateRequest) XXX_Merge ¶ added in v0.33.1
func (m *InflationRateRequest) XXX_Merge(src proto.Message)
func (*InflationRateRequest) XXX_Size ¶ added in v0.33.1
func (m *InflationRateRequest) XXX_Size() int
func (*InflationRateRequest) XXX_Unmarshal ¶ added in v0.33.1
func (m *InflationRateRequest) XXX_Unmarshal(b []byte) error
type InflationRateResponse ¶ added in v0.33.1
type InflationRateResponse struct {
InflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
}
func (*InflationRateResponse) Descriptor ¶ added in v0.33.1
func (*InflationRateResponse) Descriptor() ([]byte, []int)
func (*InflationRateResponse) Marshal ¶ added in v0.33.1
func (m *InflationRateResponse) Marshal() (dAtA []byte, err error)
func (*InflationRateResponse) MarshalTo ¶ added in v0.33.1
func (m *InflationRateResponse) MarshalTo(dAtA []byte) (int, error)
func (*InflationRateResponse) MarshalToSizedBuffer ¶ added in v0.33.1
func (m *InflationRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InflationRateResponse) ProtoMessage ¶ added in v0.33.1
func (*InflationRateResponse) ProtoMessage()
func (*InflationRateResponse) Reset ¶ added in v0.33.1
func (m *InflationRateResponse) Reset()
func (*InflationRateResponse) Size ¶ added in v0.33.1
func (m *InflationRateResponse) Size() (n int)
func (*InflationRateResponse) String ¶ added in v0.33.1
func (m *InflationRateResponse) String() string
func (*InflationRateResponse) Unmarshal ¶ added in v0.33.1
func (m *InflationRateResponse) Unmarshal(dAtA []byte) error
func (*InflationRateResponse) XXX_DiscardUnknown ¶ added in v0.33.1
func (m *InflationRateResponse) XXX_DiscardUnknown()
func (*InflationRateResponse) XXX_Marshal ¶ added in v0.33.1
func (m *InflationRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InflationRateResponse) XXX_Merge ¶ added in v0.33.1
func (m *InflationRateResponse) XXX_Merge(src proto.Message)
func (*InflationRateResponse) XXX_Size ¶ added in v0.33.1
func (m *InflationRateResponse) XXX_Size() int
func (*InflationRateResponse) XXX_Unmarshal ¶ added in v0.33.1
func (m *InflationRateResponse) XXX_Unmarshal(b []byte) error
type Minter ¶
type Minter interface { GetParams(ctx sdk.Context) minttypes.Params StakingTokenSupply(ctx sdk.Context) sdk.Int GetMinter(ctx sdk.Context) minttypes.Minter }
Minter provides mint functionality
type MsgServiceClient ¶ added in v0.9.0
type MsgServiceClient interface {
RefundMsg(ctx context.Context, in *RefundMsgRequest, opts ...grpc.CallOption) (*RefundMsgResponse, error)
}
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶ added in v0.9.0
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶ added in v0.9.0
type MsgServiceServer interface {
RefundMsg(context.Context, *RefundMsgRequest) (*RefundMsgResponse, error)
}
MsgServiceServer is the server API for MsgService service.
type MultiSig ¶ added in v0.21.0
type MultiSig interface {
HasOptedOut(ctx sdk.Context, participant sdk.AccAddress) bool
}
MultiSig provides mutlisig functionality
type Nexus ¶
type Nexus interface { GetChains(ctx sdk.Context) []nexus.Chain GetChainMaintainers(ctx sdk.Context, chain nexus.Chain) []sdk.ValAddress IsChainActivated(ctx sdk.Context, chain nexus.Chain) bool }
Nexus provides nexus functionality
type Params ¶
type Params struct { ExternalChainVotingInflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 203-byte string literal not displayed */ KeyMgmtRelativeInflationRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 191-byte string literal not displayed */ }
Params represent the genesis parameters for the module
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (m *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of reward module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ParamsRequest ¶ added in v0.33.1
type ParamsRequest struct { }
ParamsRequest represents a message that queries the params
func (*ParamsRequest) Descriptor ¶ added in v0.33.1
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶ added in v0.33.1
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalTo ¶ added in v0.33.1
func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ParamsRequest) MarshalToSizedBuffer ¶ added in v0.33.1
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶ added in v0.33.1
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶ added in v0.33.1
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶ added in v0.33.1
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶ added in v0.33.1
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶ added in v0.33.1
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶ added in v0.33.1
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶ added in v0.33.1
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶ added in v0.33.1
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶ added in v0.33.1
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶ added in v0.33.1
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶ added in v0.33.1
type ParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*ParamsResponse) Descriptor ¶ added in v0.33.1
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) Marshal ¶ added in v0.33.1
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalTo ¶ added in v0.33.1
func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ParamsResponse) MarshalToSizedBuffer ¶ added in v0.33.1
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶ added in v0.33.1
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶ added in v0.33.1
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶ added in v0.33.1
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶ added in v0.33.1
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶ added in v0.33.1
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶ added in v0.33.1
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶ added in v0.33.1
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶ added in v0.33.1
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶ added in v0.33.1
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶ added in v0.33.1
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type Pool ¶
type Pool struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Rewards []Pool_Reward `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards"` }
func (*Pool) Descriptor ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (Pool) ValidateBasic ¶ added in v0.27.0
ValidateBasic returns an error if the Pool is not valid; nil otherwise
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type Pool_Reward ¶
type Pool_Reward struct { Validator github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 126-byte string literal not displayed */ Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
func (*Pool_Reward) Descriptor ¶
func (*Pool_Reward) Descriptor() ([]byte, []int)
func (*Pool_Reward) Marshal ¶
func (m *Pool_Reward) Marshal() (dAtA []byte, err error)
func (*Pool_Reward) MarshalToSizedBuffer ¶
func (m *Pool_Reward) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Pool_Reward) ProtoMessage ¶
func (*Pool_Reward) ProtoMessage()
func (*Pool_Reward) Reset ¶
func (m *Pool_Reward) Reset()
func (*Pool_Reward) Size ¶
func (m *Pool_Reward) Size() (n int)
func (*Pool_Reward) String ¶
func (m *Pool_Reward) String() string
func (*Pool_Reward) Unmarshal ¶
func (m *Pool_Reward) Unmarshal(dAtA []byte) error
func (*Pool_Reward) XXX_DiscardUnknown ¶
func (m *Pool_Reward) XXX_DiscardUnknown()
func (*Pool_Reward) XXX_Marshal ¶
func (m *Pool_Reward) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Pool_Reward) XXX_Merge ¶
func (m *Pool_Reward) XXX_Merge(src proto.Message)
func (*Pool_Reward) XXX_Size ¶
func (m *Pool_Reward) XXX_Size() int
func (*Pool_Reward) XXX_Unmarshal ¶
func (m *Pool_Reward) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶ added in v0.33.1
type QueryServiceClient interface { InflationRate(ctx context.Context, in *InflationRateRequest, opts ...grpc.CallOption) (*InflationRateResponse, error) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶ added in v0.33.1
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶ added in v0.33.1
type QueryServiceServer interface { InflationRate(context.Context, *InflationRateRequest) (*InflationRateResponse, error) Params(context.Context, *ParamsRequest) (*ParamsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type Refund ¶ added in v0.15.0
type Refund struct { Payer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=payer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"payer,omitempty"` Fees github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fees"` }
func (*Refund) Descriptor ¶ added in v0.15.0
func (*Refund) MarshalToSizedBuffer ¶ added in v0.15.0
func (*Refund) ProtoMessage ¶ added in v0.15.0
func (*Refund) ProtoMessage()
func (Refund) ValidateBasic ¶ added in v0.27.0
ValidateBasic returns an error if the Refund is not valid; nil otherwise
func (*Refund) XXX_DiscardUnknown ¶ added in v0.15.0
func (m *Refund) XXX_DiscardUnknown()
func (*Refund) XXX_Marshal ¶ added in v0.15.0
func (*Refund) XXX_Unmarshal ¶ added in v0.15.0
type RefundMsgRequest ¶ added in v0.9.0
type RefundMsgRequest struct { Sender github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"` InnerMessage *types.Any `protobuf:"bytes,2,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` }
func NewRefundMsgRequest ¶ added in v0.9.0
func NewRefundMsgRequest(sender sdk.AccAddress, innerMessage sdk.Msg) *RefundMsgRequest
NewRefundMsgRequest creates a message of type RefundMsgRequest
func (*RefundMsgRequest) Descriptor ¶ added in v0.9.0
func (*RefundMsgRequest) Descriptor() ([]byte, []int)
func (RefundMsgRequest) GetInnerMessage ¶ added in v0.9.0
func (m RefundMsgRequest) GetInnerMessage() exported.Refundable
GetInnerMessage unwrap the inner message
func (RefundMsgRequest) GetSignBytes ¶ added in v0.9.0
func (m RefundMsgRequest) GetSignBytes() []byte
GetSignBytes returns the message bytes that need to be signed
func (RefundMsgRequest) GetSigners ¶ added in v0.9.0
func (m RefundMsgRequest) GetSigners() []sdk.AccAddress
GetSigners returns the set of signers for this message
func (*RefundMsgRequest) Marshal ¶ added in v0.9.0
func (m *RefundMsgRequest) Marshal() (dAtA []byte, err error)
func (*RefundMsgRequest) MarshalTo ¶ added in v0.9.0
func (m *RefundMsgRequest) MarshalTo(dAtA []byte) (int, error)
func (*RefundMsgRequest) MarshalToSizedBuffer ¶ added in v0.9.0
func (m *RefundMsgRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RefundMsgRequest) ProtoMessage ¶ added in v0.9.0
func (*RefundMsgRequest) ProtoMessage()
func (*RefundMsgRequest) Reset ¶ added in v0.9.0
func (m *RefundMsgRequest) Reset()
func (RefundMsgRequest) Route ¶ added in v0.9.0
func (m RefundMsgRequest) Route() string
Route returns the route for this message
func (*RefundMsgRequest) Size ¶ added in v0.9.0
func (m *RefundMsgRequest) Size() (n int)
func (*RefundMsgRequest) String ¶ added in v0.9.0
func (m *RefundMsgRequest) String() string
func (RefundMsgRequest) Type ¶ added in v0.9.0
func (m RefundMsgRequest) Type() string
Type returns the type of the message
func (*RefundMsgRequest) Unmarshal ¶ added in v0.9.0
func (m *RefundMsgRequest) Unmarshal(dAtA []byte) error
func (RefundMsgRequest) UnpackInterfaces ¶ added in v0.9.0
func (m RefundMsgRequest) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage
func (RefundMsgRequest) ValidateBasic ¶ added in v0.9.0
func (m RefundMsgRequest) ValidateBasic() error
ValidateBasic executes a stateless message validation
func (*RefundMsgRequest) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *RefundMsgRequest) XXX_DiscardUnknown()
func (*RefundMsgRequest) XXX_Marshal ¶ added in v0.9.0
func (m *RefundMsgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefundMsgRequest) XXX_Merge ¶ added in v0.9.0
func (m *RefundMsgRequest) XXX_Merge(src proto.Message)
func (*RefundMsgRequest) XXX_Size ¶ added in v0.9.0
func (m *RefundMsgRequest) XXX_Size() int
func (*RefundMsgRequest) XXX_Unmarshal ¶ added in v0.9.0
func (m *RefundMsgRequest) XXX_Unmarshal(b []byte) error
type RefundMsgResponse ¶ added in v0.9.0
type RefundMsgResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Log string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` }
func (*RefundMsgResponse) Descriptor ¶ added in v0.9.0
func (*RefundMsgResponse) Descriptor() ([]byte, []int)
func (*RefundMsgResponse) Marshal ¶ added in v0.9.0
func (m *RefundMsgResponse) Marshal() (dAtA []byte, err error)
func (*RefundMsgResponse) MarshalTo ¶ added in v0.9.0
func (m *RefundMsgResponse) MarshalTo(dAtA []byte) (int, error)
func (*RefundMsgResponse) MarshalToSizedBuffer ¶ added in v0.9.0
func (m *RefundMsgResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RefundMsgResponse) ProtoMessage ¶ added in v0.9.0
func (*RefundMsgResponse) ProtoMessage()
func (*RefundMsgResponse) Reset ¶ added in v0.9.0
func (m *RefundMsgResponse) Reset()
func (*RefundMsgResponse) Size ¶ added in v0.9.0
func (m *RefundMsgResponse) Size() (n int)
func (*RefundMsgResponse) String ¶ added in v0.9.0
func (m *RefundMsgResponse) String() string
func (*RefundMsgResponse) Unmarshal ¶ added in v0.9.0
func (m *RefundMsgResponse) Unmarshal(dAtA []byte) error
func (*RefundMsgResponse) XXX_DiscardUnknown ¶ added in v0.9.0
func (m *RefundMsgResponse) XXX_DiscardUnknown()
func (*RefundMsgResponse) XXX_Marshal ¶ added in v0.9.0
func (m *RefundMsgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefundMsgResponse) XXX_Merge ¶ added in v0.9.0
func (m *RefundMsgResponse) XXX_Merge(src proto.Message)
func (*RefundMsgResponse) XXX_Size ¶ added in v0.9.0
func (m *RefundMsgResponse) XXX_Size() int
func (*RefundMsgResponse) XXX_Unmarshal ¶ added in v0.9.0
func (m *RefundMsgResponse) XXX_Unmarshal(b []byte) error
type Refunder ¶ added in v0.9.0
type Refunder interface { Logger(ctx sdk.Context) log.Logger GetPendingRefund(ctx sdk.Context, req RefundMsgRequest) (Refund, bool) DeletePendingRefund(ctx sdk.Context, req RefundMsgRequest) }
Refunder provides refunding functionality
type Rewarder ¶
type Rewarder interface { Logger(ctx sdk.Context) log.Logger GetParams(ctx sdk.Context) (params Params) GetPool(ctx sdk.Context, name string) exported.RewardPool }
Rewarder provides reward functionality
type Slasher ¶ added in v0.21.0
type Slasher interface {
IsTombstoned(ctx sdk.Context, consAddr sdk.ConsAddress) bool // whether a validator is tombstoned
}
Slasher provides necessary functions to the validator information
type Snapshotter ¶
type Snapshotter interface {
GetProxy(ctx sdk.Context, operator sdk.ValAddress) (sdk.AccAddress, bool)
}
Snapshotter provides snapshot functionality
type Staker ¶
type Staker interface { Validator(ctx sdk.Context, addr sdk.ValAddress) stakingtypes.ValidatorI PowerReduction(ctx sdk.Context) sdk.Int IterateBondedValidatorsByPower(ctx sdk.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool)) }
Staker provides stake functionality
type UnimplementedMsgServiceServer ¶ added in v0.9.0
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) RefundMsg ¶ added in v0.9.0
func (*UnimplementedMsgServiceServer) RefundMsg(ctx context.Context, req *RefundMsgRequest) (*RefundMsgResponse, error)
type UnimplementedQueryServiceServer ¶ added in v0.33.1
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) InflationRate ¶ added in v0.33.1
func (*UnimplementedQueryServiceServer) InflationRate(ctx context.Context, req *InflationRateRequest) (*InflationRateResponse, error)
func (*UnimplementedQueryServiceServer) Params ¶ added in v0.33.1
func (*UnimplementedQueryServiceServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)