Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccQuota
- func (*AccQuota) Descriptor() ([]byte, []int)
- func (m *AccQuota) GetBlockHeight() int64
- func (m *AccQuota) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *AccQuota) GetLastUpdateHeight() int64
- func (m *AccQuota) Marshal() (dAtA []byte, err error)
- func (m *AccQuota) MarshalTo(dAtA []byte) (int, error)
- func (m *AccQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccQuota) ProtoMessage()
- func (m *AccQuota) Reset()
- func (m *AccQuota) Size() (n int)
- func (m *AccQuota) String() string
- func (m *AccQuota) Unmarshal(dAtA []byte) error
- func (m *AccQuota) XXX_DiscardUnknown()
- func (m *AccQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccQuota) XXX_Merge(src proto.Message)
- func (m *AccQuota) XXX_Size() int
- func (m *AccQuota) XXX_Unmarshal(b []byte) error
- type AccountKeeper
- type BanList
- func (*BanList) Descriptor() ([]byte, []int)
- func (m *BanList) GetAddressList() []string
- func (m *BanList) GetModuleName() string
- func (m *BanList) Marshal() (dAtA []byte, err error)
- func (m *BanList) MarshalTo(dAtA []byte) (int, error)
- func (m *BanList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BanList) ProtoMessage()
- func (m *BanList) Reset()
- func (m *BanList) Size() (n int)
- func (m *BanList) String() string
- func (m *BanList) Unmarshal(dAtA []byte) error
- func (m *BanList) XXX_DiscardUnknown()
- func (m *BanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BanList) XXX_Merge(src proto.Message)
- func (m *BanList) XXX_Size() int
- func (m *BanList) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type CoinsQuota
- func (*CoinsQuota) Descriptor() ([]byte, []int)
- func (m *CoinsQuota) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *CoinsQuota) GetHistory() []*HistoricalAmount
- func (m *CoinsQuota) GetModuleName() string
- func (m *CoinsQuota) Marshal() (dAtA []byte, err error)
- func (m *CoinsQuota) MarshalTo(dAtA []byte) (int, error)
- func (m *CoinsQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CoinsQuota) ProtoMessage()
- func (m *CoinsQuota) Reset()
- func (m *CoinsQuota) Size() (n int)
- func (m *CoinsQuota) String() string
- func (m *CoinsQuota) Unmarshal(dAtA []byte) error
- func (m *CoinsQuota) XXX_DiscardUnknown()
- func (m *CoinsQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoinsQuota) XXX_Merge(src proto.Message)
- func (m *CoinsQuota) XXX_Size() int
- func (m *CoinsQuota) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAllCoinsQuota() []CoinsQuota
- 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 HistoricalAmount
- func (*HistoricalAmount) Descriptor() ([]byte, []int)
- func (m *HistoricalAmount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *HistoricalAmount) GetBlockHeight() int64
- func (m *HistoricalAmount) GetIbcSequence() uint64
- func (m *HistoricalAmount) Marshal() (dAtA []byte, err error)
- func (m *HistoricalAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *HistoricalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HistoricalAmount) ProtoMessage()
- func (m *HistoricalAmount) Reset()
- func (m *HistoricalAmount) Size() (n int)
- func (m *HistoricalAmount) String() string
- func (m *HistoricalAmount) Unmarshal(dAtA []byte) error
- func (m *HistoricalAmount) XXX_DiscardUnknown()
- func (m *HistoricalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HistoricalAmount) XXX_Merge(src proto.Message)
- func (m *HistoricalAmount) XXX_Size() int
- func (m *HistoricalAmount) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBanlist() []*BanList
- func (m *Params) GetPerAccounttargets() []*Target
- func (m *Params) GetTargets() []*Target
- func (m *Params) GetWhitelist() []*WhiteList
- 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 (p 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 QueryAllQuotaRequest
- func (*QueryAllQuotaRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllQuotaRequest) GetPagination() *query.PageRequest
- func (m *QueryAllQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllQuotaRequest) ProtoMessage()
- func (m *QueryAllQuotaRequest) Reset()
- func (m *QueryAllQuotaRequest) Size() (n int)
- func (m *QueryAllQuotaRequest) String() string
- func (m *QueryAllQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllQuotaRequest) XXX_DiscardUnknown()
- func (m *QueryAllQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllQuotaRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllQuotaRequest) XXX_Size() int
- func (m *QueryAllQuotaRequest) XXX_Unmarshal(b []byte) error
- type QueryAllQuotaResponse
- func (*QueryAllQuotaResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllQuotaResponse) GetPagination() *query.PageResponse
- func (m *QueryAllQuotaResponse) GetQuota() []CoinsQuota
- func (m *QueryAllQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllQuotaResponse) ProtoMessage()
- func (m *QueryAllQuotaResponse) Reset()
- func (m *QueryAllQuotaResponse) Size() (n int)
- func (m *QueryAllQuotaResponse) String() string
- func (m *QueryAllQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllQuotaResponse) XXX_DiscardUnknown()
- func (m *QueryAllQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllQuotaResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllQuotaResponse) XXX_Size() int
- func (m *QueryAllQuotaResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetAccountQuotaRequest
- func (*QueryGetAccountQuotaRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetAccountQuotaRequest) GetAccountAddress() string
- func (m *QueryGetAccountQuotaRequest) GetQuotaModuleName() string
- func (m *QueryGetAccountQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAccountQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAccountQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAccountQuotaRequest) ProtoMessage()
- func (m *QueryGetAccountQuotaRequest) Reset()
- func (m *QueryGetAccountQuotaRequest) Size() (n int)
- func (m *QueryGetAccountQuotaRequest) String() string
- func (m *QueryGetAccountQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetAccountQuotaRequest) XXX_DiscardUnknown()
- func (m *QueryGetAccountQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAccountQuotaRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetAccountQuotaRequest) XXX_Size() int
- func (m *QueryGetAccountQuotaRequest) XXX_Unmarshal(b []byte) error
- type QueryGetAccountQuotaResponse
- func (*QueryGetAccountQuotaResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetAccountQuotaResponse) GetQuota() AccQuota
- func (m *QueryGetAccountQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAccountQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAccountQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAccountQuotaResponse) ProtoMessage()
- func (m *QueryGetAccountQuotaResponse) Reset()
- func (m *QueryGetAccountQuotaResponse) Size() (n int)
- func (m *QueryGetAccountQuotaResponse) String() string
- func (m *QueryGetAccountQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetAccountQuotaResponse) XXX_DiscardUnknown()
- func (m *QueryGetAccountQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAccountQuotaResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetAccountQuotaResponse) XXX_Size() int
- func (m *QueryGetAccountQuotaResponse) XXX_Unmarshal(b []byte) error
- type QueryGetQuotaRequest
- func (*QueryGetQuotaRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetQuotaRequest) GetQuotaModuleName() string
- func (m *QueryGetQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetQuotaRequest) ProtoMessage()
- func (m *QueryGetQuotaRequest) Reset()
- func (m *QueryGetQuotaRequest) Size() (n int)
- func (m *QueryGetQuotaRequest) String() string
- func (m *QueryGetQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetQuotaRequest) XXX_DiscardUnknown()
- func (m *QueryGetQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetQuotaRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetQuotaRequest) XXX_Size() int
- func (m *QueryGetQuotaRequest) XXX_Unmarshal(b []byte) error
- type QueryGetQuotaResponse
- func (*QueryGetQuotaResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetQuotaResponse) GetQuota() CoinsQuota
- func (m *QueryGetQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetQuotaResponse) ProtoMessage()
- func (m *QueryGetQuotaResponse) Reset()
- func (m *QueryGetQuotaResponse) Size() (n int)
- func (m *QueryGetQuotaResponse) String() string
- func (m *QueryGetQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetQuotaResponse) XXX_DiscardUnknown()
- func (m *QueryGetQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetQuotaResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetQuotaResponse) XXX_Size() int
- func (m *QueryGetQuotaResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Target
- func (*Target) Descriptor() ([]byte, []int)
- func (m *Target) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Target) GetHistoryLength() int64
- func (m *Target) GetModuleName() string
- func (m *Target) Marshal() (dAtA []byte, err error)
- func (m *Target) MarshalTo(dAtA []byte) (int, error)
- func (m *Target) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Target) ProtoMessage()
- func (m *Target) Reset()
- func (m *Target) Size() (n int)
- func (m *Target) String() string
- func (m *Target) Unmarshal(dAtA []byte) error
- func (m *Target) XXX_DiscardUnknown()
- func (m *Target) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Target) XXX_Merge(src proto.Message)
- func (m *Target) XXX_Size() int
- func (m *Target) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountQuota(ctx context.Context, req *QueryGetAccountQuotaRequest) (*QueryGetAccountQuotaResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Quota(ctx context.Context, req *QueryGetQuotaRequest) (*QueryGetQuotaResponse, error)
- func (*UnimplementedQueryServer) QuotaAll(ctx context.Context, req *QueryAllQuotaRequest) (*QueryAllQuotaResponse, error)
- type WhiteList
- func (*WhiteList) Descriptor() ([]byte, []int)
- func (m *WhiteList) GetAddressList() []string
- func (m *WhiteList) GetModuleName() string
- func (m *WhiteList) Marshal() (dAtA []byte, err error)
- func (m *WhiteList) MarshalTo(dAtA []byte) (int, error)
- func (m *WhiteList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhiteList) ProtoMessage()
- func (m *WhiteList) Reset()
- func (m *WhiteList) Size() (n int)
- func (m *WhiteList) String() string
- func (m *WhiteList) Unmarshal(dAtA []byte) error
- func (m *WhiteList) XXX_DiscardUnknown()
- func (m *WhiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhiteList) XXX_Merge(src proto.Message)
- func (m *WhiteList) XXX_Size() int
- func (m *WhiteList) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "quota" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_quota" )
const ( QuotaKey = "Quota/value/" QuotaAccKey = "QuotaAcc/value/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const MAXHISTORY = 34560
as we have 5 seconds for each block, two days, we will have 34560 blocks
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( AccErrQuotaExceed = errorsmod.Register(ModuleName, 1100, "Account Quota Exceed") ErrQuotaExceed = errorsmod.Register(ModuleName, 1101, "Module Quota Exceed") )
x/quota module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
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 RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccQuota ¶
type AccQuota struct { BlockHeight int64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` LastUpdateHeight int64 `protobuf:"varint,2,opt,name=lastUpdateHeight,proto3" json:"lastUpdateHeight,omitempty"` CoinsSum github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=CoinsSum,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"CoinsSum"` }
func (*AccQuota) Descriptor ¶
func (*AccQuota) GetBlockHeight ¶
func (*AccQuota) GetCoinsSum ¶
func (m *AccQuota) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
func (*AccQuota) GetLastUpdateHeight ¶
func (*AccQuota) MarshalToSizedBuffer ¶
func (*AccQuota) ProtoMessage ¶
func (*AccQuota) ProtoMessage()
func (*AccQuota) XXX_DiscardUnknown ¶
func (m *AccQuota) XXX_DiscardUnknown()
func (*AccQuota) XXX_Marshal ¶
func (*AccQuota) XXX_Unmarshal ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BanList ¶
type BanList struct { ModuleName string `protobuf:"bytes,1,opt,name=moduleName,proto3" json:"moduleName,omitempty"` AddressList []string `protobuf:"bytes,2,rep,name=addressList,proto3" json:"addressList,omitempty"` }
func (*BanList) Descriptor ¶
func (*BanList) GetAddressList ¶
func (*BanList) GetModuleName ¶
func (*BanList) MarshalToSizedBuffer ¶
func (*BanList) ProtoMessage ¶
func (*BanList) ProtoMessage()
func (*BanList) XXX_DiscardUnknown ¶
func (m *BanList) XXX_DiscardUnknown()
func (*BanList) XXX_Marshal ¶
func (*BanList) XXX_Unmarshal ¶
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type CoinsQuota ¶
type CoinsQuota struct { ModuleName string `protobuf:"bytes,1,opt,name=moduleName,proto3" json:"moduleName,omitempty"` History []*HistoricalAmount `protobuf:"bytes,2,rep,name=history,proto3" json:"history,omitempty"` CoinsSum github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=CoinsSum,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"CoinsSum"` }
func (*CoinsQuota) Descriptor ¶
func (*CoinsQuota) Descriptor() ([]byte, []int)
func (*CoinsQuota) GetCoinsSum ¶
func (m *CoinsQuota) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
func (*CoinsQuota) GetHistory ¶
func (m *CoinsQuota) GetHistory() []*HistoricalAmount
func (*CoinsQuota) GetModuleName ¶
func (m *CoinsQuota) GetModuleName() string
func (*CoinsQuota) Marshal ¶
func (m *CoinsQuota) Marshal() (dAtA []byte, err error)
func (*CoinsQuota) MarshalToSizedBuffer ¶
func (m *CoinsQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CoinsQuota) ProtoMessage ¶
func (*CoinsQuota) ProtoMessage()
func (*CoinsQuota) Reset ¶
func (m *CoinsQuota) Reset()
func (*CoinsQuota) Size ¶
func (m *CoinsQuota) Size() (n int)
func (*CoinsQuota) String ¶
func (m *CoinsQuota) String() string
func (*CoinsQuota) Unmarshal ¶
func (m *CoinsQuota) Unmarshal(dAtA []byte) error
func (*CoinsQuota) XXX_DiscardUnknown ¶
func (m *CoinsQuota) XXX_DiscardUnknown()
func (*CoinsQuota) XXX_Marshal ¶
func (m *CoinsQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoinsQuota) XXX_Merge ¶
func (m *CoinsQuota) XXX_Merge(src proto.Message)
func (*CoinsQuota) XXX_Size ¶
func (m *CoinsQuota) XXX_Size() int
func (*CoinsQuota) XXX_Unmarshal ¶
func (m *CoinsQuota) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` AllCoinsQuota []CoinsQuota `protobuf:"bytes,2,rep,name=allCoinsQuota,proto3" json:"allCoinsQuota"` }
GenesisState defines the quota module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAllCoinsQuota ¶
func (m *GenesisState) GetAllCoinsQuota() []CoinsQuota
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 HistoricalAmount ¶
type HistoricalAmount struct { BlockHeight int64 `protobuf:"varint,1,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` // only for ibc to revoke IbcSequence uint64 `protobuf:"varint,3,opt,name=ibcSequence,proto3" json:"ibcSequence,omitempty"` }
func (*HistoricalAmount) Descriptor ¶
func (*HistoricalAmount) Descriptor() ([]byte, []int)
func (*HistoricalAmount) GetAmount ¶
func (m *HistoricalAmount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*HistoricalAmount) GetBlockHeight ¶
func (m *HistoricalAmount) GetBlockHeight() int64
func (*HistoricalAmount) GetIbcSequence ¶
func (m *HistoricalAmount) GetIbcSequence() uint64
func (*HistoricalAmount) Marshal ¶
func (m *HistoricalAmount) Marshal() (dAtA []byte, err error)
func (*HistoricalAmount) MarshalToSizedBuffer ¶
func (m *HistoricalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HistoricalAmount) ProtoMessage ¶
func (*HistoricalAmount) ProtoMessage()
func (*HistoricalAmount) Reset ¶
func (m *HistoricalAmount) Reset()
func (*HistoricalAmount) Size ¶
func (m *HistoricalAmount) Size() (n int)
func (*HistoricalAmount) String ¶
func (m *HistoricalAmount) String() string
func (*HistoricalAmount) Unmarshal ¶
func (m *HistoricalAmount) Unmarshal(dAtA []byte) error
func (*HistoricalAmount) XXX_DiscardUnknown ¶
func (m *HistoricalAmount) XXX_DiscardUnknown()
func (*HistoricalAmount) XXX_Marshal ¶
func (m *HistoricalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoricalAmount) XXX_Merge ¶
func (m *HistoricalAmount) XXX_Merge(src proto.Message)
func (*HistoricalAmount) XXX_Size ¶
func (m *HistoricalAmount) XXX_Size() int
func (*HistoricalAmount) XXX_Unmarshal ¶
func (m *HistoricalAmount) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
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 Params ¶
type Params struct { Targets []*Target `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"` PerAccounttargets []*Target `protobuf:"bytes,2,rep,name=PerAccounttargets,proto3" json:"PerAccounttargets,omitempty"` Whitelist []*WhiteList `protobuf:"bytes,3,rep,name=whitelist,proto3" json:"whitelist,omitempty"` Banlist []*BanList `protobuf:"bytes,4,rep,name=banlist,proto3" json:"banlist,omitempty"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetBanlist ¶
func (*Params) GetPerAccounttargets ¶
func (*Params) GetTargets ¶
func (*Params) GetWhitelist ¶
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 QueryAllQuotaRequest ¶
type QueryAllQuotaRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllQuotaRequest) Descriptor ¶
func (*QueryAllQuotaRequest) Descriptor() ([]byte, []int)
func (*QueryAllQuotaRequest) GetPagination ¶
func (m *QueryAllQuotaRequest) GetPagination() *query.PageRequest
func (*QueryAllQuotaRequest) Marshal ¶
func (m *QueryAllQuotaRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllQuotaRequest) MarshalTo ¶
func (m *QueryAllQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllQuotaRequest) MarshalToSizedBuffer ¶
func (m *QueryAllQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllQuotaRequest) ProtoMessage ¶
func (*QueryAllQuotaRequest) ProtoMessage()
func (*QueryAllQuotaRequest) Reset ¶
func (m *QueryAllQuotaRequest) Reset()
func (*QueryAllQuotaRequest) Size ¶
func (m *QueryAllQuotaRequest) Size() (n int)
func (*QueryAllQuotaRequest) String ¶
func (m *QueryAllQuotaRequest) String() string
func (*QueryAllQuotaRequest) Unmarshal ¶
func (m *QueryAllQuotaRequest) Unmarshal(dAtA []byte) error
func (*QueryAllQuotaRequest) XXX_DiscardUnknown ¶
func (m *QueryAllQuotaRequest) XXX_DiscardUnknown()
func (*QueryAllQuotaRequest) XXX_Marshal ¶
func (m *QueryAllQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllQuotaRequest) XXX_Merge ¶
func (m *QueryAllQuotaRequest) XXX_Merge(src proto.Message)
func (*QueryAllQuotaRequest) XXX_Size ¶
func (m *QueryAllQuotaRequest) XXX_Size() int
func (*QueryAllQuotaRequest) XXX_Unmarshal ¶
func (m *QueryAllQuotaRequest) XXX_Unmarshal(b []byte) error
type QueryAllQuotaResponse ¶
type QueryAllQuotaResponse struct { Quota []CoinsQuota `protobuf:"bytes,1,rep,name=Quota,proto3" json:"Quota"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllQuotaResponse) Descriptor ¶
func (*QueryAllQuotaResponse) Descriptor() ([]byte, []int)
func (*QueryAllQuotaResponse) GetPagination ¶
func (m *QueryAllQuotaResponse) GetPagination() *query.PageResponse
func (*QueryAllQuotaResponse) GetQuota ¶
func (m *QueryAllQuotaResponse) GetQuota() []CoinsQuota
func (*QueryAllQuotaResponse) Marshal ¶
func (m *QueryAllQuotaResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllQuotaResponse) MarshalTo ¶
func (m *QueryAllQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllQuotaResponse) MarshalToSizedBuffer ¶
func (m *QueryAllQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllQuotaResponse) ProtoMessage ¶
func (*QueryAllQuotaResponse) ProtoMessage()
func (*QueryAllQuotaResponse) Reset ¶
func (m *QueryAllQuotaResponse) Reset()
func (*QueryAllQuotaResponse) Size ¶
func (m *QueryAllQuotaResponse) Size() (n int)
func (*QueryAllQuotaResponse) String ¶
func (m *QueryAllQuotaResponse) String() string
func (*QueryAllQuotaResponse) Unmarshal ¶
func (m *QueryAllQuotaResponse) Unmarshal(dAtA []byte) error
func (*QueryAllQuotaResponse) XXX_DiscardUnknown ¶
func (m *QueryAllQuotaResponse) XXX_DiscardUnknown()
func (*QueryAllQuotaResponse) XXX_Marshal ¶
func (m *QueryAllQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllQuotaResponse) XXX_Merge ¶
func (m *QueryAllQuotaResponse) XXX_Merge(src proto.Message)
func (*QueryAllQuotaResponse) XXX_Size ¶
func (m *QueryAllQuotaResponse) XXX_Size() int
func (*QueryAllQuotaResponse) XXX_Unmarshal ¶
func (m *QueryAllQuotaResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of Quota items. Quota(ctx context.Context, in *QueryGetQuotaRequest, opts ...grpc.CallOption) (*QueryGetQuotaResponse, error) QuotaAll(ctx context.Context, in *QueryAllQuotaRequest, opts ...grpc.CallOption) (*QueryAllQuotaResponse, error) AccountQuota(ctx context.Context, in *QueryGetAccountQuotaRequest, opts ...grpc.CallOption) (*QueryGetAccountQuotaResponse, 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 QueryGetAccountQuotaRequest ¶ added in v0.1.0
type QueryGetAccountQuotaRequest struct { QuotaModuleName string `protobuf:"bytes,1,opt,name=quota_module_name,json=quotaModuleName,proto3" json:"quota_module_name,omitempty"` AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` }
func (*QueryGetAccountQuotaRequest) Descriptor ¶ added in v0.1.0
func (*QueryGetAccountQuotaRequest) Descriptor() ([]byte, []int)
func (*QueryGetAccountQuotaRequest) GetAccountAddress ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) GetAccountAddress() string
func (*QueryGetAccountQuotaRequest) GetQuotaModuleName ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) GetQuotaModuleName() string
func (*QueryGetAccountQuotaRequest) Marshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetAccountQuotaRequest) MarshalTo ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAccountQuotaRequest) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAccountQuotaRequest) ProtoMessage ¶ added in v0.1.0
func (*QueryGetAccountQuotaRequest) ProtoMessage()
func (*QueryGetAccountQuotaRequest) Reset ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) Reset()
func (*QueryGetAccountQuotaRequest) Size ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) Size() (n int)
func (*QueryGetAccountQuotaRequest) String ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) String() string
func (*QueryGetAccountQuotaRequest) Unmarshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) Unmarshal(dAtA []byte) error
func (*QueryGetAccountQuotaRequest) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) XXX_DiscardUnknown()
func (*QueryGetAccountQuotaRequest) XXX_Marshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAccountQuotaRequest) XXX_Merge ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) XXX_Merge(src proto.Message)
func (*QueryGetAccountQuotaRequest) XXX_Size ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) XXX_Size() int
func (*QueryGetAccountQuotaRequest) XXX_Unmarshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaRequest) XXX_Unmarshal(b []byte) error
type QueryGetAccountQuotaResponse ¶ added in v0.1.0
type QueryGetAccountQuotaResponse struct {
Quota AccQuota `protobuf:"bytes,1,opt,name=Quota,proto3" json:"Quota"`
}
func (*QueryGetAccountQuotaResponse) Descriptor ¶ added in v0.1.0
func (*QueryGetAccountQuotaResponse) Descriptor() ([]byte, []int)
func (*QueryGetAccountQuotaResponse) GetQuota ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) GetQuota() AccQuota
func (*QueryGetAccountQuotaResponse) Marshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetAccountQuotaResponse) MarshalTo ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAccountQuotaResponse) MarshalToSizedBuffer ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAccountQuotaResponse) ProtoMessage ¶ added in v0.1.0
func (*QueryGetAccountQuotaResponse) ProtoMessage()
func (*QueryGetAccountQuotaResponse) Reset ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) Reset()
func (*QueryGetAccountQuotaResponse) Size ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) Size() (n int)
func (*QueryGetAccountQuotaResponse) String ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) String() string
func (*QueryGetAccountQuotaResponse) Unmarshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) Unmarshal(dAtA []byte) error
func (*QueryGetAccountQuotaResponse) XXX_DiscardUnknown ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) XXX_DiscardUnknown()
func (*QueryGetAccountQuotaResponse) XXX_Marshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAccountQuotaResponse) XXX_Merge ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) XXX_Merge(src proto.Message)
func (*QueryGetAccountQuotaResponse) XXX_Size ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) XXX_Size() int
func (*QueryGetAccountQuotaResponse) XXX_Unmarshal ¶ added in v0.1.0
func (m *QueryGetAccountQuotaResponse) XXX_Unmarshal(b []byte) error
type QueryGetQuotaRequest ¶
type QueryGetQuotaRequest struct {
QuotaModuleName string `protobuf:"bytes,1,opt,name=quota_module_name,json=quotaModuleName,proto3" json:"quota_module_name,omitempty"`
}
func (*QueryGetQuotaRequest) Descriptor ¶
func (*QueryGetQuotaRequest) Descriptor() ([]byte, []int)
func (*QueryGetQuotaRequest) GetQuotaModuleName ¶
func (m *QueryGetQuotaRequest) GetQuotaModuleName() string
func (*QueryGetQuotaRequest) Marshal ¶
func (m *QueryGetQuotaRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetQuotaRequest) MarshalTo ¶
func (m *QueryGetQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetQuotaRequest) MarshalToSizedBuffer ¶
func (m *QueryGetQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetQuotaRequest) ProtoMessage ¶
func (*QueryGetQuotaRequest) ProtoMessage()
func (*QueryGetQuotaRequest) Reset ¶
func (m *QueryGetQuotaRequest) Reset()
func (*QueryGetQuotaRequest) Size ¶
func (m *QueryGetQuotaRequest) Size() (n int)
func (*QueryGetQuotaRequest) String ¶
func (m *QueryGetQuotaRequest) String() string
func (*QueryGetQuotaRequest) Unmarshal ¶
func (m *QueryGetQuotaRequest) Unmarshal(dAtA []byte) error
func (*QueryGetQuotaRequest) XXX_DiscardUnknown ¶
func (m *QueryGetQuotaRequest) XXX_DiscardUnknown()
func (*QueryGetQuotaRequest) XXX_Marshal ¶
func (m *QueryGetQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetQuotaRequest) XXX_Merge ¶
func (m *QueryGetQuotaRequest) XXX_Merge(src proto.Message)
func (*QueryGetQuotaRequest) XXX_Size ¶
func (m *QueryGetQuotaRequest) XXX_Size() int
func (*QueryGetQuotaRequest) XXX_Unmarshal ¶
func (m *QueryGetQuotaRequest) XXX_Unmarshal(b []byte) error
type QueryGetQuotaResponse ¶
type QueryGetQuotaResponse struct {
Quota CoinsQuota `protobuf:"bytes,1,opt,name=Quota,proto3" json:"Quota"`
}
func (*QueryGetQuotaResponse) Descriptor ¶
func (*QueryGetQuotaResponse) Descriptor() ([]byte, []int)
func (*QueryGetQuotaResponse) GetQuota ¶
func (m *QueryGetQuotaResponse) GetQuota() CoinsQuota
func (*QueryGetQuotaResponse) Marshal ¶
func (m *QueryGetQuotaResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetQuotaResponse) MarshalTo ¶
func (m *QueryGetQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetQuotaResponse) MarshalToSizedBuffer ¶
func (m *QueryGetQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetQuotaResponse) ProtoMessage ¶
func (*QueryGetQuotaResponse) ProtoMessage()
func (*QueryGetQuotaResponse) Reset ¶
func (m *QueryGetQuotaResponse) Reset()
func (*QueryGetQuotaResponse) Size ¶
func (m *QueryGetQuotaResponse) Size() (n int)
func (*QueryGetQuotaResponse) String ¶
func (m *QueryGetQuotaResponse) String() string
func (*QueryGetQuotaResponse) Unmarshal ¶
func (m *QueryGetQuotaResponse) Unmarshal(dAtA []byte) error
func (*QueryGetQuotaResponse) XXX_DiscardUnknown ¶
func (m *QueryGetQuotaResponse) XXX_DiscardUnknown()
func (*QueryGetQuotaResponse) XXX_Marshal ¶
func (m *QueryGetQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetQuotaResponse) XXX_Merge ¶
func (m *QueryGetQuotaResponse) XXX_Merge(src proto.Message)
func (*QueryGetQuotaResponse) XXX_Size ¶
func (m *QueryGetQuotaResponse) XXX_Size() int
func (*QueryGetQuotaResponse) XXX_Unmarshal ¶
func (m *QueryGetQuotaResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of Quota items. Quota(context.Context, *QueryGetQuotaRequest) (*QueryGetQuotaResponse, error) QuotaAll(context.Context, *QueryAllQuotaRequest) (*QueryAllQuotaResponse, error) AccountQuota(context.Context, *QueryGetAccountQuotaRequest) (*QueryGetAccountQuotaResponse, error) }
QueryServer is the server API for Query service.
type Target ¶
type Target struct { ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` CoinsSum github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=CoinsSum,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"CoinsSum"` HistoryLength int64 `protobuf:"varint,3,opt,name=history_length,json=historyLength,proto3" json:"history_length,omitempty" yaml:"history_length"` }
func (*Target) Descriptor ¶
func (*Target) GetCoinsSum ¶
func (m *Target) GetCoinsSum() github_com_cosmos_cosmos_sdk_types.Coins
func (*Target) GetHistoryLength ¶
func (*Target) GetModuleName ¶
func (*Target) MarshalToSizedBuffer ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) XXX_DiscardUnknown ¶
func (m *Target) XXX_DiscardUnknown()
func (*Target) XXX_Marshal ¶
func (*Target) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountQuota ¶ added in v0.1.0
func (*UnimplementedQueryServer) AccountQuota(ctx context.Context, req *QueryGetAccountQuotaRequest) (*QueryGetAccountQuotaResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Quota ¶
func (*UnimplementedQueryServer) Quota(ctx context.Context, req *QueryGetQuotaRequest) (*QueryGetQuotaResponse, error)
func (*UnimplementedQueryServer) QuotaAll ¶
func (*UnimplementedQueryServer) QuotaAll(ctx context.Context, req *QueryAllQuotaRequest) (*QueryAllQuotaResponse, error)
type WhiteList ¶
type WhiteList struct { ModuleName string `protobuf:"bytes,1,opt,name=moduleName,proto3" json:"moduleName,omitempty"` AddressList []string `protobuf:"bytes,2,rep,name=addressList,proto3" json:"addressList,omitempty"` }
func (*WhiteList) Descriptor ¶
func (*WhiteList) GetAddressList ¶
func (*WhiteList) GetModuleName ¶
func (*WhiteList) MarshalToSizedBuffer ¶
func (*WhiteList) ProtoMessage ¶
func (*WhiteList) ProtoMessage()
func (*WhiteList) XXX_DiscardUnknown ¶
func (m *WhiteList) XXX_DiscardUnknown()