Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type CapacityResult
- func (*CapacityResult) Descriptor() ([]byte, []int)
- func (m *CapacityResult) GetPeriodSec() uint32
- func (m *CapacityResult) Marshal() (dAtA []byte, err error)
- func (m *CapacityResult) MarshalTo(dAtA []byte) (int, error)
- func (m *CapacityResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CapacityResult) ProtoMessage()
- func (m *CapacityResult) Reset()
- func (m *CapacityResult) Size() (n int)
- func (m *CapacityResult) String() string
- func (m *CapacityResult) Unmarshal(dAtA []byte) error
- func (m *CapacityResult) XXX_DiscardUnknown()
- func (m *CapacityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CapacityResult) XXX_Merge(src proto.Message)
- func (m *CapacityResult) XXX_Size() int
- func (m *CapacityResult) XXX_Unmarshal(b []byte) error
- type DenomCapacity
- func (*DenomCapacity) Descriptor() ([]byte, []int)
- func (m *DenomCapacity) GetDenom() string
- func (m *DenomCapacity) Marshal() (dAtA []byte, err error)
- func (m *DenomCapacity) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomCapacity) ProtoMessage()
- func (m *DenomCapacity) Reset()
- func (m *DenomCapacity) Size() (n int)
- func (m *DenomCapacity) String() string
- func (m *DenomCapacity) Unmarshal(dAtA []byte) error
- func (m *DenomCapacity) XXX_DiscardUnknown()
- func (m *DenomCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomCapacity) XXX_Merge(src proto.Message)
- func (m *DenomCapacity) XXX_Size() int
- func (m *DenomCapacity) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLimitParamsList() []LimitParams
- 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 (gs 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 LimitParams
- func (*LimitParams) Descriptor() ([]byte, []int)
- func (m *LimitParams) GetDenom() string
- func (m *LimitParams) GetLimiters() []Limiter
- func (m *LimitParams) Marshal() (dAtA []byte, err error)
- func (m *LimitParams) MarshalTo(dAtA []byte) (int, error)
- func (m *LimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LimitParams) ProtoMessage()
- func (m *LimitParams) Reset()
- func (m *LimitParams) Size() (n int)
- func (m *LimitParams) String() string
- func (m *LimitParams) Unmarshal(dAtA []byte) error
- func (p *LimitParams) Validate() error
- func (m *LimitParams) XXX_DiscardUnknown()
- func (m *LimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimitParams) XXX_Merge(src proto.Message)
- func (m *LimitParams) XXX_Size() int
- func (m *LimitParams) XXX_Unmarshal(b []byte) error
- type Limiter
- func (*Limiter) Descriptor() ([]byte, []int)
- func (m *Limiter) GetBaselineTvlPpm() uint32
- func (m *Limiter) GetPeriodSec() uint32
- func (m *Limiter) Marshal() (dAtA []byte, err error)
- func (m *Limiter) MarshalTo(dAtA []byte) (int, error)
- func (m *Limiter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Limiter) ProtoMessage()
- func (m *Limiter) Reset()
- func (m *Limiter) Size() (n int)
- func (m *Limiter) String() string
- func (m *Limiter) Unmarshal(dAtA []byte) error
- func (m *Limiter) XXX_DiscardUnknown()
- func (m *Limiter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Limiter) XXX_Merge(src proto.Message)
- func (m *Limiter) XXX_Size() int
- func (m *Limiter) XXX_Unmarshal(b []byte) error
- type ListLimitParamsRequest
- func (*ListLimitParamsRequest) Descriptor() ([]byte, []int)
- func (m *ListLimitParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListLimitParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListLimitParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListLimitParamsRequest) ProtoMessage()
- func (m *ListLimitParamsRequest) Reset()
- func (m *ListLimitParamsRequest) Size() (n int)
- func (m *ListLimitParamsRequest) String() string
- func (m *ListLimitParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ListLimitParamsRequest) XXX_DiscardUnknown()
- func (m *ListLimitParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListLimitParamsRequest) XXX_Merge(src proto.Message)
- func (m *ListLimitParamsRequest) XXX_Size() int
- func (m *ListLimitParamsRequest) XXX_Unmarshal(b []byte) error
- type ListLimitParamsResponse
- func (*ListLimitParamsResponse) Descriptor() ([]byte, []int)
- func (m *ListLimitParamsResponse) GetLimitParamsList() []*LimitParams
- func (m *ListLimitParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListLimitParamsResponse) ProtoMessage()
- func (m *ListLimitParamsResponse) Reset()
- func (m *ListLimitParamsResponse) Size() (n int)
- func (m *ListLimitParamsResponse) String() string
- func (m *ListLimitParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ListLimitParamsResponse) XXX_DiscardUnknown()
- func (m *ListLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListLimitParamsResponse) XXX_Merge(src proto.Message)
- func (m *ListLimitParamsResponse) XXX_Size() int
- func (m *ListLimitParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeleteLimitParams
- func (*MsgDeleteLimitParams) Descriptor() ([]byte, []int)
- func (m *MsgDeleteLimitParams) GetAuthority() string
- func (m *MsgDeleteLimitParams) GetDenom() string
- func (m *MsgDeleteLimitParams) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteLimitParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteLimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteLimitParams) ProtoMessage()
- func (m *MsgDeleteLimitParams) Reset()
- func (m *MsgDeleteLimitParams) Size() (n int)
- func (m *MsgDeleteLimitParams) String() string
- func (m *MsgDeleteLimitParams) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteLimitParams) XXX_DiscardUnknown()
- func (m *MsgDeleteLimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteLimitParams) XXX_Merge(src proto.Message)
- func (m *MsgDeleteLimitParams) XXX_Size() int
- func (m *MsgDeleteLimitParams) XXX_Unmarshal(b []byte) error
- type MsgDeleteLimitParamsResponse
- func (*MsgDeleteLimitParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteLimitParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteLimitParamsResponse) ProtoMessage()
- func (m *MsgDeleteLimitParamsResponse) Reset()
- func (m *MsgDeleteLimitParamsResponse) Size() (n int)
- func (m *MsgDeleteLimitParamsResponse) String() string
- func (m *MsgDeleteLimitParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteLimitParamsResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteLimitParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteLimitParamsResponse) XXX_Size() int
- func (m *MsgDeleteLimitParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetLimitParams
- func (*MsgSetLimitParams) Descriptor() ([]byte, []int)
- func (m *MsgSetLimitParams) GetAuthority() string
- func (m *MsgSetLimitParams) GetLimitParams() *LimitParams
- func (msg *MsgSetLimitParams) GetSigners() []sdk.AccAddress
- func (m *MsgSetLimitParams) Marshal() (dAtA []byte, err error)
- func (m *MsgSetLimitParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetLimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetLimitParams) ProtoMessage()
- func (m *MsgSetLimitParams) Reset()
- func (m *MsgSetLimitParams) Size() (n int)
- func (m *MsgSetLimitParams) String() string
- func (m *MsgSetLimitParams) Unmarshal(dAtA []byte) error
- func (msg *MsgSetLimitParams) ValidateBasic() error
- func (m *MsgSetLimitParams) XXX_DiscardUnknown()
- func (m *MsgSetLimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetLimitParams) XXX_Merge(src proto.Message)
- func (m *MsgSetLimitParams) XXX_Size() int
- func (m *MsgSetLimitParams) XXX_Unmarshal(b []byte) error
- type MsgSetLimitParamsResponse
- func (*MsgSetLimitParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetLimitParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetLimitParamsResponse) ProtoMessage()
- func (m *MsgSetLimitParamsResponse) Reset()
- func (m *MsgSetLimitParamsResponse) Size() (n int)
- func (m *MsgSetLimitParamsResponse) String() string
- func (m *MsgSetLimitParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetLimitParamsResponse) XXX_DiscardUnknown()
- func (m *MsgSetLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetLimitParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetLimitParamsResponse) XXX_Size() int
- func (m *MsgSetLimitParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryCapacityByDenomRequest
- func (*QueryCapacityByDenomRequest) Descriptor() ([]byte, []int)
- func (m *QueryCapacityByDenomRequest) GetDenom() string
- func (m *QueryCapacityByDenomRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCapacityByDenomRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCapacityByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCapacityByDenomRequest) ProtoMessage()
- func (m *QueryCapacityByDenomRequest) Reset()
- func (m *QueryCapacityByDenomRequest) Size() (n int)
- func (m *QueryCapacityByDenomRequest) String() string
- func (m *QueryCapacityByDenomRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCapacityByDenomRequest) XXX_DiscardUnknown()
- func (m *QueryCapacityByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCapacityByDenomRequest) XXX_Merge(src proto.Message)
- func (m *QueryCapacityByDenomRequest) XXX_Size() int
- func (m *QueryCapacityByDenomRequest) XXX_Unmarshal(b []byte) error
- type QueryCapacityByDenomResponse
- func (*QueryCapacityByDenomResponse) Descriptor() ([]byte, []int)
- func (m *QueryCapacityByDenomResponse) GetResults() []*CapacityResult
- func (m *QueryCapacityByDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCapacityByDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCapacityByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCapacityByDenomResponse) ProtoMessage()
- func (m *QueryCapacityByDenomResponse) Reset()
- func (m *QueryCapacityByDenomResponse) Size() (n int)
- func (m *QueryCapacityByDenomResponse) String() string
- func (m *QueryCapacityByDenomResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCapacityByDenomResponse) XXX_DiscardUnknown()
- func (m *QueryCapacityByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCapacityByDenomResponse) XXX_Merge(src proto.Message)
- func (m *QueryCapacityByDenomResponse) XXX_Size() int
- func (m *QueryCapacityByDenomResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name // Use `ratelimit` instead of `ratelimit` to prevent potential key space conflicts with the IBC module. ModuleName = "ratelimit" // StoreKey defines the primary module store key StoreKey = ModuleName // DenomCapacityKeyPrefix is the prefix for the key-value store for DenomCapacity DenomCapacityKeyPrefix = "DenomCapacity:" // LimitParamsKeyPrefix is the prefix for the key-value store for LimitParams LimitParamsKeyPrefix = "LimitParams:" )
Module name and store keys
Variables ¶
var ( ErrInvalidLengthCapacity = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCapacity = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCapacity = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidAuthority = errorsmod.Register( ModuleName, 1001, "Authority is invalid", ) ErrWithdrawalExceedsCapacity = errorsmod.Register( ModuleName, 1002, "withdrawal amount would exceed rate-limit capacity", ) )
x/ratelimit module sentinel errors
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 ( ErrInvalidLengthLimitParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLimitParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLimitParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 CapacityResult ¶
type CapacityResult struct { PeriodSec uint32 `protobuf:"varint,1,opt,name=period_sec,json=periodSec,proto3" json:"period_sec,omitempty"` Capacity github_com_jinxprotocol_v4_chain_protocol_dtypes.SerializableInt `` /* 135-byte string literal not displayed */ }
CapacityResult is a specific rate limit for a denom.
func (*CapacityResult) Descriptor ¶
func (*CapacityResult) Descriptor() ([]byte, []int)
func (*CapacityResult) GetPeriodSec ¶
func (m *CapacityResult) GetPeriodSec() uint32
func (*CapacityResult) Marshal ¶
func (m *CapacityResult) Marshal() (dAtA []byte, err error)
func (*CapacityResult) MarshalToSizedBuffer ¶
func (m *CapacityResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CapacityResult) ProtoMessage ¶
func (*CapacityResult) ProtoMessage()
func (*CapacityResult) Reset ¶
func (m *CapacityResult) Reset()
func (*CapacityResult) Size ¶
func (m *CapacityResult) Size() (n int)
func (*CapacityResult) String ¶
func (m *CapacityResult) String() string
func (*CapacityResult) Unmarshal ¶
func (m *CapacityResult) Unmarshal(dAtA []byte) error
func (*CapacityResult) XXX_DiscardUnknown ¶
func (m *CapacityResult) XXX_DiscardUnknown()
func (*CapacityResult) XXX_Marshal ¶
func (m *CapacityResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CapacityResult) XXX_Merge ¶
func (m *CapacityResult) XXX_Merge(src proto.Message)
func (*CapacityResult) XXX_Size ¶
func (m *CapacityResult) XXX_Size() int
func (*CapacityResult) XXX_Unmarshal ¶
func (m *CapacityResult) XXX_Unmarshal(b []byte) error
type DenomCapacity ¶
type DenomCapacity struct { // denom is the denomination of the token being rate limited. // e.g. ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5 Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // capacity_list is a list of capacity amount tracked for each `Limiter` // on the denom. This list has a 1:1 mapping to `limiter` list under // `LimitParams`. CapacityList []github_com_jinxprotocol_v4_chain_protocol_dtypes.SerializableInt `` /* 163-byte string literal not displayed */ }
DenomCapacity stores a list of rate limit capacity for a denom.
func (*DenomCapacity) Descriptor ¶
func (*DenomCapacity) Descriptor() ([]byte, []int)
func (*DenomCapacity) GetDenom ¶
func (m *DenomCapacity) GetDenom() string
func (*DenomCapacity) Marshal ¶
func (m *DenomCapacity) Marshal() (dAtA []byte, err error)
func (*DenomCapacity) MarshalToSizedBuffer ¶
func (m *DenomCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomCapacity) ProtoMessage ¶
func (*DenomCapacity) ProtoMessage()
func (*DenomCapacity) Reset ¶
func (m *DenomCapacity) Reset()
func (*DenomCapacity) Size ¶
func (m *DenomCapacity) Size() (n int)
func (*DenomCapacity) String ¶
func (m *DenomCapacity) String() string
func (*DenomCapacity) Unmarshal ¶
func (m *DenomCapacity) Unmarshal(dAtA []byte) error
func (*DenomCapacity) XXX_DiscardUnknown ¶
func (m *DenomCapacity) XXX_DiscardUnknown()
func (*DenomCapacity) XXX_Marshal ¶
func (m *DenomCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomCapacity) XXX_Merge ¶
func (m *DenomCapacity) XXX_Merge(src proto.Message)
func (*DenomCapacity) XXX_Size ¶
func (m *DenomCapacity) XXX_Size() int
func (*DenomCapacity) XXX_Unmarshal ¶
func (m *DenomCapacity) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // limit_params_list defines the list of `LimitParams` at genesis. LimitParamsList []LimitParams `protobuf:"bytes,1,rep,name=limit_params_list,json=limitParamsList,proto3" json:"limit_params_list"` }
GenesisState defines the ratelimit 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) GetLimitParamsList ¶
func (m *GenesisState) GetLimitParamsList() []LimitParams
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 (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 LimitParams ¶
type LimitParams struct { // denom is the denomination of the token being rate limited. // e.g. ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5 Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // limiters is a list of rate-limiters on this denom. All limiters // must be satified for a withdrawal to proceed. Limiters []Limiter `protobuf:"bytes,2,rep,name=limiters,proto3" json:"limiters"` }
LimitParams defines rate limit params on a denom.
func (*LimitParams) Descriptor ¶
func (*LimitParams) Descriptor() ([]byte, []int)
func (*LimitParams) GetDenom ¶
func (m *LimitParams) GetDenom() string
func (*LimitParams) GetLimiters ¶
func (m *LimitParams) GetLimiters() []Limiter
func (*LimitParams) Marshal ¶
func (m *LimitParams) Marshal() (dAtA []byte, err error)
func (*LimitParams) MarshalToSizedBuffer ¶
func (m *LimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LimitParams) ProtoMessage ¶
func (*LimitParams) ProtoMessage()
func (*LimitParams) Reset ¶
func (m *LimitParams) Reset()
func (*LimitParams) Size ¶
func (m *LimitParams) Size() (n int)
func (*LimitParams) String ¶
func (m *LimitParams) String() string
func (*LimitParams) Unmarshal ¶
func (m *LimitParams) Unmarshal(dAtA []byte) error
func (*LimitParams) Validate ¶
func (p *LimitParams) Validate() error
Validate validates the set of params
func (*LimitParams) XXX_DiscardUnknown ¶
func (m *LimitParams) XXX_DiscardUnknown()
func (*LimitParams) XXX_Marshal ¶
func (m *LimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimitParams) XXX_Merge ¶
func (m *LimitParams) XXX_Merge(src proto.Message)
func (*LimitParams) XXX_Size ¶
func (m *LimitParams) XXX_Size() int
func (*LimitParams) XXX_Unmarshal ¶
func (m *LimitParams) XXX_Unmarshal(b []byte) error
type Limiter ¶
type Limiter struct { // period_sec is the rolling time period for which the limit applies // e.g. 3600 (an hour) PeriodSec uint32 `protobuf:"varint,2,opt,name=period_sec,json=periodSec,proto3" json:"period_sec,omitempty"` // baseline_minimum is the minimum maximum withdrawal coin amount within the // time period. // e.g. 100_000_000_000 uusdc for 100k USDC; 5e22 jinx for 50k JINX BaselineMinimum github_com_jinxprotocol_v4_chain_protocol_dtypes.SerializableInt `` /* 172-byte string literal not displayed */ // baseline_tvl_ppm is the maximum ratio of TVL withdrawable in // the time period, in part-per-million. // e.g. 100_000 (10%) BaselineTvlPpm uint32 `protobuf:"varint,4,opt,name=baseline_tvl_ppm,json=baselineTvlPpm,proto3" json:"baseline_tvl_ppm,omitempty"` }
Limiter defines one rate-limiter on a specfic denom.
func (*Limiter) Descriptor ¶
func (*Limiter) GetBaselineTvlPpm ¶
func (*Limiter) GetPeriodSec ¶
func (*Limiter) MarshalToSizedBuffer ¶
func (*Limiter) ProtoMessage ¶
func (*Limiter) ProtoMessage()
func (*Limiter) XXX_DiscardUnknown ¶
func (m *Limiter) XXX_DiscardUnknown()
func (*Limiter) XXX_Marshal ¶
func (*Limiter) XXX_Unmarshal ¶
type ListLimitParamsRequest ¶
type ListLimitParamsRequest struct { }
ListLimitParamsRequest is a request type of the ListLimitParams RPC method.
func (*ListLimitParamsRequest) Descriptor ¶
func (*ListLimitParamsRequest) Descriptor() ([]byte, []int)
func (*ListLimitParamsRequest) Marshal ¶
func (m *ListLimitParamsRequest) Marshal() (dAtA []byte, err error)
func (*ListLimitParamsRequest) MarshalTo ¶
func (m *ListLimitParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListLimitParamsRequest) MarshalToSizedBuffer ¶
func (m *ListLimitParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListLimitParamsRequest) ProtoMessage ¶
func (*ListLimitParamsRequest) ProtoMessage()
func (*ListLimitParamsRequest) Reset ¶
func (m *ListLimitParamsRequest) Reset()
func (*ListLimitParamsRequest) Size ¶
func (m *ListLimitParamsRequest) Size() (n int)
func (*ListLimitParamsRequest) String ¶
func (m *ListLimitParamsRequest) String() string
func (*ListLimitParamsRequest) Unmarshal ¶
func (m *ListLimitParamsRequest) Unmarshal(dAtA []byte) error
func (*ListLimitParamsRequest) XXX_DiscardUnknown ¶
func (m *ListLimitParamsRequest) XXX_DiscardUnknown()
func (*ListLimitParamsRequest) XXX_Marshal ¶
func (m *ListLimitParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListLimitParamsRequest) XXX_Merge ¶
func (m *ListLimitParamsRequest) XXX_Merge(src proto.Message)
func (*ListLimitParamsRequest) XXX_Size ¶
func (m *ListLimitParamsRequest) XXX_Size() int
func (*ListLimitParamsRequest) XXX_Unmarshal ¶
func (m *ListLimitParamsRequest) XXX_Unmarshal(b []byte) error
type ListLimitParamsResponse ¶
type ListLimitParamsResponse struct {
LimitParamsList []*LimitParams `protobuf:"bytes,1,rep,name=limit_params_list,json=limitParamsList,proto3" json:"limit_params_list,omitempty"`
}
ListLimitParamsResponse is a response type of the ListLimitParams RPC method.
func (*ListLimitParamsResponse) Descriptor ¶
func (*ListLimitParamsResponse) Descriptor() ([]byte, []int)
func (*ListLimitParamsResponse) GetLimitParamsList ¶
func (m *ListLimitParamsResponse) GetLimitParamsList() []*LimitParams
func (*ListLimitParamsResponse) Marshal ¶
func (m *ListLimitParamsResponse) Marshal() (dAtA []byte, err error)
func (*ListLimitParamsResponse) MarshalTo ¶
func (m *ListLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListLimitParamsResponse) MarshalToSizedBuffer ¶
func (m *ListLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListLimitParamsResponse) ProtoMessage ¶
func (*ListLimitParamsResponse) ProtoMessage()
func (*ListLimitParamsResponse) Reset ¶
func (m *ListLimitParamsResponse) Reset()
func (*ListLimitParamsResponse) Size ¶
func (m *ListLimitParamsResponse) Size() (n int)
func (*ListLimitParamsResponse) String ¶
func (m *ListLimitParamsResponse) String() string
func (*ListLimitParamsResponse) Unmarshal ¶
func (m *ListLimitParamsResponse) Unmarshal(dAtA []byte) error
func (*ListLimitParamsResponse) XXX_DiscardUnknown ¶
func (m *ListLimitParamsResponse) XXX_DiscardUnknown()
func (*ListLimitParamsResponse) XXX_Marshal ¶
func (m *ListLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListLimitParamsResponse) XXX_Merge ¶
func (m *ListLimitParamsResponse) XXX_Merge(src proto.Message)
func (*ListLimitParamsResponse) XXX_Size ¶
func (m *ListLimitParamsResponse) XXX_Size() int
func (*ListLimitParamsResponse) XXX_Unmarshal ¶
func (m *ListLimitParamsResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // SetLimitParams sets a `LimitParams` object in state. SetLimitParams(ctx context.Context, in *MsgSetLimitParams, opts ...grpc.CallOption) (*MsgSetLimitParamsResponse, error) // DeleteLimitParams removes a `LimitParams` object from state. DeleteLimitParams(ctx context.Context, in *MsgDeleteLimitParams, opts ...grpc.CallOption) (*MsgDeleteLimitParamsResponse, 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 MsgDeleteLimitParams ¶
type MsgDeleteLimitParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // The denom for which the `LimitParams` should be deleted. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
MsgDeleteLimitParams is the Msg/SetLimitParams request type.
func (*MsgDeleteLimitParams) Descriptor ¶
func (*MsgDeleteLimitParams) Descriptor() ([]byte, []int)
func (*MsgDeleteLimitParams) GetAuthority ¶
func (m *MsgDeleteLimitParams) GetAuthority() string
func (*MsgDeleteLimitParams) GetDenom ¶
func (m *MsgDeleteLimitParams) GetDenom() string
func (*MsgDeleteLimitParams) Marshal ¶
func (m *MsgDeleteLimitParams) Marshal() (dAtA []byte, err error)
func (*MsgDeleteLimitParams) MarshalTo ¶
func (m *MsgDeleteLimitParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteLimitParams) MarshalToSizedBuffer ¶
func (m *MsgDeleteLimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteLimitParams) ProtoMessage ¶
func (*MsgDeleteLimitParams) ProtoMessage()
func (*MsgDeleteLimitParams) Reset ¶
func (m *MsgDeleteLimitParams) Reset()
func (*MsgDeleteLimitParams) Size ¶
func (m *MsgDeleteLimitParams) Size() (n int)
func (*MsgDeleteLimitParams) String ¶
func (m *MsgDeleteLimitParams) String() string
func (*MsgDeleteLimitParams) Unmarshal ¶
func (m *MsgDeleteLimitParams) Unmarshal(dAtA []byte) error
func (*MsgDeleteLimitParams) XXX_DiscardUnknown ¶
func (m *MsgDeleteLimitParams) XXX_DiscardUnknown()
func (*MsgDeleteLimitParams) XXX_Marshal ¶
func (m *MsgDeleteLimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteLimitParams) XXX_Merge ¶
func (m *MsgDeleteLimitParams) XXX_Merge(src proto.Message)
func (*MsgDeleteLimitParams) XXX_Size ¶
func (m *MsgDeleteLimitParams) XXX_Size() int
func (*MsgDeleteLimitParams) XXX_Unmarshal ¶
func (m *MsgDeleteLimitParams) XXX_Unmarshal(b []byte) error
type MsgDeleteLimitParamsResponse ¶
type MsgDeleteLimitParamsResponse struct { }
MsgDeleteLimitParamsResponse is the Msg/DeleteLimitParams response type.
func (*MsgDeleteLimitParamsResponse) Descriptor ¶
func (*MsgDeleteLimitParamsResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteLimitParamsResponse) Marshal ¶
func (m *MsgDeleteLimitParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteLimitParamsResponse) MarshalTo ¶
func (m *MsgDeleteLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteLimitParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteLimitParamsResponse) ProtoMessage ¶
func (*MsgDeleteLimitParamsResponse) ProtoMessage()
func (*MsgDeleteLimitParamsResponse) Reset ¶
func (m *MsgDeleteLimitParamsResponse) Reset()
func (*MsgDeleteLimitParamsResponse) Size ¶
func (m *MsgDeleteLimitParamsResponse) Size() (n int)
func (*MsgDeleteLimitParamsResponse) String ¶
func (m *MsgDeleteLimitParamsResponse) String() string
func (*MsgDeleteLimitParamsResponse) Unmarshal ¶
func (m *MsgDeleteLimitParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteLimitParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteLimitParamsResponse) XXX_DiscardUnknown()
func (*MsgDeleteLimitParamsResponse) XXX_Marshal ¶
func (m *MsgDeleteLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteLimitParamsResponse) XXX_Merge ¶
func (m *MsgDeleteLimitParamsResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteLimitParamsResponse) XXX_Size ¶
func (m *MsgDeleteLimitParamsResponse) XXX_Size() int
func (*MsgDeleteLimitParamsResponse) XXX_Unmarshal ¶
func (m *MsgDeleteLimitParamsResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // SetLimitParams sets a `LimitParams` object in state. SetLimitParams(context.Context, *MsgSetLimitParams) (*MsgSetLimitParamsResponse, error) // DeleteLimitParams removes a `LimitParams` object from state. DeleteLimitParams(context.Context, *MsgDeleteLimitParams) (*MsgDeleteLimitParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetLimitParams ¶
type MsgSetLimitParams struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // Defines the parameters to set. All parameters must be supplied. LimitParams *LimitParams `protobuf:"bytes,2,opt,name=limit_params,json=limitParams,proto3" json:"limit_params,omitempty"` }
MsgSetLimitParams is the Msg/SetLimitParams request type.
func (*MsgSetLimitParams) Descriptor ¶
func (*MsgSetLimitParams) Descriptor() ([]byte, []int)
func (*MsgSetLimitParams) GetAuthority ¶
func (m *MsgSetLimitParams) GetAuthority() string
func (*MsgSetLimitParams) GetLimitParams ¶
func (m *MsgSetLimitParams) GetLimitParams() *LimitParams
func (*MsgSetLimitParams) GetSigners ¶
func (msg *MsgSetLimitParams) GetSigners() []sdk.AccAddress
func (*MsgSetLimitParams) Marshal ¶
func (m *MsgSetLimitParams) Marshal() (dAtA []byte, err error)
func (*MsgSetLimitParams) MarshalTo ¶
func (m *MsgSetLimitParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetLimitParams) MarshalToSizedBuffer ¶
func (m *MsgSetLimitParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetLimitParams) ProtoMessage ¶
func (*MsgSetLimitParams) ProtoMessage()
func (*MsgSetLimitParams) Reset ¶
func (m *MsgSetLimitParams) Reset()
func (*MsgSetLimitParams) Size ¶
func (m *MsgSetLimitParams) Size() (n int)
func (*MsgSetLimitParams) String ¶
func (m *MsgSetLimitParams) String() string
func (*MsgSetLimitParams) Unmarshal ¶
func (m *MsgSetLimitParams) Unmarshal(dAtA []byte) error
func (*MsgSetLimitParams) ValidateBasic ¶
func (msg *MsgSetLimitParams) ValidateBasic() error
func (*MsgSetLimitParams) XXX_DiscardUnknown ¶
func (m *MsgSetLimitParams) XXX_DiscardUnknown()
func (*MsgSetLimitParams) XXX_Marshal ¶
func (m *MsgSetLimitParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetLimitParams) XXX_Merge ¶
func (m *MsgSetLimitParams) XXX_Merge(src proto.Message)
func (*MsgSetLimitParams) XXX_Size ¶
func (m *MsgSetLimitParams) XXX_Size() int
func (*MsgSetLimitParams) XXX_Unmarshal ¶
func (m *MsgSetLimitParams) XXX_Unmarshal(b []byte) error
type MsgSetLimitParamsResponse ¶
type MsgSetLimitParamsResponse struct { }
MsgSetLimitParamsResponse is the Msg/SetLimitParams response type.
func (*MsgSetLimitParamsResponse) Descriptor ¶
func (*MsgSetLimitParamsResponse) Descriptor() ([]byte, []int)
func (*MsgSetLimitParamsResponse) Marshal ¶
func (m *MsgSetLimitParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetLimitParamsResponse) MarshalTo ¶
func (m *MsgSetLimitParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetLimitParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgSetLimitParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetLimitParamsResponse) ProtoMessage ¶
func (*MsgSetLimitParamsResponse) ProtoMessage()
func (*MsgSetLimitParamsResponse) Reset ¶
func (m *MsgSetLimitParamsResponse) Reset()
func (*MsgSetLimitParamsResponse) Size ¶
func (m *MsgSetLimitParamsResponse) Size() (n int)
func (*MsgSetLimitParamsResponse) String ¶
func (m *MsgSetLimitParamsResponse) String() string
func (*MsgSetLimitParamsResponse) Unmarshal ¶
func (m *MsgSetLimitParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgSetLimitParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgSetLimitParamsResponse) XXX_DiscardUnknown()
func (*MsgSetLimitParamsResponse) XXX_Marshal ¶
func (m *MsgSetLimitParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetLimitParamsResponse) XXX_Merge ¶
func (m *MsgSetLimitParamsResponse) XXX_Merge(src proto.Message)
func (*MsgSetLimitParamsResponse) XXX_Size ¶
func (m *MsgSetLimitParamsResponse) XXX_Size() int
func (*MsgSetLimitParamsResponse) XXX_Unmarshal ¶
func (m *MsgSetLimitParamsResponse) XXX_Unmarshal(b []byte) error
type QueryCapacityByDenomRequest ¶
type QueryCapacityByDenomRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryCapacityByDenomRequest is a request type for the CapacityByDenom RPC method.
func (*QueryCapacityByDenomRequest) Descriptor ¶
func (*QueryCapacityByDenomRequest) Descriptor() ([]byte, []int)
func (*QueryCapacityByDenomRequest) GetDenom ¶
func (m *QueryCapacityByDenomRequest) GetDenom() string
func (*QueryCapacityByDenomRequest) Marshal ¶
func (m *QueryCapacityByDenomRequest) Marshal() (dAtA []byte, err error)
func (*QueryCapacityByDenomRequest) MarshalTo ¶
func (m *QueryCapacityByDenomRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCapacityByDenomRequest) MarshalToSizedBuffer ¶
func (m *QueryCapacityByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCapacityByDenomRequest) ProtoMessage ¶
func (*QueryCapacityByDenomRequest) ProtoMessage()
func (*QueryCapacityByDenomRequest) Reset ¶
func (m *QueryCapacityByDenomRequest) Reset()
func (*QueryCapacityByDenomRequest) Size ¶
func (m *QueryCapacityByDenomRequest) Size() (n int)
func (*QueryCapacityByDenomRequest) String ¶
func (m *QueryCapacityByDenomRequest) String() string
func (*QueryCapacityByDenomRequest) Unmarshal ¶
func (m *QueryCapacityByDenomRequest) Unmarshal(dAtA []byte) error
func (*QueryCapacityByDenomRequest) XXX_DiscardUnknown ¶
func (m *QueryCapacityByDenomRequest) XXX_DiscardUnknown()
func (*QueryCapacityByDenomRequest) XXX_Marshal ¶
func (m *QueryCapacityByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCapacityByDenomRequest) XXX_Merge ¶
func (m *QueryCapacityByDenomRequest) XXX_Merge(src proto.Message)
func (*QueryCapacityByDenomRequest) XXX_Size ¶
func (m *QueryCapacityByDenomRequest) XXX_Size() int
func (*QueryCapacityByDenomRequest) XXX_Unmarshal ¶
func (m *QueryCapacityByDenomRequest) XXX_Unmarshal(b []byte) error
type QueryCapacityByDenomResponse ¶
type QueryCapacityByDenomResponse struct {
Results []*CapacityResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
QueryCapacityByDenomResponse is a response type of the CapacityByDenom RPC method.
func (*QueryCapacityByDenomResponse) Descriptor ¶
func (*QueryCapacityByDenomResponse) Descriptor() ([]byte, []int)
func (*QueryCapacityByDenomResponse) GetResults ¶
func (m *QueryCapacityByDenomResponse) GetResults() []*CapacityResult
func (*QueryCapacityByDenomResponse) Marshal ¶
func (m *QueryCapacityByDenomResponse) Marshal() (dAtA []byte, err error)
func (*QueryCapacityByDenomResponse) MarshalTo ¶
func (m *QueryCapacityByDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCapacityByDenomResponse) MarshalToSizedBuffer ¶
func (m *QueryCapacityByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCapacityByDenomResponse) ProtoMessage ¶
func (*QueryCapacityByDenomResponse) ProtoMessage()
func (*QueryCapacityByDenomResponse) Reset ¶
func (m *QueryCapacityByDenomResponse) Reset()
func (*QueryCapacityByDenomResponse) Size ¶
func (m *QueryCapacityByDenomResponse) Size() (n int)
func (*QueryCapacityByDenomResponse) String ¶
func (m *QueryCapacityByDenomResponse) String() string
func (*QueryCapacityByDenomResponse) Unmarshal ¶
func (m *QueryCapacityByDenomResponse) Unmarshal(dAtA []byte) error
func (*QueryCapacityByDenomResponse) XXX_DiscardUnknown ¶
func (m *QueryCapacityByDenomResponse) XXX_DiscardUnknown()
func (*QueryCapacityByDenomResponse) XXX_Marshal ¶
func (m *QueryCapacityByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCapacityByDenomResponse) XXX_Merge ¶
func (m *QueryCapacityByDenomResponse) XXX_Merge(src proto.Message)
func (*QueryCapacityByDenomResponse) XXX_Size ¶
func (m *QueryCapacityByDenomResponse) XXX_Size() int
func (*QueryCapacityByDenomResponse) XXX_Unmarshal ¶
func (m *QueryCapacityByDenomResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // List all limit params. ListLimitParams(ctx context.Context, in *ListLimitParamsRequest, opts ...grpc.CallOption) (*ListLimitParamsResponse, error) // Query capacity by denom. CapacityByDenom(ctx context.Context, in *QueryCapacityByDenomRequest, opts ...grpc.CallOption) (*QueryCapacityByDenomResponse, 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 QueryServer ¶
type QueryServer interface { // List all limit params. ListLimitParams(context.Context, *ListLimitParamsRequest) (*ListLimitParamsResponse, error) // Query capacity by denom. CapacityByDenom(context.Context, *QueryCapacityByDenomRequest) (*QueryCapacityByDenomResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DeleteLimitParams ¶
func (*UnimplementedMsgServer) DeleteLimitParams(ctx context.Context, req *MsgDeleteLimitParams) (*MsgDeleteLimitParamsResponse, error)
func (*UnimplementedMsgServer) SetLimitParams ¶
func (*UnimplementedMsgServer) SetLimitParams(ctx context.Context, req *MsgSetLimitParams) (*MsgSetLimitParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CapacityByDenom ¶
func (*UnimplementedQueryServer) CapacityByDenom(ctx context.Context, req *QueryCapacityByDenomRequest) (*QueryCapacityByDenomResponse, error)
func (*UnimplementedQueryServer) ListLimitParams ¶
func (*UnimplementedQueryServer) ListLimitParams(ctx context.Context, req *ListLimitParamsRequest) (*ListLimitParamsResponse, error)