Documentation ¶
Overview ¶
Package ibcratelimit is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.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)
- func ValidateReceiverAddress(packet exported.PacketI) error
- type EventAckRevertFailure
- func (*EventAckRevertFailure) Descriptor() ([]byte, []int)
- func (m *EventAckRevertFailure) GetAck() string
- func (m *EventAckRevertFailure) GetModule() string
- func (m *EventAckRevertFailure) GetPacket() string
- func (m *EventAckRevertFailure) Marshal() (dAtA []byte, err error)
- func (m *EventAckRevertFailure) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAckRevertFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAckRevertFailure) ProtoMessage()
- func (m *EventAckRevertFailure) Reset()
- func (m *EventAckRevertFailure) Size() (n int)
- func (m *EventAckRevertFailure) String() string
- func (m *EventAckRevertFailure) Unmarshal(dAtA []byte) error
- func (m *EventAckRevertFailure) XXX_DiscardUnknown()
- func (m *EventAckRevertFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAckRevertFailure) XXX_Merge(src proto.Message)
- func (m *EventAckRevertFailure) XXX_Size() int
- func (m *EventAckRevertFailure) XXX_Unmarshal(b []byte) error
- type EventParamsUpdated
- func (*EventParamsUpdated) Descriptor() ([]byte, []int)
- func (m *EventParamsUpdated) Marshal() (dAtA []byte, err error)
- func (m *EventParamsUpdated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventParamsUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventParamsUpdated) ProtoMessage()
- func (m *EventParamsUpdated) Reset()
- func (m *EventParamsUpdated) Size() (n int)
- func (m *EventParamsUpdated) String() string
- func (m *EventParamsUpdated) Unmarshal(dAtA []byte) error
- func (m *EventParamsUpdated) XXX_DiscardUnknown()
- func (m *EventParamsUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventParamsUpdated) XXX_Merge(src proto.Message)
- func (m *EventParamsUpdated) XXX_Size() int
- func (m *EventParamsUpdated) XXX_Unmarshal(b []byte) error
- type EventTimeoutRevertFailure
- func (*EventTimeoutRevertFailure) Descriptor() ([]byte, []int)
- func (m *EventTimeoutRevertFailure) GetModule() string
- func (m *EventTimeoutRevertFailure) GetPacket() string
- func (m *EventTimeoutRevertFailure) Marshal() (dAtA []byte, err error)
- func (m *EventTimeoutRevertFailure) MarshalTo(dAtA []byte) (int, error)
- func (m *EventTimeoutRevertFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventTimeoutRevertFailure) ProtoMessage()
- func (m *EventTimeoutRevertFailure) Reset()
- func (m *EventTimeoutRevertFailure) Size() (n int)
- func (m *EventTimeoutRevertFailure) String() string
- func (m *EventTimeoutRevertFailure) Unmarshal(dAtA []byte) error
- func (m *EventTimeoutRevertFailure) XXX_DiscardUnknown()
- func (m *EventTimeoutRevertFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventTimeoutRevertFailure) XXX_Merge(src proto.Message)
- func (m *EventTimeoutRevertFailure) XXX_Size() int
- func (m *EventTimeoutRevertFailure) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- 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 MsgClient
- type MsgGovUpdateParamsRequest
- func (*MsgGovUpdateParamsRequest) Descriptor() ([]byte, []int)
- func (m *MsgGovUpdateParamsRequest) GetAuthority() string
- func (m *MsgGovUpdateParamsRequest) GetParams() Params
- func (m MsgGovUpdateParamsRequest) GetSigners() []sdk.AccAddress
- func (m *MsgGovUpdateParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateParamsRequest) ProtoMessage()
- func (m *MsgGovUpdateParamsRequest) Reset()
- func (m *MsgGovUpdateParamsRequest) Size() (n int)
- func (m *MsgGovUpdateParamsRequest) String() string
- func (m *MsgGovUpdateParamsRequest) Unmarshal(dAtA []byte) error
- func (m MsgGovUpdateParamsRequest) ValidateBasic() error
- func (m *MsgGovUpdateParamsRequest) XXX_DiscardUnknown()
- func (m *MsgGovUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateParamsRequest) XXX_Merge(src proto.Message)
- func (m *MsgGovUpdateParamsRequest) XXX_Size() int
- func (m *MsgGovUpdateParamsRequest) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateParamsResponse
- func (*MsgGovUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateParamsResponse) ProtoMessage()
- func (m *MsgGovUpdateParamsResponse) Reset()
- func (m *MsgGovUpdateParamsResponse) Size() (n int)
- func (m *MsgGovUpdateParamsResponse) String() string
- func (m *MsgGovUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgGovUpdateParamsResponse) XXX_Size() int
- func (m *MsgGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type PacketMsg
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetContractAddress() string
- 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 (*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 (p 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) GetParams() Params
- 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 PermissionedKeeper
- type QueryClient
- type QueryServer
- type RecvPacketMsg
- type SendPacketMsg
- type UndoPacketMsg
- type UndoSendMsg
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnwrappedPacket
Constants ¶
const ( // ModuleName defines the module name ModuleName = "ratelimitedibc" // StoreKey defines the primary module store key StoreKey = ModuleName )
const ( // MsgSendPacket is the operation used for tracking a sent packet. MsgSendPacket = "send_packet" // MsgRecvPacket is the operation used for tracking a received packet. MsgRecvPacket = "recv_packet" )
Variables ¶
var ( ErrRateLimitExceeded = cerrs.Register(ModuleName, 2, "rate limit exceeded") ErrBadMessage = cerrs.Register(ModuleName, 3, "bad message") ErrContractError = cerrs.Register(ModuleName, 4, "contract error") )
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
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 ( 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 AllRequestMsgs = []sdk.Msg{ (*MsgGovUpdateParamsRequest)(nil), }
var ( // ParamsKey is the key to obtain the module's params. ParamsKey = []byte{0x01} )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers implementations for the tx messages
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateReceiverAddress ¶
ValidateReceiverAddress Checks if the receiver is valid for the transfer data.
Types ¶
type EventAckRevertFailure ¶
type EventAckRevertFailure struct { // module is the name of the module that emitted it. Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // packet is the packet received on acknowledgement. Packet string `protobuf:"bytes,2,opt,name=packet,proto3" json:"packet,omitempty"` // ack is the packet's inner acknowledgement message. Ack string `protobuf:"bytes,3,opt,name=ack,proto3" json:"ack,omitempty"` }
EventAckRevertFailure is emitted when an Ack revert fails
func NewEventAckRevertFailure ¶
func NewEventAckRevertFailure(module, packet, ack string) *EventAckRevertFailure
NewEventAckRevertFailure returns a new EventAckRevertFailure.
func (*EventAckRevertFailure) Descriptor ¶
func (*EventAckRevertFailure) Descriptor() ([]byte, []int)
func (*EventAckRevertFailure) GetAck ¶
func (m *EventAckRevertFailure) GetAck() string
func (*EventAckRevertFailure) GetModule ¶
func (m *EventAckRevertFailure) GetModule() string
func (*EventAckRevertFailure) GetPacket ¶
func (m *EventAckRevertFailure) GetPacket() string
func (*EventAckRevertFailure) Marshal ¶
func (m *EventAckRevertFailure) Marshal() (dAtA []byte, err error)
func (*EventAckRevertFailure) MarshalTo ¶
func (m *EventAckRevertFailure) MarshalTo(dAtA []byte) (int, error)
func (*EventAckRevertFailure) MarshalToSizedBuffer ¶
func (m *EventAckRevertFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAckRevertFailure) ProtoMessage ¶
func (*EventAckRevertFailure) ProtoMessage()
func (*EventAckRevertFailure) Reset ¶
func (m *EventAckRevertFailure) Reset()
func (*EventAckRevertFailure) Size ¶
func (m *EventAckRevertFailure) Size() (n int)
func (*EventAckRevertFailure) String ¶
func (m *EventAckRevertFailure) String() string
func (*EventAckRevertFailure) Unmarshal ¶
func (m *EventAckRevertFailure) Unmarshal(dAtA []byte) error
func (*EventAckRevertFailure) XXX_DiscardUnknown ¶
func (m *EventAckRevertFailure) XXX_DiscardUnknown()
func (*EventAckRevertFailure) XXX_Marshal ¶
func (m *EventAckRevertFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAckRevertFailure) XXX_Merge ¶
func (m *EventAckRevertFailure) XXX_Merge(src proto.Message)
func (*EventAckRevertFailure) XXX_Size ¶
func (m *EventAckRevertFailure) XXX_Size() int
func (*EventAckRevertFailure) XXX_Unmarshal ¶
func (m *EventAckRevertFailure) XXX_Unmarshal(b []byte) error
type EventParamsUpdated ¶
type EventParamsUpdated struct { }
EventParamsUpdated is an event emitted when the ibcratelimit module's params have been updated.
func NewEventParamsUpdated ¶
func NewEventParamsUpdated() *EventParamsUpdated
NewEventParamsUpdated returns a new EventParamsUpdated.
func (*EventParamsUpdated) Descriptor ¶
func (*EventParamsUpdated) Descriptor() ([]byte, []int)
func (*EventParamsUpdated) Marshal ¶
func (m *EventParamsUpdated) Marshal() (dAtA []byte, err error)
func (*EventParamsUpdated) MarshalTo ¶
func (m *EventParamsUpdated) MarshalTo(dAtA []byte) (int, error)
func (*EventParamsUpdated) MarshalToSizedBuffer ¶
func (m *EventParamsUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventParamsUpdated) ProtoMessage ¶
func (*EventParamsUpdated) ProtoMessage()
func (*EventParamsUpdated) Reset ¶
func (m *EventParamsUpdated) Reset()
func (*EventParamsUpdated) Size ¶
func (m *EventParamsUpdated) Size() (n int)
func (*EventParamsUpdated) String ¶
func (m *EventParamsUpdated) String() string
func (*EventParamsUpdated) Unmarshal ¶
func (m *EventParamsUpdated) Unmarshal(dAtA []byte) error
func (*EventParamsUpdated) XXX_DiscardUnknown ¶
func (m *EventParamsUpdated) XXX_DiscardUnknown()
func (*EventParamsUpdated) XXX_Marshal ¶
func (m *EventParamsUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventParamsUpdated) XXX_Merge ¶
func (m *EventParamsUpdated) XXX_Merge(src proto.Message)
func (*EventParamsUpdated) XXX_Size ¶
func (m *EventParamsUpdated) XXX_Size() int
func (*EventParamsUpdated) XXX_Unmarshal ¶
func (m *EventParamsUpdated) XXX_Unmarshal(b []byte) error
type EventTimeoutRevertFailure ¶
type EventTimeoutRevertFailure struct { // module is the name of the module that emitted it. Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // packet is the packet received on timeout. Packet string `protobuf:"bytes,2,opt,name=packet,proto3" json:"packet,omitempty"` }
EventTimeoutRevertFailure is emitted when a Timeout revert fails
func NewEventTimeoutRevertFailure ¶
func NewEventTimeoutRevertFailure(module, packet string) *EventTimeoutRevertFailure
NewEventTimeoutRevertFailure returns a new EventTimeoutRevertFailure.
func (*EventTimeoutRevertFailure) Descriptor ¶
func (*EventTimeoutRevertFailure) Descriptor() ([]byte, []int)
func (*EventTimeoutRevertFailure) GetModule ¶
func (m *EventTimeoutRevertFailure) GetModule() string
func (*EventTimeoutRevertFailure) GetPacket ¶
func (m *EventTimeoutRevertFailure) GetPacket() string
func (*EventTimeoutRevertFailure) Marshal ¶
func (m *EventTimeoutRevertFailure) Marshal() (dAtA []byte, err error)
func (*EventTimeoutRevertFailure) MarshalTo ¶
func (m *EventTimeoutRevertFailure) MarshalTo(dAtA []byte) (int, error)
func (*EventTimeoutRevertFailure) MarshalToSizedBuffer ¶
func (m *EventTimeoutRevertFailure) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventTimeoutRevertFailure) ProtoMessage ¶
func (*EventTimeoutRevertFailure) ProtoMessage()
func (*EventTimeoutRevertFailure) Reset ¶
func (m *EventTimeoutRevertFailure) Reset()
func (*EventTimeoutRevertFailure) Size ¶
func (m *EventTimeoutRevertFailure) Size() (n int)
func (*EventTimeoutRevertFailure) String ¶
func (m *EventTimeoutRevertFailure) String() string
func (*EventTimeoutRevertFailure) Unmarshal ¶
func (m *EventTimeoutRevertFailure) Unmarshal(dAtA []byte) error
func (*EventTimeoutRevertFailure) XXX_DiscardUnknown ¶
func (m *EventTimeoutRevertFailure) XXX_DiscardUnknown()
func (*EventTimeoutRevertFailure) XXX_Marshal ¶
func (m *EventTimeoutRevertFailure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventTimeoutRevertFailure) XXX_Merge ¶
func (m *EventTimeoutRevertFailure) XXX_Merge(src proto.Message)
func (*EventTimeoutRevertFailure) XXX_Size ¶
func (m *EventTimeoutRevertFailure) XXX_Size() int
func (*EventTimeoutRevertFailure) XXX_Unmarshal ¶
func (m *EventTimeoutRevertFailure) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params are all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the ibcratelimit module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis creates a default GenesisState object.
func NewGenesisState ¶
func NewGenesisState(params Params) *GenesisState
NewGenesisState returns a new instance of GenesisState object
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) 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 { // GovUpdateParams is a governance proposal endpoint for updating the exchange module's params. GovUpdateParams(ctx context.Context, in *MsgGovUpdateParamsRequest, opts ...grpc.CallOption) (*MsgGovUpdateParamsResponse, 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 MsgGovUpdateParamsRequest ¶
type MsgGovUpdateParamsRequest struct { // authority should be the governance module account address. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params are the new param values to set Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgGovUpdateParamsRequest is a request message for the GovUpdateParams endpoint.
func NewMsgGovUpdateParamsRequest ¶
func NewMsgGovUpdateParamsRequest(authority, ratelimiter string) *MsgGovUpdateParamsRequest
NewMsgGovUpdateParamsRequest creates a new GovUpdateParams message.
func (*MsgGovUpdateParamsRequest) Descriptor ¶
func (*MsgGovUpdateParamsRequest) Descriptor() ([]byte, []int)
func (*MsgGovUpdateParamsRequest) GetAuthority ¶
func (m *MsgGovUpdateParamsRequest) GetAuthority() string
func (*MsgGovUpdateParamsRequest) GetParams ¶
func (m *MsgGovUpdateParamsRequest) GetParams() Params
func (MsgGovUpdateParamsRequest) GetSigners ¶
func (m MsgGovUpdateParamsRequest) GetSigners() []sdk.AccAddress
GetSigners indicates that the message must have been signed by the address provided.
func (*MsgGovUpdateParamsRequest) Marshal ¶
func (m *MsgGovUpdateParamsRequest) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateParamsRequest) MarshalTo ¶
func (m *MsgGovUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateParamsRequest) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateParamsRequest) ProtoMessage ¶
func (*MsgGovUpdateParamsRequest) ProtoMessage()
func (*MsgGovUpdateParamsRequest) Reset ¶
func (m *MsgGovUpdateParamsRequest) Reset()
func (*MsgGovUpdateParamsRequest) Size ¶
func (m *MsgGovUpdateParamsRequest) Size() (n int)
func (*MsgGovUpdateParamsRequest) String ¶
func (m *MsgGovUpdateParamsRequest) String() string
func (*MsgGovUpdateParamsRequest) Unmarshal ¶
func (m *MsgGovUpdateParamsRequest) Unmarshal(dAtA []byte) error
func (MsgGovUpdateParamsRequest) ValidateBasic ¶
func (m MsgGovUpdateParamsRequest) ValidateBasic() error
ValidateBasic runs stateless validation checks on the message.
func (*MsgGovUpdateParamsRequest) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateParamsRequest) XXX_DiscardUnknown()
func (*MsgGovUpdateParamsRequest) XXX_Marshal ¶
func (m *MsgGovUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateParamsRequest) XXX_Merge ¶
func (m *MsgGovUpdateParamsRequest) XXX_Merge(src proto.Message)
func (*MsgGovUpdateParamsRequest) XXX_Size ¶
func (m *MsgGovUpdateParamsRequest) XXX_Size() int
func (*MsgGovUpdateParamsRequest) XXX_Unmarshal ¶
func (m *MsgGovUpdateParamsRequest) XXX_Unmarshal(b []byte) error
type MsgGovUpdateParamsResponse ¶
type MsgGovUpdateParamsResponse struct { }
MsgGovUpdateParamsResponse is a response message for the GovUpdateParams endpoint.
func (*MsgGovUpdateParamsResponse) Descriptor ¶
func (*MsgGovUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgGovUpdateParamsResponse) Marshal ¶
func (m *MsgGovUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateParamsResponse) MarshalTo ¶
func (m *MsgGovUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateParamsResponse) ProtoMessage ¶
func (*MsgGovUpdateParamsResponse) ProtoMessage()
func (*MsgGovUpdateParamsResponse) Reset ¶
func (m *MsgGovUpdateParamsResponse) Reset()
func (*MsgGovUpdateParamsResponse) Size ¶
func (m *MsgGovUpdateParamsResponse) Size() (n int)
func (*MsgGovUpdateParamsResponse) String ¶
func (m *MsgGovUpdateParamsResponse) String() string
func (*MsgGovUpdateParamsResponse) Unmarshal ¶
func (m *MsgGovUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgGovUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgGovUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgGovUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateParamsResponse) XXX_Merge ¶
func (m *MsgGovUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgGovUpdateParamsResponse) XXX_Size ¶
func (m *MsgGovUpdateParamsResponse) XXX_Size() int
func (*MsgGovUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgGovUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // GovUpdateParams is a governance proposal endpoint for updating the exchange module's params. GovUpdateParams(context.Context, *MsgGovUpdateParamsRequest) (*MsgGovUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type PacketMsg ¶
type PacketMsg struct {
Packet UnwrappedPacket `json:"packet"`
}
PacketMsg contains
type Params ¶
type Params struct { // contract_address is the address of the rate limiter contract. ContractAddress string `` /* 130-byte string literal not displayed */ }
Params defines the parameters for the ibcratelimit module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams creates default ibcratelimit module parameters.
func (*Params) Descriptor ¶
func (*Params) GetContractAddress ¶
func (*Params) MarshalToSizedBuffer ¶
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 ¶
type ParamsRequest struct { }
ParamsRequest is the request type for the Query/Params RPC method.
func (*ParamsRequest) Descriptor ¶
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalToSizedBuffer ¶
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶
type ParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
ParamsResponse is the response type for the Query/Params RPC method.
func (*ParamsResponse) Descriptor ¶
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) GetParams ¶
func (m *ParamsResponse) GetParams() Params
func (*ParamsResponse) Marshal ¶
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalToSizedBuffer ¶
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type PermissionedKeeper ¶
type QueryClient ¶
type QueryClient interface { // Params defines a gRPC query method that returns the ibcratelimit module's // parameters. Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, 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 { // Params defines a gRPC query method that returns the ibcratelimit module's // parameters. Params(context.Context, *ParamsRequest) (*ParamsResponse, error) }
QueryServer is the server API for Query service.
type RecvPacketMsg ¶
type RecvPacketMsg struct {
RecvPacket PacketMsg `json:"recv_packet"`
}
RecvPacketMsg is an ibcratelimit contract message meant to track receives.
type SendPacketMsg ¶
type SendPacketMsg struct {
SendPacket PacketMsg `json:"send_packet"`
}
SendPacketMsg is an ibcratelimit contract message meant to track sends.
type UndoPacketMsg ¶
type UndoPacketMsg struct {
Packet UnwrappedPacket `json:"packet"`
}
UndoPacketMsg is an operation done by the UndoSendMsg.
type UndoSendMsg ¶
type UndoSendMsg struct {
UndoSend UndoPacketMsg `json:"undo_send"`
}
UndoSendMsg is an ibcratelimit contract message meant to undo tracked sends.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) GovUpdateParams ¶
func (*UnimplementedMsgServer) GovUpdateParams(ctx context.Context, req *MsgGovUpdateParamsRequest) (*MsgGovUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)
type UnwrappedPacket ¶
type UnwrappedPacket struct { Sequence uint64 `json:"sequence"` SourcePort string `json:"source_port"` SourceChannel string `json:"source_channel"` DestinationPort string `json:"destination_port"` DestinationChannel string `json:"destination_channel"` Data transfertypes.FungibleTokenPacketData `json:"data"` TimeoutHeight clienttypes.Height `json:"timeout_height"` TimeoutTimestamp uint64 `json:"timeout_timestamp,omitempty"` }
UnwrappedPacket is a FungibleTokenPacket.
func UnwrapPacket ¶
func UnwrapPacket(packet exported.PacketI) (UnwrappedPacket, error)
UnwrapPacket Converts a PacketI into an UnwrappedPacket structure.