Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetAddressWhitelistKey(sender, receiver string) []byte
- func GetPendingSendPacketKey(channelId string, sequenceNumber uint64) []byte
- func KeyPrefix(p string) []byte
- func NewAddRateLimitProposal(title, description, denom, channelId string, maxPercentSend sdkmath.Int, ...) govtypes.Content
- func NewRemoveRateLimitProposal(title, description, denom, channelId string) govtypes.Content
- func NewResetRateLimitProposal(title, description, denom, channelId string) govtypes.Content
- func NewUpdateRateLimitProposal(title, description, denom, channelId string, maxPercentSend sdkmath.Int, ...) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 AddRateLimitProposal
- func (*AddRateLimitProposal) Descriptor() ([]byte, []int)
- func (this *AddRateLimitProposal) Equal(that interface{}) bool
- func (p *AddRateLimitProposal) GetDescription() string
- func (p *AddRateLimitProposal) GetTitle() string
- func (m *AddRateLimitProposal) Marshal() (dAtA []byte, err error)
- func (m *AddRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *AddRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *AddRateLimitProposal) ProposalRoute() string
- func (p *AddRateLimitProposal) ProposalType() string
- func (*AddRateLimitProposal) ProtoMessage()
- func (m *AddRateLimitProposal) Reset()
- func (m *AddRateLimitProposal) Size() (n int)
- func (p AddRateLimitProposal) String() string
- func (m *AddRateLimitProposal) Unmarshal(dAtA []byte) error
- func (p *AddRateLimitProposal) ValidateBasic() error
- func (m *AddRateLimitProposal) XXX_DiscardUnknown()
- func (m *AddRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRateLimitProposal) XXX_Merge(src proto.Message)
- func (m *AddRateLimitProposal) XXX_Size() int
- func (m *AddRateLimitProposal) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type ChannelKeeper
- type Flow
- func (f *Flow) AddInflow(amount sdkmath.Int, quota Quota) error
- func (f *Flow) AddOutflow(amount sdkmath.Int, quota Quota) error
- func (*Flow) Descriptor() ([]byte, []int)
- func (m *Flow) Marshal() (dAtA []byte, err error)
- func (m *Flow) MarshalTo(dAtA []byte) (int, error)
- func (m *Flow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Flow) ProtoMessage()
- func (m *Flow) Reset()
- func (m *Flow) Size() (n int)
- func (m *Flow) String() string
- func (m *Flow) Unmarshal(dAtA []byte) error
- func (m *Flow) XXX_DiscardUnknown()
- func (m *Flow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Flow) XXX_Merge(src proto.Message)
- func (m *Flow) XXX_Size() int
- func (m *Flow) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBlacklistedDenoms() []string
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPendingSendPacketSequenceNumbers() []string
- func (m *GenesisState) GetRateLimits() []RateLimit
- func (m *GenesisState) GetWhitelistedAddressPairs() []WhitelistedAddressPair
- 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 ICS4Wrapper
- type PacketDirection
- 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 (p *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 (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 Path
- func (*Path) Descriptor() ([]byte, []int)
- func (m *Path) GetChannelId() string
- func (m *Path) GetDenom() string
- func (m *Path) Marshal() (dAtA []byte, err error)
- func (m *Path) MarshalTo(dAtA []byte) (int, error)
- func (m *Path) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Path) ProtoMessage()
- func (m *Path) Reset()
- func (m *Path) Size() (n int)
- func (m *Path) String() string
- func (m *Path) Unmarshal(dAtA []byte) error
- func (m *Path) XXX_DiscardUnknown()
- func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Path) XXX_Merge(src proto.Message)
- func (m *Path) XXX_Size() int
- func (m *Path) XXX_Unmarshal(b []byte) error
- type QueryAllBlacklistedDenomsRequest
- func (*QueryAllBlacklistedDenomsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBlacklistedDenomsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBlacklistedDenomsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBlacklistedDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBlacklistedDenomsRequest) ProtoMessage()
- func (m *QueryAllBlacklistedDenomsRequest) Reset()
- func (m *QueryAllBlacklistedDenomsRequest) Size() (n int)
- func (m *QueryAllBlacklistedDenomsRequest) String() string
- func (m *QueryAllBlacklistedDenomsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBlacklistedDenomsRequest) XXX_DiscardUnknown()
- func (m *QueryAllBlacklistedDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBlacklistedDenomsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBlacklistedDenomsRequest) XXX_Size() int
- func (m *QueryAllBlacklistedDenomsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBlacklistedDenomsResponse
- func (*QueryAllBlacklistedDenomsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBlacklistedDenomsResponse) GetDenoms() []string
- func (m *QueryAllBlacklistedDenomsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBlacklistedDenomsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBlacklistedDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBlacklistedDenomsResponse) ProtoMessage()
- func (m *QueryAllBlacklistedDenomsResponse) Reset()
- func (m *QueryAllBlacklistedDenomsResponse) Size() (n int)
- func (m *QueryAllBlacklistedDenomsResponse) String() string
- func (m *QueryAllBlacklistedDenomsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBlacklistedDenomsResponse) XXX_DiscardUnknown()
- func (m *QueryAllBlacklistedDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBlacklistedDenomsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBlacklistedDenomsResponse) XXX_Size() int
- func (m *QueryAllBlacklistedDenomsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllRateLimitsRequest
- func (*QueryAllRateLimitsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRateLimitsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRateLimitsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRateLimitsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRateLimitsRequest) ProtoMessage()
- func (m *QueryAllRateLimitsRequest) Reset()
- func (m *QueryAllRateLimitsRequest) Size() (n int)
- func (m *QueryAllRateLimitsRequest) String() string
- func (m *QueryAllRateLimitsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRateLimitsRequest) XXX_DiscardUnknown()
- func (m *QueryAllRateLimitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRateLimitsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRateLimitsRequest) XXX_Size() int
- func (m *QueryAllRateLimitsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRateLimitsResponse
- func (*QueryAllRateLimitsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRateLimitsResponse) GetRateLimits() []RateLimit
- func (m *QueryAllRateLimitsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRateLimitsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRateLimitsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRateLimitsResponse) ProtoMessage()
- func (m *QueryAllRateLimitsResponse) Reset()
- func (m *QueryAllRateLimitsResponse) Size() (n int)
- func (m *QueryAllRateLimitsResponse) String() string
- func (m *QueryAllRateLimitsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRateLimitsResponse) XXX_DiscardUnknown()
- func (m *QueryAllRateLimitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRateLimitsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRateLimitsResponse) XXX_Size() int
- func (m *QueryAllRateLimitsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllWhitelistedAddressesRequest
- func (*QueryAllWhitelistedAddressesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllWhitelistedAddressesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhitelistedAddressesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhitelistedAddressesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhitelistedAddressesRequest) ProtoMessage()
- func (m *QueryAllWhitelistedAddressesRequest) Reset()
- func (m *QueryAllWhitelistedAddressesRequest) Size() (n int)
- func (m *QueryAllWhitelistedAddressesRequest) String() string
- func (m *QueryAllWhitelistedAddressesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhitelistedAddressesRequest) XXX_DiscardUnknown()
- func (m *QueryAllWhitelistedAddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhitelistedAddressesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllWhitelistedAddressesRequest) XXX_Size() int
- func (m *QueryAllWhitelistedAddressesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllWhitelistedAddressesResponse
- func (*QueryAllWhitelistedAddressesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllWhitelistedAddressesResponse) GetAddressPairs() []WhitelistedAddressPair
- func (m *QueryAllWhitelistedAddressesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllWhitelistedAddressesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllWhitelistedAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllWhitelistedAddressesResponse) ProtoMessage()
- func (m *QueryAllWhitelistedAddressesResponse) Reset()
- func (m *QueryAllWhitelistedAddressesResponse) Size() (n int)
- func (m *QueryAllWhitelistedAddressesResponse) String() string
- func (m *QueryAllWhitelistedAddressesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllWhitelistedAddressesResponse) XXX_DiscardUnknown()
- func (m *QueryAllWhitelistedAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllWhitelistedAddressesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllWhitelistedAddressesResponse) XXX_Size() int
- func (m *QueryAllWhitelistedAddressesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryRateLimitRequest
- func (*QueryRateLimitRequest) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitRequest) GetChannelId() string
- func (m *QueryRateLimitRequest) GetDenom() string
- func (m *QueryRateLimitRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitRequest) ProtoMessage()
- func (m *QueryRateLimitRequest) Reset()
- func (m *QueryRateLimitRequest) Size() (n int)
- func (m *QueryRateLimitRequest) String() string
- func (m *QueryRateLimitRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitRequest) XXX_DiscardUnknown()
- func (m *QueryRateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitRequest) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitRequest) XXX_Size() int
- func (m *QueryRateLimitRequest) XXX_Unmarshal(b []byte) error
- type QueryRateLimitResponse
- func (*QueryRateLimitResponse) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitResponse) GetRateLimit() *RateLimit
- func (m *QueryRateLimitResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitResponse) ProtoMessage()
- func (m *QueryRateLimitResponse) Reset()
- func (m *QueryRateLimitResponse) Size() (n int)
- func (m *QueryRateLimitResponse) String() string
- func (m *QueryRateLimitResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitResponse) XXX_DiscardUnknown()
- func (m *QueryRateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitResponse) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitResponse) XXX_Size() int
- func (m *QueryRateLimitResponse) XXX_Unmarshal(b []byte) error
- type QueryRateLimitsByChainIdRequest
- func (*QueryRateLimitsByChainIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitsByChainIdRequest) GetChainId() string
- func (m *QueryRateLimitsByChainIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitsByChainIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitsByChainIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitsByChainIdRequest) ProtoMessage()
- func (m *QueryRateLimitsByChainIdRequest) Reset()
- func (m *QueryRateLimitsByChainIdRequest) Size() (n int)
- func (m *QueryRateLimitsByChainIdRequest) String() string
- func (m *QueryRateLimitsByChainIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitsByChainIdRequest) XXX_DiscardUnknown()
- func (m *QueryRateLimitsByChainIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitsByChainIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitsByChainIdRequest) XXX_Size() int
- func (m *QueryRateLimitsByChainIdRequest) XXX_Unmarshal(b []byte) error
- type QueryRateLimitsByChainIdResponse
- func (*QueryRateLimitsByChainIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitsByChainIdResponse) GetRateLimits() []RateLimit
- func (m *QueryRateLimitsByChainIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitsByChainIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitsByChainIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitsByChainIdResponse) ProtoMessage()
- func (m *QueryRateLimitsByChainIdResponse) Reset()
- func (m *QueryRateLimitsByChainIdResponse) Size() (n int)
- func (m *QueryRateLimitsByChainIdResponse) String() string
- func (m *QueryRateLimitsByChainIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitsByChainIdResponse) XXX_DiscardUnknown()
- func (m *QueryRateLimitsByChainIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitsByChainIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitsByChainIdResponse) XXX_Size() int
- func (m *QueryRateLimitsByChainIdResponse) XXX_Unmarshal(b []byte) error
- type QueryRateLimitsByChannelIdRequest
- func (*QueryRateLimitsByChannelIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitsByChannelIdRequest) GetChannelId() string
- func (m *QueryRateLimitsByChannelIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitsByChannelIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitsByChannelIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitsByChannelIdRequest) ProtoMessage()
- func (m *QueryRateLimitsByChannelIdRequest) Reset()
- func (m *QueryRateLimitsByChannelIdRequest) Size() (n int)
- func (m *QueryRateLimitsByChannelIdRequest) String() string
- func (m *QueryRateLimitsByChannelIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitsByChannelIdRequest) XXX_DiscardUnknown()
- func (m *QueryRateLimitsByChannelIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitsByChannelIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitsByChannelIdRequest) XXX_Size() int
- func (m *QueryRateLimitsByChannelIdRequest) XXX_Unmarshal(b []byte) error
- type QueryRateLimitsByChannelIdResponse
- func (*QueryRateLimitsByChannelIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryRateLimitsByChannelIdResponse) GetRateLimits() []RateLimit
- func (m *QueryRateLimitsByChannelIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRateLimitsByChannelIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRateLimitsByChannelIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRateLimitsByChannelIdResponse) ProtoMessage()
- func (m *QueryRateLimitsByChannelIdResponse) Reset()
- func (m *QueryRateLimitsByChannelIdResponse) Size() (n int)
- func (m *QueryRateLimitsByChannelIdResponse) String() string
- func (m *QueryRateLimitsByChannelIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRateLimitsByChannelIdResponse) XXX_DiscardUnknown()
- func (m *QueryRateLimitsByChannelIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRateLimitsByChannelIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryRateLimitsByChannelIdResponse) XXX_Size() int
- func (m *QueryRateLimitsByChannelIdResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Quota
- func (q *Quota) CheckExceedsQuota(direction PacketDirection, amount sdkmath.Int, totalValue sdkmath.Int) bool
- func (*Quota) Descriptor() ([]byte, []int)
- func (m *Quota) GetDurationHours() uint64
- func (m *Quota) Marshal() (dAtA []byte, err error)
- func (m *Quota) MarshalTo(dAtA []byte) (int, error)
- func (m *Quota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Quota) ProtoMessage()
- func (m *Quota) Reset()
- func (m *Quota) Size() (n int)
- func (m *Quota) String() string
- func (m *Quota) Unmarshal(dAtA []byte) error
- func (m *Quota) XXX_DiscardUnknown()
- func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Quota) XXX_Merge(src proto.Message)
- func (m *Quota) XXX_Size() int
- func (m *Quota) XXX_Unmarshal(b []byte) error
- type RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetFlow() *Flow
- func (m *RateLimit) GetPath() *Path
- func (m *RateLimit) GetQuota() *Quota
- func (m *RateLimit) Marshal() (dAtA []byte, err error)
- func (m *RateLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *RateLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) Size() (n int)
- func (m *RateLimit) String() string
- func (m *RateLimit) Unmarshal(dAtA []byte) error
- func (m *RateLimit) XXX_DiscardUnknown()
- func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RateLimit) XXX_Merge(src proto.Message)
- func (m *RateLimit) XXX_Size() int
- func (m *RateLimit) XXX_Unmarshal(b []byte) error
- type RemoveRateLimitProposal
- func (*RemoveRateLimitProposal) Descriptor() ([]byte, []int)
- func (this *RemoveRateLimitProposal) Equal(that interface{}) bool
- func (p *RemoveRateLimitProposal) GetDescription() string
- func (p *RemoveRateLimitProposal) GetTitle() string
- func (m *RemoveRateLimitProposal) Marshal() (dAtA []byte, err error)
- func (m *RemoveRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RemoveRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *RemoveRateLimitProposal) ProposalRoute() string
- func (p *RemoveRateLimitProposal) ProposalType() string
- func (*RemoveRateLimitProposal) ProtoMessage()
- func (m *RemoveRateLimitProposal) Reset()
- func (m *RemoveRateLimitProposal) Size() (n int)
- func (p RemoveRateLimitProposal) String() string
- func (m *RemoveRateLimitProposal) Unmarshal(dAtA []byte) error
- func (p *RemoveRateLimitProposal) ValidateBasic() error
- func (m *RemoveRateLimitProposal) XXX_DiscardUnknown()
- func (m *RemoveRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RemoveRateLimitProposal) XXX_Merge(src proto.Message)
- func (m *RemoveRateLimitProposal) XXX_Size() int
- func (m *RemoveRateLimitProposal) XXX_Unmarshal(b []byte) error
- type ResetRateLimitProposal
- func (*ResetRateLimitProposal) Descriptor() ([]byte, []int)
- func (this *ResetRateLimitProposal) Equal(that interface{}) bool
- func (p *ResetRateLimitProposal) GetDescription() string
- func (p *ResetRateLimitProposal) GetTitle() string
- func (m *ResetRateLimitProposal) Marshal() (dAtA []byte, err error)
- func (m *ResetRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ResetRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *ResetRateLimitProposal) ProposalRoute() string
- func (p *ResetRateLimitProposal) ProposalType() string
- func (*ResetRateLimitProposal) ProtoMessage()
- func (m *ResetRateLimitProposal) Reset()
- func (m *ResetRateLimitProposal) Size() (n int)
- func (p ResetRateLimitProposal) String() string
- func (m *ResetRateLimitProposal) Unmarshal(dAtA []byte) error
- func (p *ResetRateLimitProposal) ValidateBasic() error
- func (m *ResetRateLimitProposal) XXX_DiscardUnknown()
- func (m *ResetRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResetRateLimitProposal) XXX_Merge(src proto.Message)
- func (m *ResetRateLimitProposal) XXX_Size() int
- func (m *ResetRateLimitProposal) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllBlacklistedDenoms(ctx context.Context, req *QueryAllBlacklistedDenomsRequest) (*QueryAllBlacklistedDenomsResponse, error)
- func (*UnimplementedQueryServer) AllRateLimits(ctx context.Context, req *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error)
- func (*UnimplementedQueryServer) AllWhitelistedAddresses(ctx context.Context, req *QueryAllWhitelistedAddressesRequest) (*QueryAllWhitelistedAddressesResponse, error)
- func (*UnimplementedQueryServer) RateLimit(ctx context.Context, req *QueryRateLimitRequest) (*QueryRateLimitResponse, error)
- func (*UnimplementedQueryServer) RateLimitsByChainId(ctx context.Context, req *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error)
- func (*UnimplementedQueryServer) RateLimitsByChannelId(ctx context.Context, req *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error)
- type UpdateRateLimitProposal
- func (*UpdateRateLimitProposal) Descriptor() ([]byte, []int)
- func (this *UpdateRateLimitProposal) Equal(that interface{}) bool
- func (p *UpdateRateLimitProposal) GetDescription() string
- func (p *UpdateRateLimitProposal) GetTitle() string
- func (m *UpdateRateLimitProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdateRateLimitProposal) ProposalRoute() string
- func (p *UpdateRateLimitProposal) ProposalType() string
- func (*UpdateRateLimitProposal) ProtoMessage()
- func (m *UpdateRateLimitProposal) Reset()
- func (m *UpdateRateLimitProposal) Size() (n int)
- func (p UpdateRateLimitProposal) String() string
- func (m *UpdateRateLimitProposal) Unmarshal(dAtA []byte) error
- func (p *UpdateRateLimitProposal) ValidateBasic() error
- func (m *UpdateRateLimitProposal) XXX_DiscardUnknown()
- func (m *UpdateRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRateLimitProposal) XXX_Merge(src proto.Message)
- func (m *UpdateRateLimitProposal) XXX_Size() int
- func (m *UpdateRateLimitProposal) XXX_Unmarshal(b []byte) error
- type WhitelistedAddressPair
- func (*WhitelistedAddressPair) Descriptor() ([]byte, []int)
- func (m *WhitelistedAddressPair) GetReceiver() string
- func (m *WhitelistedAddressPair) GetSender() string
- func (m *WhitelistedAddressPair) Marshal() (dAtA []byte, err error)
- func (m *WhitelistedAddressPair) MarshalTo(dAtA []byte) (int, error)
- func (m *WhitelistedAddressPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhitelistedAddressPair) ProtoMessage()
- func (m *WhitelistedAddressPair) Reset()
- func (m *WhitelistedAddressPair) Size() (n int)
- func (m *WhitelistedAddressPair) String() string
- func (m *WhitelistedAddressPair) Unmarshal(dAtA []byte) error
- func (m *WhitelistedAddressPair) XXX_DiscardUnknown()
- func (m *WhitelistedAddressPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhitelistedAddressPair) XXX_Merge(src proto.Message)
- func (m *WhitelistedAddressPair) XXX_Size() int
- func (m *WhitelistedAddressPair) XXX_Unmarshal(b []byte) error
Constants ¶
const ( ModuleName = "ratelimit" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const (
ProposalTypeAddRateLimit = "AddRateLimit"
)
const (
ProposalTypeRemoveRateLimit = "RemoveRateLimit"
)
const (
ProposalTypeResetRateLimit = "ResetRateLimit"
)
const (
ProposalTypeUpdateRateLimit = "UpdateRateLimit"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrRateLimitAlreadyExists = errorsmod.Register(ModuleName, 1, "ratelimit key duplicated") ErrRateLimitNotFound = errorsmod.Register(ModuleName, 2, "rate limit not found") ErrZeroChannelValue = errorsmod.Register(ModuleName, 3, "channel value is zero") ErrQuotaExceeded = errorsmod.Register(ModuleName, 4, "quota exceeded") ErrInvalidClientState = errorsmod.Register(ModuleName, 5, "unable to determine client state from channelId") ErrChannelNotFound = errorsmod.Register(ModuleName, 6, "channel does not exist") ErrDenomIsBlacklisted = errorsmod.Register(ModuleName, 7, "denom is blacklisted", ) )
x/ratelimit module sentinel errors
var ( EventTransferDenied = "transfer_denied" EventRateLimitExceeded = "rate_limit_exceeded" EventBlacklistedDenom = "blacklisted_denom" AttributeKeyReason = "reason" AttributeKeyModule = "module" AttributeKeyAction = "action" AttributeKeyDenom = "denom" AttributeKeyChannel = "channel" AttributeKeyAmount = "amount" AttributeKeyError = "error" )
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 ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( PathKeyPrefix = KeyPrefix("path") RateLimitKeyPrefix = KeyPrefix("rate-limit") PendingSendPacketPrefix = KeyPrefix("pending-send-packet") DenomBlacklistKeyPrefix = KeyPrefix("denom-blacklist") AddressWhitelistKeyPrefix = KeyPrefix("address-blacklist") PendingSendPacketChannelLength int = 16 )
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 ( ErrInvalidLengthRatelimit = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRatelimit = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRatelimit = fmt.Errorf("proto: unexpected end of group") )
var PacketDirection_name = map[int32]string{
0: "PACKET_SEND",
1: "PACKET_RECV",
}
var PacketDirection_value = map[string]int32{
"PACKET_SEND": 0,
"PACKET_RECV": 1,
}
Functions ¶
func GetAddressWhitelistKey ¶
func GetPendingSendPacketKey ¶
func NewAddRateLimitProposal ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 AddRateLimitProposal ¶
type AddRateLimitProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` }
func (*AddRateLimitProposal) Descriptor ¶
func (*AddRateLimitProposal) Descriptor() ([]byte, []int)
func (*AddRateLimitProposal) Equal ¶
func (this *AddRateLimitProposal) Equal(that interface{}) bool
func (*AddRateLimitProposal) GetDescription ¶
func (p *AddRateLimitProposal) GetDescription() string
func (*AddRateLimitProposal) GetTitle ¶
func (p *AddRateLimitProposal) GetTitle() string
func (*AddRateLimitProposal) Marshal ¶
func (m *AddRateLimitProposal) Marshal() (dAtA []byte, err error)
func (*AddRateLimitProposal) MarshalTo ¶
func (m *AddRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
func (*AddRateLimitProposal) MarshalToSizedBuffer ¶
func (m *AddRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddRateLimitProposal) ProposalRoute ¶
func (p *AddRateLimitProposal) ProposalRoute() string
func (*AddRateLimitProposal) ProposalType ¶
func (p *AddRateLimitProposal) ProposalType() string
func (*AddRateLimitProposal) ProtoMessage ¶
func (*AddRateLimitProposal) ProtoMessage()
func (*AddRateLimitProposal) Reset ¶
func (m *AddRateLimitProposal) Reset()
func (*AddRateLimitProposal) Size ¶
func (m *AddRateLimitProposal) Size() (n int)
func (AddRateLimitProposal) String ¶
func (p AddRateLimitProposal) String() string
func (*AddRateLimitProposal) Unmarshal ¶
func (m *AddRateLimitProposal) Unmarshal(dAtA []byte) error
func (*AddRateLimitProposal) ValidateBasic ¶
func (p *AddRateLimitProposal) ValidateBasic() error
func (*AddRateLimitProposal) XXX_DiscardUnknown ¶
func (m *AddRateLimitProposal) XXX_DiscardUnknown()
func (*AddRateLimitProposal) XXX_Marshal ¶
func (m *AddRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddRateLimitProposal) XXX_Merge ¶
func (m *AddRateLimitProposal) XXX_Merge(src proto.Message)
func (*AddRateLimitProposal) XXX_Size ¶
func (m *AddRateLimitProposal) XXX_Size() int
func (*AddRateLimitProposal) XXX_Unmarshal ¶
func (m *AddRateLimitProposal) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
BankKeeper defines the banking contract that must be fulfilled when creating a x/ratelimit keeper.
type ChannelKeeper ¶
type ChannelKeeper interface { GetChannel(ctx sdk.Context, portID string, channelID string) (channeltypes.Channel, bool) GetChannelClientState(ctx sdk.Context, portID string, channelID string) (string, exported.ClientState, error) }
ChannelKeeper defines the channel contract that must be fulfilled when creating a x/ratelimit keeper.
type Flow ¶
type Flow struct { Inflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=inflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"inflow"` Outflow github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=outflow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"outflow"` ChannelValue github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */ }
func (*Flow) AddInflow ¶
Adds an amount to the rate limit's flow after an incoming packet was received Returns an error if the new inflow will cause the rate limit to exceed its quota
func (*Flow) AddOutflow ¶
Adds an amount to the rate limit's flow after a packet was sent Returns an error if the new outflow will cause the rate limit to exceed its quota
func (*Flow) Descriptor ¶
func (*Flow) ProtoMessage ¶
func (*Flow) ProtoMessage()
func (*Flow) XXX_DiscardUnknown ¶
func (m *Flow) XXX_DiscardUnknown()
func (*Flow) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` RateLimits []RateLimit `protobuf:"bytes,2,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits" yaml:"rate_limits"` WhitelistedAddressPairs []WhitelistedAddressPair `` /* 155-byte string literal not displayed */ BlacklistedDenoms []string `protobuf:"bytes,4,rep,name=blacklisted_denoms,json=blacklistedDenoms,proto3" json:"blacklisted_denoms,omitempty"` PendingSendPacketSequenceNumbers []string `` /* 163-byte string literal not displayed */ }
GenesisState defines the ratelimit module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBlacklistedDenoms ¶
func (m *GenesisState) GetBlacklistedDenoms() []string
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPendingSendPacketSequenceNumbers ¶
func (m *GenesisState) GetPendingSendPacketSequenceNumbers() []string
func (*GenesisState) GetRateLimits ¶
func (m *GenesisState) GetRateLimits() []RateLimit
func (*GenesisState) GetWhitelistedAddressPairs ¶
func (m *GenesisState) GetWhitelistedAddressPairs() []WhitelistedAddressPair
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 ICS4Wrapper ¶
type ICS4Wrapper interface { WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, acknowledgement ibcexported.Acknowledgement) error SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error) GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool) }
ICS4Wrapper defines the expected ICS4Wrapper for middleware
type PacketDirection ¶
type PacketDirection int32
const ( PACKET_SEND PacketDirection = 0 PACKET_RECV PacketDirection = 1 )
func (PacketDirection) EnumDescriptor ¶
func (PacketDirection) EnumDescriptor() ([]byte, []int)
func (PacketDirection) String ¶
func (x PacketDirection) String() string
type Params ¶
type Params struct { }
Params defines the ratelimit module's parameters.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Path ¶
type Path struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` }
func (*Path) Descriptor ¶
func (*Path) GetChannelId ¶
func (*Path) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) XXX_DiscardUnknown ¶
func (m *Path) XXX_DiscardUnknown()
func (*Path) XXX_Unmarshal ¶
type QueryAllBlacklistedDenomsRequest ¶
type QueryAllBlacklistedDenomsRequest struct { }
func (*QueryAllBlacklistedDenomsRequest) Descriptor ¶
func (*QueryAllBlacklistedDenomsRequest) Descriptor() ([]byte, []int)
func (*QueryAllBlacklistedDenomsRequest) Marshal ¶
func (m *QueryAllBlacklistedDenomsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBlacklistedDenomsRequest) MarshalTo ¶
func (m *QueryAllBlacklistedDenomsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBlacklistedDenomsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBlacklistedDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBlacklistedDenomsRequest) ProtoMessage ¶
func (*QueryAllBlacklistedDenomsRequest) ProtoMessage()
func (*QueryAllBlacklistedDenomsRequest) Reset ¶
func (m *QueryAllBlacklistedDenomsRequest) Reset()
func (*QueryAllBlacklistedDenomsRequest) Size ¶
func (m *QueryAllBlacklistedDenomsRequest) Size() (n int)
func (*QueryAllBlacklistedDenomsRequest) String ¶
func (m *QueryAllBlacklistedDenomsRequest) String() string
func (*QueryAllBlacklistedDenomsRequest) Unmarshal ¶
func (m *QueryAllBlacklistedDenomsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBlacklistedDenomsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBlacklistedDenomsRequest) XXX_DiscardUnknown()
func (*QueryAllBlacklistedDenomsRequest) XXX_Marshal ¶
func (m *QueryAllBlacklistedDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBlacklistedDenomsRequest) XXX_Merge ¶
func (m *QueryAllBlacklistedDenomsRequest) XXX_Merge(src proto.Message)
func (*QueryAllBlacklistedDenomsRequest) XXX_Size ¶
func (m *QueryAllBlacklistedDenomsRequest) XXX_Size() int
func (*QueryAllBlacklistedDenomsRequest) XXX_Unmarshal ¶
func (m *QueryAllBlacklistedDenomsRequest) XXX_Unmarshal(b []byte) error
type QueryAllBlacklistedDenomsResponse ¶
type QueryAllBlacklistedDenomsResponse struct {
Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
}
func (*QueryAllBlacklistedDenomsResponse) Descriptor ¶
func (*QueryAllBlacklistedDenomsResponse) Descriptor() ([]byte, []int)
func (*QueryAllBlacklistedDenomsResponse) GetDenoms ¶
func (m *QueryAllBlacklistedDenomsResponse) GetDenoms() []string
func (*QueryAllBlacklistedDenomsResponse) Marshal ¶
func (m *QueryAllBlacklistedDenomsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBlacklistedDenomsResponse) MarshalTo ¶
func (m *QueryAllBlacklistedDenomsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBlacklistedDenomsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBlacklistedDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBlacklistedDenomsResponse) ProtoMessage ¶
func (*QueryAllBlacklistedDenomsResponse) ProtoMessage()
func (*QueryAllBlacklistedDenomsResponse) Reset ¶
func (m *QueryAllBlacklistedDenomsResponse) Reset()
func (*QueryAllBlacklistedDenomsResponse) Size ¶
func (m *QueryAllBlacklistedDenomsResponse) Size() (n int)
func (*QueryAllBlacklistedDenomsResponse) String ¶
func (m *QueryAllBlacklistedDenomsResponse) String() string
func (*QueryAllBlacklistedDenomsResponse) Unmarshal ¶
func (m *QueryAllBlacklistedDenomsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBlacklistedDenomsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBlacklistedDenomsResponse) XXX_DiscardUnknown()
func (*QueryAllBlacklistedDenomsResponse) XXX_Marshal ¶
func (m *QueryAllBlacklistedDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBlacklistedDenomsResponse) XXX_Merge ¶
func (m *QueryAllBlacklistedDenomsResponse) XXX_Merge(src proto.Message)
func (*QueryAllBlacklistedDenomsResponse) XXX_Size ¶
func (m *QueryAllBlacklistedDenomsResponse) XXX_Size() int
func (*QueryAllBlacklistedDenomsResponse) XXX_Unmarshal ¶
func (m *QueryAllBlacklistedDenomsResponse) XXX_Unmarshal(b []byte) error
type QueryAllRateLimitsRequest ¶
type QueryAllRateLimitsRequest struct { }
func (*QueryAllRateLimitsRequest) Descriptor ¶
func (*QueryAllRateLimitsRequest) Descriptor() ([]byte, []int)
func (*QueryAllRateLimitsRequest) Marshal ¶
func (m *QueryAllRateLimitsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllRateLimitsRequest) MarshalTo ¶
func (m *QueryAllRateLimitsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRateLimitsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllRateLimitsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRateLimitsRequest) ProtoMessage ¶
func (*QueryAllRateLimitsRequest) ProtoMessage()
func (*QueryAllRateLimitsRequest) Reset ¶
func (m *QueryAllRateLimitsRequest) Reset()
func (*QueryAllRateLimitsRequest) Size ¶
func (m *QueryAllRateLimitsRequest) Size() (n int)
func (*QueryAllRateLimitsRequest) String ¶
func (m *QueryAllRateLimitsRequest) String() string
func (*QueryAllRateLimitsRequest) Unmarshal ¶
func (m *QueryAllRateLimitsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllRateLimitsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllRateLimitsRequest) XXX_DiscardUnknown()
func (*QueryAllRateLimitsRequest) XXX_Marshal ¶
func (m *QueryAllRateLimitsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRateLimitsRequest) XXX_Merge ¶
func (m *QueryAllRateLimitsRequest) XXX_Merge(src proto.Message)
func (*QueryAllRateLimitsRequest) XXX_Size ¶
func (m *QueryAllRateLimitsRequest) XXX_Size() int
func (*QueryAllRateLimitsRequest) XXX_Unmarshal ¶
func (m *QueryAllRateLimitsRequest) XXX_Unmarshal(b []byte) error
type QueryAllRateLimitsResponse ¶
type QueryAllRateLimitsResponse struct {
RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"`
}
func (*QueryAllRateLimitsResponse) Descriptor ¶
func (*QueryAllRateLimitsResponse) Descriptor() ([]byte, []int)
func (*QueryAllRateLimitsResponse) GetRateLimits ¶
func (m *QueryAllRateLimitsResponse) GetRateLimits() []RateLimit
func (*QueryAllRateLimitsResponse) Marshal ¶
func (m *QueryAllRateLimitsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllRateLimitsResponse) MarshalTo ¶
func (m *QueryAllRateLimitsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRateLimitsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllRateLimitsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRateLimitsResponse) ProtoMessage ¶
func (*QueryAllRateLimitsResponse) ProtoMessage()
func (*QueryAllRateLimitsResponse) Reset ¶
func (m *QueryAllRateLimitsResponse) Reset()
func (*QueryAllRateLimitsResponse) Size ¶
func (m *QueryAllRateLimitsResponse) Size() (n int)
func (*QueryAllRateLimitsResponse) String ¶
func (m *QueryAllRateLimitsResponse) String() string
func (*QueryAllRateLimitsResponse) Unmarshal ¶
func (m *QueryAllRateLimitsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllRateLimitsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllRateLimitsResponse) XXX_DiscardUnknown()
func (*QueryAllRateLimitsResponse) XXX_Marshal ¶
func (m *QueryAllRateLimitsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRateLimitsResponse) XXX_Merge ¶
func (m *QueryAllRateLimitsResponse) XXX_Merge(src proto.Message)
func (*QueryAllRateLimitsResponse) XXX_Size ¶
func (m *QueryAllRateLimitsResponse) XXX_Size() int
func (*QueryAllRateLimitsResponse) XXX_Unmarshal ¶
func (m *QueryAllRateLimitsResponse) XXX_Unmarshal(b []byte) error
type QueryAllWhitelistedAddressesRequest ¶
type QueryAllWhitelistedAddressesRequest struct { }
func (*QueryAllWhitelistedAddressesRequest) Descriptor ¶
func (*QueryAllWhitelistedAddressesRequest) Descriptor() ([]byte, []int)
func (*QueryAllWhitelistedAddressesRequest) Marshal ¶
func (m *QueryAllWhitelistedAddressesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllWhitelistedAddressesRequest) MarshalTo ¶
func (m *QueryAllWhitelistedAddressesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhitelistedAddressesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllWhitelistedAddressesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhitelistedAddressesRequest) ProtoMessage ¶
func (*QueryAllWhitelistedAddressesRequest) ProtoMessage()
func (*QueryAllWhitelistedAddressesRequest) Reset ¶
func (m *QueryAllWhitelistedAddressesRequest) Reset()
func (*QueryAllWhitelistedAddressesRequest) Size ¶
func (m *QueryAllWhitelistedAddressesRequest) Size() (n int)
func (*QueryAllWhitelistedAddressesRequest) String ¶
func (m *QueryAllWhitelistedAddressesRequest) String() string
func (*QueryAllWhitelistedAddressesRequest) Unmarshal ¶
func (m *QueryAllWhitelistedAddressesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllWhitelistedAddressesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllWhitelistedAddressesRequest) XXX_DiscardUnknown()
func (*QueryAllWhitelistedAddressesRequest) XXX_Marshal ¶
func (m *QueryAllWhitelistedAddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhitelistedAddressesRequest) XXX_Merge ¶
func (m *QueryAllWhitelistedAddressesRequest) XXX_Merge(src proto.Message)
func (*QueryAllWhitelistedAddressesRequest) XXX_Size ¶
func (m *QueryAllWhitelistedAddressesRequest) XXX_Size() int
func (*QueryAllWhitelistedAddressesRequest) XXX_Unmarshal ¶
func (m *QueryAllWhitelistedAddressesRequest) XXX_Unmarshal(b []byte) error
type QueryAllWhitelistedAddressesResponse ¶
type QueryAllWhitelistedAddressesResponse struct {
AddressPairs []WhitelistedAddressPair `protobuf:"bytes,1,rep,name=address_pairs,json=addressPairs,proto3" json:"address_pairs"`
}
func (*QueryAllWhitelistedAddressesResponse) Descriptor ¶
func (*QueryAllWhitelistedAddressesResponse) Descriptor() ([]byte, []int)
func (*QueryAllWhitelistedAddressesResponse) GetAddressPairs ¶
func (m *QueryAllWhitelistedAddressesResponse) GetAddressPairs() []WhitelistedAddressPair
func (*QueryAllWhitelistedAddressesResponse) Marshal ¶
func (m *QueryAllWhitelistedAddressesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllWhitelistedAddressesResponse) MarshalTo ¶
func (m *QueryAllWhitelistedAddressesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllWhitelistedAddressesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllWhitelistedAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllWhitelistedAddressesResponse) ProtoMessage ¶
func (*QueryAllWhitelistedAddressesResponse) ProtoMessage()
func (*QueryAllWhitelistedAddressesResponse) Reset ¶
func (m *QueryAllWhitelistedAddressesResponse) Reset()
func (*QueryAllWhitelistedAddressesResponse) Size ¶
func (m *QueryAllWhitelistedAddressesResponse) Size() (n int)
func (*QueryAllWhitelistedAddressesResponse) String ¶
func (m *QueryAllWhitelistedAddressesResponse) String() string
func (*QueryAllWhitelistedAddressesResponse) Unmarshal ¶
func (m *QueryAllWhitelistedAddressesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllWhitelistedAddressesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllWhitelistedAddressesResponse) XXX_DiscardUnknown()
func (*QueryAllWhitelistedAddressesResponse) XXX_Marshal ¶
func (m *QueryAllWhitelistedAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllWhitelistedAddressesResponse) XXX_Merge ¶
func (m *QueryAllWhitelistedAddressesResponse) XXX_Merge(src proto.Message)
func (*QueryAllWhitelistedAddressesResponse) XXX_Size ¶
func (m *QueryAllWhitelistedAddressesResponse) XXX_Size() int
func (*QueryAllWhitelistedAddressesResponse) XXX_Unmarshal ¶
func (m *QueryAllWhitelistedAddressesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { AllRateLimits(ctx context.Context, in *QueryAllRateLimitsRequest, opts ...grpc.CallOption) (*QueryAllRateLimitsResponse, error) RateLimit(ctx context.Context, in *QueryRateLimitRequest, opts ...grpc.CallOption) (*QueryRateLimitResponse, error) RateLimitsByChainId(ctx context.Context, in *QueryRateLimitsByChainIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChainIdResponse, error) RateLimitsByChannelId(ctx context.Context, in *QueryRateLimitsByChannelIdRequest, opts ...grpc.CallOption) (*QueryRateLimitsByChannelIdResponse, error) AllBlacklistedDenoms(ctx context.Context, in *QueryAllBlacklistedDenomsRequest, opts ...grpc.CallOption) (*QueryAllBlacklistedDenomsResponse, error) AllWhitelistedAddresses(ctx context.Context, in *QueryAllWhitelistedAddressesRequest, opts ...grpc.CallOption) (*QueryAllWhitelistedAddressesResponse, 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 QueryRateLimitRequest ¶
type QueryRateLimitRequest struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` }
func (*QueryRateLimitRequest) Descriptor ¶
func (*QueryRateLimitRequest) Descriptor() ([]byte, []int)
func (*QueryRateLimitRequest) GetChannelId ¶
func (m *QueryRateLimitRequest) GetChannelId() string
func (*QueryRateLimitRequest) GetDenom ¶
func (m *QueryRateLimitRequest) GetDenom() string
func (*QueryRateLimitRequest) Marshal ¶
func (m *QueryRateLimitRequest) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitRequest) MarshalTo ¶
func (m *QueryRateLimitRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitRequest) MarshalToSizedBuffer ¶
func (m *QueryRateLimitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitRequest) ProtoMessage ¶
func (*QueryRateLimitRequest) ProtoMessage()
func (*QueryRateLimitRequest) Reset ¶
func (m *QueryRateLimitRequest) Reset()
func (*QueryRateLimitRequest) Size ¶
func (m *QueryRateLimitRequest) Size() (n int)
func (*QueryRateLimitRequest) String ¶
func (m *QueryRateLimitRequest) String() string
func (*QueryRateLimitRequest) Unmarshal ¶
func (m *QueryRateLimitRequest) Unmarshal(dAtA []byte) error
func (*QueryRateLimitRequest) XXX_DiscardUnknown ¶
func (m *QueryRateLimitRequest) XXX_DiscardUnknown()
func (*QueryRateLimitRequest) XXX_Marshal ¶
func (m *QueryRateLimitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitRequest) XXX_Merge ¶
func (m *QueryRateLimitRequest) XXX_Merge(src proto.Message)
func (*QueryRateLimitRequest) XXX_Size ¶
func (m *QueryRateLimitRequest) XXX_Size() int
func (*QueryRateLimitRequest) XXX_Unmarshal ¶
func (m *QueryRateLimitRequest) XXX_Unmarshal(b []byte) error
type QueryRateLimitResponse ¶
type QueryRateLimitResponse struct {
RateLimit *RateLimit `protobuf:"bytes,1,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"`
}
func (*QueryRateLimitResponse) Descriptor ¶
func (*QueryRateLimitResponse) Descriptor() ([]byte, []int)
func (*QueryRateLimitResponse) GetRateLimit ¶
func (m *QueryRateLimitResponse) GetRateLimit() *RateLimit
func (*QueryRateLimitResponse) Marshal ¶
func (m *QueryRateLimitResponse) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitResponse) MarshalTo ¶
func (m *QueryRateLimitResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitResponse) MarshalToSizedBuffer ¶
func (m *QueryRateLimitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitResponse) ProtoMessage ¶
func (*QueryRateLimitResponse) ProtoMessage()
func (*QueryRateLimitResponse) Reset ¶
func (m *QueryRateLimitResponse) Reset()
func (*QueryRateLimitResponse) Size ¶
func (m *QueryRateLimitResponse) Size() (n int)
func (*QueryRateLimitResponse) String ¶
func (m *QueryRateLimitResponse) String() string
func (*QueryRateLimitResponse) Unmarshal ¶
func (m *QueryRateLimitResponse) Unmarshal(dAtA []byte) error
func (*QueryRateLimitResponse) XXX_DiscardUnknown ¶
func (m *QueryRateLimitResponse) XXX_DiscardUnknown()
func (*QueryRateLimitResponse) XXX_Marshal ¶
func (m *QueryRateLimitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitResponse) XXX_Merge ¶
func (m *QueryRateLimitResponse) XXX_Merge(src proto.Message)
func (*QueryRateLimitResponse) XXX_Size ¶
func (m *QueryRateLimitResponse) XXX_Size() int
func (*QueryRateLimitResponse) XXX_Unmarshal ¶
func (m *QueryRateLimitResponse) XXX_Unmarshal(b []byte) error
type QueryRateLimitsByChainIdRequest ¶
type QueryRateLimitsByChainIdRequest struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}
func (*QueryRateLimitsByChainIdRequest) Descriptor ¶
func (*QueryRateLimitsByChainIdRequest) Descriptor() ([]byte, []int)
func (*QueryRateLimitsByChainIdRequest) GetChainId ¶
func (m *QueryRateLimitsByChainIdRequest) GetChainId() string
func (*QueryRateLimitsByChainIdRequest) Marshal ¶
func (m *QueryRateLimitsByChainIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitsByChainIdRequest) MarshalTo ¶
func (m *QueryRateLimitsByChainIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitsByChainIdRequest) MarshalToSizedBuffer ¶
func (m *QueryRateLimitsByChainIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitsByChainIdRequest) ProtoMessage ¶
func (*QueryRateLimitsByChainIdRequest) ProtoMessage()
func (*QueryRateLimitsByChainIdRequest) Reset ¶
func (m *QueryRateLimitsByChainIdRequest) Reset()
func (*QueryRateLimitsByChainIdRequest) Size ¶
func (m *QueryRateLimitsByChainIdRequest) Size() (n int)
func (*QueryRateLimitsByChainIdRequest) String ¶
func (m *QueryRateLimitsByChainIdRequest) String() string
func (*QueryRateLimitsByChainIdRequest) Unmarshal ¶
func (m *QueryRateLimitsByChainIdRequest) Unmarshal(dAtA []byte) error
func (*QueryRateLimitsByChainIdRequest) XXX_DiscardUnknown ¶
func (m *QueryRateLimitsByChainIdRequest) XXX_DiscardUnknown()
func (*QueryRateLimitsByChainIdRequest) XXX_Marshal ¶
func (m *QueryRateLimitsByChainIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitsByChainIdRequest) XXX_Merge ¶
func (m *QueryRateLimitsByChainIdRequest) XXX_Merge(src proto.Message)
func (*QueryRateLimitsByChainIdRequest) XXX_Size ¶
func (m *QueryRateLimitsByChainIdRequest) XXX_Size() int
func (*QueryRateLimitsByChainIdRequest) XXX_Unmarshal ¶
func (m *QueryRateLimitsByChainIdRequest) XXX_Unmarshal(b []byte) error
type QueryRateLimitsByChainIdResponse ¶
type QueryRateLimitsByChainIdResponse struct {
RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"`
}
func (*QueryRateLimitsByChainIdResponse) Descriptor ¶
func (*QueryRateLimitsByChainIdResponse) Descriptor() ([]byte, []int)
func (*QueryRateLimitsByChainIdResponse) GetRateLimits ¶
func (m *QueryRateLimitsByChainIdResponse) GetRateLimits() []RateLimit
func (*QueryRateLimitsByChainIdResponse) Marshal ¶
func (m *QueryRateLimitsByChainIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitsByChainIdResponse) MarshalTo ¶
func (m *QueryRateLimitsByChainIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitsByChainIdResponse) MarshalToSizedBuffer ¶
func (m *QueryRateLimitsByChainIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitsByChainIdResponse) ProtoMessage ¶
func (*QueryRateLimitsByChainIdResponse) ProtoMessage()
func (*QueryRateLimitsByChainIdResponse) Reset ¶
func (m *QueryRateLimitsByChainIdResponse) Reset()
func (*QueryRateLimitsByChainIdResponse) Size ¶
func (m *QueryRateLimitsByChainIdResponse) Size() (n int)
func (*QueryRateLimitsByChainIdResponse) String ¶
func (m *QueryRateLimitsByChainIdResponse) String() string
func (*QueryRateLimitsByChainIdResponse) Unmarshal ¶
func (m *QueryRateLimitsByChainIdResponse) Unmarshal(dAtA []byte) error
func (*QueryRateLimitsByChainIdResponse) XXX_DiscardUnknown ¶
func (m *QueryRateLimitsByChainIdResponse) XXX_DiscardUnknown()
func (*QueryRateLimitsByChainIdResponse) XXX_Marshal ¶
func (m *QueryRateLimitsByChainIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitsByChainIdResponse) XXX_Merge ¶
func (m *QueryRateLimitsByChainIdResponse) XXX_Merge(src proto.Message)
func (*QueryRateLimitsByChainIdResponse) XXX_Size ¶
func (m *QueryRateLimitsByChainIdResponse) XXX_Size() int
func (*QueryRateLimitsByChainIdResponse) XXX_Unmarshal ¶
func (m *QueryRateLimitsByChainIdResponse) XXX_Unmarshal(b []byte) error
type QueryRateLimitsByChannelIdRequest ¶
type QueryRateLimitsByChannelIdRequest struct {
ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}
func (*QueryRateLimitsByChannelIdRequest) Descriptor ¶
func (*QueryRateLimitsByChannelIdRequest) Descriptor() ([]byte, []int)
func (*QueryRateLimitsByChannelIdRequest) GetChannelId ¶
func (m *QueryRateLimitsByChannelIdRequest) GetChannelId() string
func (*QueryRateLimitsByChannelIdRequest) Marshal ¶
func (m *QueryRateLimitsByChannelIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitsByChannelIdRequest) MarshalTo ¶
func (m *QueryRateLimitsByChannelIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitsByChannelIdRequest) MarshalToSizedBuffer ¶
func (m *QueryRateLimitsByChannelIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitsByChannelIdRequest) ProtoMessage ¶
func (*QueryRateLimitsByChannelIdRequest) ProtoMessage()
func (*QueryRateLimitsByChannelIdRequest) Reset ¶
func (m *QueryRateLimitsByChannelIdRequest) Reset()
func (*QueryRateLimitsByChannelIdRequest) Size ¶
func (m *QueryRateLimitsByChannelIdRequest) Size() (n int)
func (*QueryRateLimitsByChannelIdRequest) String ¶
func (m *QueryRateLimitsByChannelIdRequest) String() string
func (*QueryRateLimitsByChannelIdRequest) Unmarshal ¶
func (m *QueryRateLimitsByChannelIdRequest) Unmarshal(dAtA []byte) error
func (*QueryRateLimitsByChannelIdRequest) XXX_DiscardUnknown ¶
func (m *QueryRateLimitsByChannelIdRequest) XXX_DiscardUnknown()
func (*QueryRateLimitsByChannelIdRequest) XXX_Marshal ¶
func (m *QueryRateLimitsByChannelIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitsByChannelIdRequest) XXX_Merge ¶
func (m *QueryRateLimitsByChannelIdRequest) XXX_Merge(src proto.Message)
func (*QueryRateLimitsByChannelIdRequest) XXX_Size ¶
func (m *QueryRateLimitsByChannelIdRequest) XXX_Size() int
func (*QueryRateLimitsByChannelIdRequest) XXX_Unmarshal ¶
func (m *QueryRateLimitsByChannelIdRequest) XXX_Unmarshal(b []byte) error
type QueryRateLimitsByChannelIdResponse ¶
type QueryRateLimitsByChannelIdResponse struct {
RateLimits []RateLimit `protobuf:"bytes,1,rep,name=rate_limits,json=rateLimits,proto3" json:"rate_limits"`
}
func (*QueryRateLimitsByChannelIdResponse) Descriptor ¶
func (*QueryRateLimitsByChannelIdResponse) Descriptor() ([]byte, []int)
func (*QueryRateLimitsByChannelIdResponse) GetRateLimits ¶
func (m *QueryRateLimitsByChannelIdResponse) GetRateLimits() []RateLimit
func (*QueryRateLimitsByChannelIdResponse) Marshal ¶
func (m *QueryRateLimitsByChannelIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryRateLimitsByChannelIdResponse) MarshalTo ¶
func (m *QueryRateLimitsByChannelIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRateLimitsByChannelIdResponse) MarshalToSizedBuffer ¶
func (m *QueryRateLimitsByChannelIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRateLimitsByChannelIdResponse) ProtoMessage ¶
func (*QueryRateLimitsByChannelIdResponse) ProtoMessage()
func (*QueryRateLimitsByChannelIdResponse) Reset ¶
func (m *QueryRateLimitsByChannelIdResponse) Reset()
func (*QueryRateLimitsByChannelIdResponse) Size ¶
func (m *QueryRateLimitsByChannelIdResponse) Size() (n int)
func (*QueryRateLimitsByChannelIdResponse) String ¶
func (m *QueryRateLimitsByChannelIdResponse) String() string
func (*QueryRateLimitsByChannelIdResponse) Unmarshal ¶
func (m *QueryRateLimitsByChannelIdResponse) Unmarshal(dAtA []byte) error
func (*QueryRateLimitsByChannelIdResponse) XXX_DiscardUnknown ¶
func (m *QueryRateLimitsByChannelIdResponse) XXX_DiscardUnknown()
func (*QueryRateLimitsByChannelIdResponse) XXX_Marshal ¶
func (m *QueryRateLimitsByChannelIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRateLimitsByChannelIdResponse) XXX_Merge ¶
func (m *QueryRateLimitsByChannelIdResponse) XXX_Merge(src proto.Message)
func (*QueryRateLimitsByChannelIdResponse) XXX_Size ¶
func (m *QueryRateLimitsByChannelIdResponse) XXX_Size() int
func (*QueryRateLimitsByChannelIdResponse) XXX_Unmarshal ¶
func (m *QueryRateLimitsByChannelIdResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { AllRateLimits(context.Context, *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error) RateLimit(context.Context, *QueryRateLimitRequest) (*QueryRateLimitResponse, error) RateLimitsByChainId(context.Context, *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error) RateLimitsByChannelId(context.Context, *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error) AllBlacklistedDenoms(context.Context, *QueryAllBlacklistedDenomsRequest) (*QueryAllBlacklistedDenomsResponse, error) AllWhitelistedAddresses(context.Context, *QueryAllWhitelistedAddressesRequest) (*QueryAllWhitelistedAddressesResponse, error) }
QueryServer is the server API for Query service.
type Quota ¶
type Quota struct { MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ DurationHours uint64 `protobuf:"varint,3,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` }
func (*Quota) CheckExceedsQuota ¶
func (q *Quota) CheckExceedsQuota(direction PacketDirection, amount sdkmath.Int, totalValue sdkmath.Int) bool
CheckExceedsQuota checks if new in/out flow is going to reach the max in/out or not
func (*Quota) Descriptor ¶
func (*Quota) GetDurationHours ¶
func (*Quota) ProtoMessage ¶
func (*Quota) ProtoMessage()
func (*Quota) XXX_DiscardUnknown ¶
func (m *Quota) XXX_DiscardUnknown()
func (*Quota) XXX_Marshal ¶
func (*Quota) XXX_Unmarshal ¶
type RateLimit ¶
type RateLimit struct { Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Quota *Quota `protobuf:"bytes,2,opt,name=quota,proto3" json:"quota,omitempty"` Flow *Flow `protobuf:"bytes,3,opt,name=flow,proto3" json:"flow,omitempty"` }
func (*RateLimit) Descriptor ¶
func (*RateLimit) MarshalToSizedBuffer ¶
func (*RateLimit) ProtoMessage ¶
func (*RateLimit) ProtoMessage()
func (*RateLimit) XXX_DiscardUnknown ¶
func (m *RateLimit) XXX_DiscardUnknown()
func (*RateLimit) XXX_Marshal ¶
func (*RateLimit) XXX_Unmarshal ¶
type RemoveRateLimitProposal ¶
type RemoveRateLimitProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` }
func (*RemoveRateLimitProposal) Descriptor ¶
func (*RemoveRateLimitProposal) Descriptor() ([]byte, []int)
func (*RemoveRateLimitProposal) Equal ¶
func (this *RemoveRateLimitProposal) Equal(that interface{}) bool
func (*RemoveRateLimitProposal) GetDescription ¶
func (p *RemoveRateLimitProposal) GetDescription() string
func (*RemoveRateLimitProposal) GetTitle ¶
func (p *RemoveRateLimitProposal) GetTitle() string
func (*RemoveRateLimitProposal) Marshal ¶
func (m *RemoveRateLimitProposal) Marshal() (dAtA []byte, err error)
func (*RemoveRateLimitProposal) MarshalTo ¶
func (m *RemoveRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
func (*RemoveRateLimitProposal) MarshalToSizedBuffer ¶
func (m *RemoveRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RemoveRateLimitProposal) ProposalRoute ¶
func (p *RemoveRateLimitProposal) ProposalRoute() string
func (*RemoveRateLimitProposal) ProposalType ¶
func (p *RemoveRateLimitProposal) ProposalType() string
func (*RemoveRateLimitProposal) ProtoMessage ¶
func (*RemoveRateLimitProposal) ProtoMessage()
func (*RemoveRateLimitProposal) Reset ¶
func (m *RemoveRateLimitProposal) Reset()
func (*RemoveRateLimitProposal) Size ¶
func (m *RemoveRateLimitProposal) Size() (n int)
func (RemoveRateLimitProposal) String ¶
func (p RemoveRateLimitProposal) String() string
func (*RemoveRateLimitProposal) Unmarshal ¶
func (m *RemoveRateLimitProposal) Unmarshal(dAtA []byte) error
func (*RemoveRateLimitProposal) ValidateBasic ¶
func (p *RemoveRateLimitProposal) ValidateBasic() error
func (*RemoveRateLimitProposal) XXX_DiscardUnknown ¶
func (m *RemoveRateLimitProposal) XXX_DiscardUnknown()
func (*RemoveRateLimitProposal) XXX_Marshal ¶
func (m *RemoveRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveRateLimitProposal) XXX_Merge ¶
func (m *RemoveRateLimitProposal) XXX_Merge(src proto.Message)
func (*RemoveRateLimitProposal) XXX_Size ¶
func (m *RemoveRateLimitProposal) XXX_Size() int
func (*RemoveRateLimitProposal) XXX_Unmarshal ¶
func (m *RemoveRateLimitProposal) XXX_Unmarshal(b []byte) error
type ResetRateLimitProposal ¶
type ResetRateLimitProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` }
func (*ResetRateLimitProposal) Descriptor ¶
func (*ResetRateLimitProposal) Descriptor() ([]byte, []int)
func (*ResetRateLimitProposal) Equal ¶
func (this *ResetRateLimitProposal) Equal(that interface{}) bool
func (*ResetRateLimitProposal) GetDescription ¶
func (p *ResetRateLimitProposal) GetDescription() string
func (*ResetRateLimitProposal) GetTitle ¶
func (p *ResetRateLimitProposal) GetTitle() string
func (*ResetRateLimitProposal) Marshal ¶
func (m *ResetRateLimitProposal) Marshal() (dAtA []byte, err error)
func (*ResetRateLimitProposal) MarshalTo ¶
func (m *ResetRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
func (*ResetRateLimitProposal) MarshalToSizedBuffer ¶
func (m *ResetRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResetRateLimitProposal) ProposalRoute ¶
func (p *ResetRateLimitProposal) ProposalRoute() string
func (*ResetRateLimitProposal) ProposalType ¶
func (p *ResetRateLimitProposal) ProposalType() string
func (*ResetRateLimitProposal) ProtoMessage ¶
func (*ResetRateLimitProposal) ProtoMessage()
func (*ResetRateLimitProposal) Reset ¶
func (m *ResetRateLimitProposal) Reset()
func (*ResetRateLimitProposal) Size ¶
func (m *ResetRateLimitProposal) Size() (n int)
func (ResetRateLimitProposal) String ¶
func (p ResetRateLimitProposal) String() string
func (*ResetRateLimitProposal) Unmarshal ¶
func (m *ResetRateLimitProposal) Unmarshal(dAtA []byte) error
func (*ResetRateLimitProposal) ValidateBasic ¶
func (p *ResetRateLimitProposal) ValidateBasic() error
func (*ResetRateLimitProposal) XXX_DiscardUnknown ¶
func (m *ResetRateLimitProposal) XXX_DiscardUnknown()
func (*ResetRateLimitProposal) XXX_Marshal ¶
func (m *ResetRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResetRateLimitProposal) XXX_Merge ¶
func (m *ResetRateLimitProposal) XXX_Merge(src proto.Message)
func (*ResetRateLimitProposal) XXX_Size ¶
func (m *ResetRateLimitProposal) XXX_Size() int
func (*ResetRateLimitProposal) XXX_Unmarshal ¶
func (m *ResetRateLimitProposal) XXX_Unmarshal(b []byte) error
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllBlacklistedDenoms ¶
func (*UnimplementedQueryServer) AllBlacklistedDenoms(ctx context.Context, req *QueryAllBlacklistedDenomsRequest) (*QueryAllBlacklistedDenomsResponse, error)
func (*UnimplementedQueryServer) AllRateLimits ¶
func (*UnimplementedQueryServer) AllRateLimits(ctx context.Context, req *QueryAllRateLimitsRequest) (*QueryAllRateLimitsResponse, error)
func (*UnimplementedQueryServer) AllWhitelistedAddresses ¶
func (*UnimplementedQueryServer) AllWhitelistedAddresses(ctx context.Context, req *QueryAllWhitelistedAddressesRequest) (*QueryAllWhitelistedAddressesResponse, error)
func (*UnimplementedQueryServer) RateLimit ¶
func (*UnimplementedQueryServer) RateLimit(ctx context.Context, req *QueryRateLimitRequest) (*QueryRateLimitResponse, error)
func (*UnimplementedQueryServer) RateLimitsByChainId ¶
func (*UnimplementedQueryServer) RateLimitsByChainId(ctx context.Context, req *QueryRateLimitsByChainIdRequest) (*QueryRateLimitsByChainIdResponse, error)
func (*UnimplementedQueryServer) RateLimitsByChannelId ¶
func (*UnimplementedQueryServer) RateLimitsByChannelId(ctx context.Context, req *QueryRateLimitsByChannelIdRequest) (*QueryRateLimitsByChannelIdResponse, error)
type UpdateRateLimitProposal ¶
type UpdateRateLimitProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` MaxPercentSend github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ MaxPercentRecv github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ DurationHours uint64 `protobuf:"varint,7,opt,name=duration_hours,json=durationHours,proto3" json:"duration_hours,omitempty"` Deposit string `protobuf:"bytes,8,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` }
func (*UpdateRateLimitProposal) Descriptor ¶
func (*UpdateRateLimitProposal) Descriptor() ([]byte, []int)
func (*UpdateRateLimitProposal) Equal ¶
func (this *UpdateRateLimitProposal) Equal(that interface{}) bool
func (*UpdateRateLimitProposal) GetDescription ¶
func (p *UpdateRateLimitProposal) GetDescription() string
func (*UpdateRateLimitProposal) GetTitle ¶
func (p *UpdateRateLimitProposal) GetTitle() string
func (*UpdateRateLimitProposal) Marshal ¶
func (m *UpdateRateLimitProposal) Marshal() (dAtA []byte, err error)
func (*UpdateRateLimitProposal) MarshalTo ¶
func (m *UpdateRateLimitProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateRateLimitProposal) MarshalToSizedBuffer ¶
func (m *UpdateRateLimitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateRateLimitProposal) ProposalRoute ¶
func (p *UpdateRateLimitProposal) ProposalRoute() string
func (*UpdateRateLimitProposal) ProposalType ¶
func (p *UpdateRateLimitProposal) ProposalType() string
func (*UpdateRateLimitProposal) ProtoMessage ¶
func (*UpdateRateLimitProposal) ProtoMessage()
func (*UpdateRateLimitProposal) Reset ¶
func (m *UpdateRateLimitProposal) Reset()
func (*UpdateRateLimitProposal) Size ¶
func (m *UpdateRateLimitProposal) Size() (n int)
func (UpdateRateLimitProposal) String ¶
func (p UpdateRateLimitProposal) String() string
func (*UpdateRateLimitProposal) Unmarshal ¶
func (m *UpdateRateLimitProposal) Unmarshal(dAtA []byte) error
func (*UpdateRateLimitProposal) ValidateBasic ¶
func (p *UpdateRateLimitProposal) ValidateBasic() error
func (*UpdateRateLimitProposal) XXX_DiscardUnknown ¶
func (m *UpdateRateLimitProposal) XXX_DiscardUnknown()
func (*UpdateRateLimitProposal) XXX_Marshal ¶
func (m *UpdateRateLimitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRateLimitProposal) XXX_Merge ¶
func (m *UpdateRateLimitProposal) XXX_Merge(src proto.Message)
func (*UpdateRateLimitProposal) XXX_Size ¶
func (m *UpdateRateLimitProposal) XXX_Size() int
func (*UpdateRateLimitProposal) XXX_Unmarshal ¶
func (m *UpdateRateLimitProposal) XXX_Unmarshal(b []byte) error
type WhitelistedAddressPair ¶
type WhitelistedAddressPair struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` }
func (*WhitelistedAddressPair) Descriptor ¶
func (*WhitelistedAddressPair) Descriptor() ([]byte, []int)
func (*WhitelistedAddressPair) GetReceiver ¶
func (m *WhitelistedAddressPair) GetReceiver() string
func (*WhitelistedAddressPair) GetSender ¶
func (m *WhitelistedAddressPair) GetSender() string
func (*WhitelistedAddressPair) Marshal ¶
func (m *WhitelistedAddressPair) Marshal() (dAtA []byte, err error)
func (*WhitelistedAddressPair) MarshalTo ¶
func (m *WhitelistedAddressPair) MarshalTo(dAtA []byte) (int, error)
func (*WhitelistedAddressPair) MarshalToSizedBuffer ¶
func (m *WhitelistedAddressPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WhitelistedAddressPair) ProtoMessage ¶
func (*WhitelistedAddressPair) ProtoMessage()
func (*WhitelistedAddressPair) Reset ¶
func (m *WhitelistedAddressPair) Reset()
func (*WhitelistedAddressPair) Size ¶
func (m *WhitelistedAddressPair) Size() (n int)
func (*WhitelistedAddressPair) String ¶
func (m *WhitelistedAddressPair) String() string
func (*WhitelistedAddressPair) Unmarshal ¶
func (m *WhitelistedAddressPair) Unmarshal(dAtA []byte) error
func (*WhitelistedAddressPair) XXX_DiscardUnknown ¶
func (m *WhitelistedAddressPair) XXX_DiscardUnknown()
func (*WhitelistedAddressPair) XXX_Marshal ¶
func (m *WhitelistedAddressPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WhitelistedAddressPair) XXX_Merge ¶
func (m *WhitelistedAddressPair) XXX_Merge(src proto.Message)
func (*WhitelistedAddressPair) XXX_Size ¶
func (m *WhitelistedAddressPair) XXX_Size() int
func (*WhitelistedAddressPair) XXX_Unmarshal ¶
func (m *WhitelistedAddressPair) XXX_Unmarshal(b []byte) error