Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BeaconAllTimestampsKey(beaconID uint64) []byte
- func BeaconKey(beaconID uint64) []byte
- func BeaconStorageLimitKey(beaconID uint64) []byte
- func BeaconTimestampKey(beaconID, timestampID uint64) []byte
- func GetBeaconIDBytes(beaconID uint64) (beaconIDBz []byte)
- func GetBeaconIDFromBytes(bz []byte) (beaconID uint64)
- func GetTimestampIDBytes(timestampID uint64) (timestampIDBz []byte)
- func GetTimestampIDFromBytes(bz []byte) (timestampID uint64)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- type AccountKeeper
- type BankKeeper
- type Beacon
- func (*Beacon) Descriptor() ([]byte, []int)
- func (m *Beacon) GetBeaconId() uint64
- func (m *Beacon) GetFirstIdInState() uint64
- func (m *Beacon) GetLastTimestampId() uint64
- func (m *Beacon) GetMoniker() string
- func (m *Beacon) GetName() string
- func (m *Beacon) GetNumInState() uint64
- func (m *Beacon) GetOwner() string
- func (m *Beacon) GetRegTime() uint64
- func (m *Beacon) Marshal() (dAtA []byte, err error)
- func (m *Beacon) MarshalTo(dAtA []byte) (int, error)
- func (m *Beacon) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Beacon) ProtoMessage()
- func (m *Beacon) Reset()
- func (m *Beacon) Size() (n int)
- func (m *Beacon) String() string
- func (m *Beacon) Unmarshal(dAtA []byte) error
- func (m *Beacon) XXX_DiscardUnknown()
- func (m *Beacon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Beacon) XXX_Merge(src proto.Message)
- func (m *Beacon) XXX_Size() int
- func (m *Beacon) XXX_Unmarshal(b []byte) error
- type BeaconExport
- func (*BeaconExport) Descriptor() ([]byte, []int)
- func (m *BeaconExport) GetBeacon() Beacon
- func (m *BeaconExport) GetInStateLimit() uint64
- func (m *BeaconExport) GetTimestamps() BeaconTimestampGenesisExports
- func (m *BeaconExport) Marshal() (dAtA []byte, err error)
- func (m *BeaconExport) MarshalTo(dAtA []byte) (int, error)
- func (m *BeaconExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BeaconExport) ProtoMessage()
- func (m *BeaconExport) Reset()
- func (m *BeaconExport) Size() (n int)
- func (m *BeaconExport) String() string
- func (m *BeaconExport) Unmarshal(dAtA []byte) error
- func (m *BeaconExport) XXX_DiscardUnknown()
- func (m *BeaconExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconExport) XXX_Merge(src proto.Message)
- func (m *BeaconExport) XXX_Size() int
- func (m *BeaconExport) XXX_Unmarshal(b []byte) error
- type BeaconExports
- type BeaconStorageLimit
- func (*BeaconStorageLimit) Descriptor() ([]byte, []int)
- func (m *BeaconStorageLimit) GetBeaconId() uint64
- func (m *BeaconStorageLimit) GetInStateLimit() uint64
- func (m *BeaconStorageLimit) Marshal() (dAtA []byte, err error)
- func (m *BeaconStorageLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *BeaconStorageLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BeaconStorageLimit) ProtoMessage()
- func (m *BeaconStorageLimit) Reset()
- func (m *BeaconStorageLimit) Size() (n int)
- func (m *BeaconStorageLimit) String() string
- func (m *BeaconStorageLimit) Unmarshal(dAtA []byte) error
- func (m *BeaconStorageLimit) XXX_DiscardUnknown()
- func (m *BeaconStorageLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconStorageLimit) XXX_Merge(src proto.Message)
- func (m *BeaconStorageLimit) XXX_Size() int
- func (m *BeaconStorageLimit) XXX_Unmarshal(b []byte) error
- type BeaconTimestamp
- func (*BeaconTimestamp) Descriptor() ([]byte, []int)
- func (m *BeaconTimestamp) GetHash() string
- func (m *BeaconTimestamp) GetSubmitTime() uint64
- func (m *BeaconTimestamp) GetTimestampId() uint64
- func (m *BeaconTimestamp) Marshal() (dAtA []byte, err error)
- func (m *BeaconTimestamp) MarshalTo(dAtA []byte) (int, error)
- func (m *BeaconTimestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BeaconTimestamp) ProtoMessage()
- func (m *BeaconTimestamp) Reset()
- func (m *BeaconTimestamp) Size() (n int)
- func (m *BeaconTimestamp) String() string
- func (m *BeaconTimestamp) Unmarshal(dAtA []byte) error
- func (m *BeaconTimestamp) XXX_DiscardUnknown()
- func (m *BeaconTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconTimestamp) XXX_Merge(src proto.Message)
- func (m *BeaconTimestamp) XXX_Size() int
- func (m *BeaconTimestamp) XXX_Unmarshal(b []byte) error
- type BeaconTimestampGenesisExport
- func (*BeaconTimestampGenesisExport) Descriptor() ([]byte, []int)
- func (m *BeaconTimestampGenesisExport) GetH() string
- func (m *BeaconTimestampGenesisExport) GetId() uint64
- func (m *BeaconTimestampGenesisExport) GetT() uint64
- func (m *BeaconTimestampGenesisExport) Marshal() (dAtA []byte, err error)
- func (m *BeaconTimestampGenesisExport) MarshalTo(dAtA []byte) (int, error)
- func (m *BeaconTimestampGenesisExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BeaconTimestampGenesisExport) ProtoMessage()
- func (m *BeaconTimestampGenesisExport) Reset()
- func (m *BeaconTimestampGenesisExport) Size() (n int)
- func (m *BeaconTimestampGenesisExport) String() string
- func (m *BeaconTimestampGenesisExport) Unmarshal(dAtA []byte) error
- func (m *BeaconTimestampGenesisExport) XXX_DiscardUnknown()
- func (m *BeaconTimestampGenesisExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconTimestampGenesisExport) XXX_Merge(src proto.Message)
- func (m *BeaconTimestampGenesisExport) XXX_Size() int
- func (m *BeaconTimestampGenesisExport) XXX_Unmarshal(b []byte) error
- type BeaconTimestampGenesisExports
- type BeaconTimestampLegacy
- type EnterpriseKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRegisteredBeacons() BeaconExports
- func (m *GenesisState) GetStartingBeaconId() uint64
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgPurchaseBeaconStateStorage
- func (*MsgPurchaseBeaconStateStorage) Descriptor() ([]byte, []int)
- func (msg MsgPurchaseBeaconStateStorage) GetSignBytes() []byte
- func (msg MsgPurchaseBeaconStateStorage) GetSigners() []sdk.AccAddress
- func (m *MsgPurchaseBeaconStateStorage) Marshal() (dAtA []byte, err error)
- func (m *MsgPurchaseBeaconStateStorage) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPurchaseBeaconStateStorage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPurchaseBeaconStateStorage) ProtoMessage()
- func (m *MsgPurchaseBeaconStateStorage) Reset()
- func (msg MsgPurchaseBeaconStateStorage) Route() string
- func (m *MsgPurchaseBeaconStateStorage) Size() (n int)
- func (m *MsgPurchaseBeaconStateStorage) String() string
- func (msg MsgPurchaseBeaconStateStorage) Type() string
- func (m *MsgPurchaseBeaconStateStorage) Unmarshal(dAtA []byte) error
- func (msg MsgPurchaseBeaconStateStorage) ValidateBasic() error
- func (m *MsgPurchaseBeaconStateStorage) XXX_DiscardUnknown()
- func (m *MsgPurchaseBeaconStateStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPurchaseBeaconStateStorage) XXX_Merge(src proto.Message)
- func (m *MsgPurchaseBeaconStateStorage) XXX_Size() int
- func (m *MsgPurchaseBeaconStateStorage) XXX_Unmarshal(b []byte) error
- type MsgPurchaseBeaconStateStorageResponse
- func (*MsgPurchaseBeaconStateStorageResponse) Descriptor() ([]byte, []int)
- func (m *MsgPurchaseBeaconStateStorageResponse) GetBeaconId() uint64
- func (m *MsgPurchaseBeaconStateStorageResponse) GetNumCanPurchase() uint64
- func (m *MsgPurchaseBeaconStateStorageResponse) GetNumberPurchased() uint64
- func (m *MsgPurchaseBeaconStateStorageResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPurchaseBeaconStateStorageResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPurchaseBeaconStateStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPurchaseBeaconStateStorageResponse) ProtoMessage()
- func (m *MsgPurchaseBeaconStateStorageResponse) Reset()
- func (m *MsgPurchaseBeaconStateStorageResponse) Size() (n int)
- func (m *MsgPurchaseBeaconStateStorageResponse) String() string
- func (m *MsgPurchaseBeaconStateStorageResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPurchaseBeaconStateStorageResponse) XXX_DiscardUnknown()
- func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Merge(src proto.Message)
- func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Size() int
- func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Unmarshal(b []byte) error
- type MsgRecordBeaconTimestamp
- func (*MsgRecordBeaconTimestamp) Descriptor() ([]byte, []int)
- func (msg MsgRecordBeaconTimestamp) GetSignBytes() []byte
- func (msg MsgRecordBeaconTimestamp) GetSigners() []sdk.AccAddress
- func (m *MsgRecordBeaconTimestamp) Marshal() (dAtA []byte, err error)
- func (m *MsgRecordBeaconTimestamp) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRecordBeaconTimestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRecordBeaconTimestamp) ProtoMessage()
- func (m *MsgRecordBeaconTimestamp) Reset()
- func (msg MsgRecordBeaconTimestamp) Route() string
- func (m *MsgRecordBeaconTimestamp) Size() (n int)
- func (m *MsgRecordBeaconTimestamp) String() string
- func (msg MsgRecordBeaconTimestamp) Type() string
- func (m *MsgRecordBeaconTimestamp) Unmarshal(dAtA []byte) error
- func (msg MsgRecordBeaconTimestamp) ValidateBasic() error
- func (m *MsgRecordBeaconTimestamp) XXX_DiscardUnknown()
- func (m *MsgRecordBeaconTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRecordBeaconTimestamp) XXX_Merge(src proto.Message)
- func (m *MsgRecordBeaconTimestamp) XXX_Size() int
- func (m *MsgRecordBeaconTimestamp) XXX_Unmarshal(b []byte) error
- type MsgRecordBeaconTimestampResponse
- func (*MsgRecordBeaconTimestampResponse) Descriptor() ([]byte, []int)
- func (m *MsgRecordBeaconTimestampResponse) GetBeaconId() uint64
- func (m *MsgRecordBeaconTimestampResponse) GetTimestampId() uint64
- func (m *MsgRecordBeaconTimestampResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRecordBeaconTimestampResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRecordBeaconTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRecordBeaconTimestampResponse) ProtoMessage()
- func (m *MsgRecordBeaconTimestampResponse) Reset()
- func (m *MsgRecordBeaconTimestampResponse) Size() (n int)
- func (m *MsgRecordBeaconTimestampResponse) String() string
- func (m *MsgRecordBeaconTimestampResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRecordBeaconTimestampResponse) XXX_DiscardUnknown()
- func (m *MsgRecordBeaconTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRecordBeaconTimestampResponse) XXX_Merge(src proto.Message)
- func (m *MsgRecordBeaconTimestampResponse) XXX_Size() int
- func (m *MsgRecordBeaconTimestampResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterBeacon
- func (*MsgRegisterBeacon) Descriptor() ([]byte, []int)
- func (msg MsgRegisterBeacon) GetSignBytes() []byte
- func (msg MsgRegisterBeacon) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterBeacon) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterBeacon) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterBeacon) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterBeacon) ProtoMessage()
- func (m *MsgRegisterBeacon) Reset()
- func (msg MsgRegisterBeacon) Route() string
- func (m *MsgRegisterBeacon) Size() (n int)
- func (m *MsgRegisterBeacon) String() string
- func (msg MsgRegisterBeacon) Type() string
- func (m *MsgRegisterBeacon) Unmarshal(dAtA []byte) error
- func (msg MsgRegisterBeacon) ValidateBasic() error
- func (m *MsgRegisterBeacon) XXX_DiscardUnknown()
- func (m *MsgRegisterBeacon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterBeacon) XXX_Merge(src proto.Message)
- func (m *MsgRegisterBeacon) XXX_Size() int
- func (m *MsgRegisterBeacon) XXX_Unmarshal(b []byte) error
- type MsgRegisterBeaconResponse
- func (*MsgRegisterBeaconResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterBeaconResponse) GetBeaconId() uint64
- func (m *MsgRegisterBeaconResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterBeaconResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterBeaconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterBeaconResponse) ProtoMessage()
- func (m *MsgRegisterBeaconResponse) Reset()
- func (m *MsgRegisterBeaconResponse) Size() (n int)
- func (m *MsgRegisterBeaconResponse) String() string
- func (m *MsgRegisterBeaconResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterBeaconResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterBeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterBeaconResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterBeaconResponse) XXX_Size() int
- func (m *MsgRegisterBeaconResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDefaultStorageLimit() uint64
- func (m *Params) GetDenom() string
- func (m *Params) GetFeePurchaseStorage() uint64
- func (m *Params) GetFeeRecord() uint64
- func (m *Params) GetFeeRegister() uint64
- func (m *Params) GetMaxStorageLimit() uint64
- 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 QueryBeaconRequest
- func (*QueryBeaconRequest) Descriptor() ([]byte, []int)
- func (m *QueryBeaconRequest) GetBeaconId() uint64
- func (m *QueryBeaconRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconRequest) ProtoMessage()
- func (m *QueryBeaconRequest) Reset()
- func (m *QueryBeaconRequest) Size() (n int)
- func (m *QueryBeaconRequest) String() string
- func (m *QueryBeaconRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconRequest) XXX_DiscardUnknown()
- func (m *QueryBeaconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconRequest) XXX_Merge(src proto.Message)
- func (m *QueryBeaconRequest) XXX_Size() int
- func (m *QueryBeaconRequest) XXX_Unmarshal(b []byte) error
- type QueryBeaconResponse
- func (*QueryBeaconResponse) Descriptor() ([]byte, []int)
- func (m *QueryBeaconResponse) GetBeacon() *Beacon
- func (m *QueryBeaconResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconResponse) ProtoMessage()
- func (m *QueryBeaconResponse) Reset()
- func (m *QueryBeaconResponse) Size() (n int)
- func (m *QueryBeaconResponse) String() string
- func (m *QueryBeaconResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconResponse) XXX_DiscardUnknown()
- func (m *QueryBeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconResponse) XXX_Merge(src proto.Message)
- func (m *QueryBeaconResponse) XXX_Size() int
- func (m *QueryBeaconResponse) XXX_Unmarshal(b []byte) error
- type QueryBeaconStorageRequest
- func (*QueryBeaconStorageRequest) Descriptor() ([]byte, []int)
- func (m *QueryBeaconStorageRequest) GetBeaconId() uint64
- func (m *QueryBeaconStorageRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconStorageRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconStorageRequest) ProtoMessage()
- func (m *QueryBeaconStorageRequest) Reset()
- func (m *QueryBeaconStorageRequest) Size() (n int)
- func (m *QueryBeaconStorageRequest) String() string
- func (m *QueryBeaconStorageRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconStorageRequest) XXX_DiscardUnknown()
- func (m *QueryBeaconStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconStorageRequest) XXX_Merge(src proto.Message)
- func (m *QueryBeaconStorageRequest) XXX_Size() int
- func (m *QueryBeaconStorageRequest) XXX_Unmarshal(b []byte) error
- type QueryBeaconStorageResponse
- func (*QueryBeaconStorageResponse) Descriptor() ([]byte, []int)
- func (m *QueryBeaconStorageResponse) GetBeaconId() uint64
- func (m *QueryBeaconStorageResponse) GetCurrentLimit() uint64
- func (m *QueryBeaconStorageResponse) GetCurrentUsed() uint64
- func (m *QueryBeaconStorageResponse) GetMax() uint64
- func (m *QueryBeaconStorageResponse) GetMaxPurchasable() uint64
- func (m *QueryBeaconStorageResponse) GetOwner() string
- func (m *QueryBeaconStorageResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconStorageResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconStorageResponse) ProtoMessage()
- func (m *QueryBeaconStorageResponse) Reset()
- func (m *QueryBeaconStorageResponse) Size() (n int)
- func (m *QueryBeaconStorageResponse) String() string
- func (m *QueryBeaconStorageResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconStorageResponse) XXX_DiscardUnknown()
- func (m *QueryBeaconStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconStorageResponse) XXX_Merge(src proto.Message)
- func (m *QueryBeaconStorageResponse) XXX_Size() int
- func (m *QueryBeaconStorageResponse) XXX_Unmarshal(b []byte) error
- type QueryBeaconTimestampRequest
- func (*QueryBeaconTimestampRequest) Descriptor() ([]byte, []int)
- func (m *QueryBeaconTimestampRequest) GetBeaconId() uint64
- func (m *QueryBeaconTimestampRequest) GetTimestampId() uint64
- func (m *QueryBeaconTimestampRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconTimestampRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconTimestampRequest) ProtoMessage()
- func (m *QueryBeaconTimestampRequest) Reset()
- func (m *QueryBeaconTimestampRequest) Size() (n int)
- func (m *QueryBeaconTimestampRequest) String() string
- func (m *QueryBeaconTimestampRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconTimestampRequest) XXX_DiscardUnknown()
- func (m *QueryBeaconTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconTimestampRequest) XXX_Merge(src proto.Message)
- func (m *QueryBeaconTimestampRequest) XXX_Size() int
- func (m *QueryBeaconTimestampRequest) XXX_Unmarshal(b []byte) error
- type QueryBeaconTimestampResponse
- func (*QueryBeaconTimestampResponse) Descriptor() ([]byte, []int)
- func (m *QueryBeaconTimestampResponse) GetBeaconId() uint64
- func (m *QueryBeaconTimestampResponse) GetOwner() string
- func (m *QueryBeaconTimestampResponse) GetTimestamp() *BeaconTimestamp
- func (m *QueryBeaconTimestampResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconTimestampResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconTimestampResponse) ProtoMessage()
- func (m *QueryBeaconTimestampResponse) Reset()
- func (m *QueryBeaconTimestampResponse) Size() (n int)
- func (m *QueryBeaconTimestampResponse) String() string
- func (m *QueryBeaconTimestampResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconTimestampResponse) XXX_DiscardUnknown()
- func (m *QueryBeaconTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconTimestampResponse) XXX_Merge(src proto.Message)
- func (m *QueryBeaconTimestampResponse) XXX_Size() int
- func (m *QueryBeaconTimestampResponse) XXX_Unmarshal(b []byte) error
- type QueryBeaconsFilteredRequest
- func (*QueryBeaconsFilteredRequest) Descriptor() ([]byte, []int)
- func (m *QueryBeaconsFilteredRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconsFilteredRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconsFilteredRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconsFilteredRequest) ProtoMessage()
- func (m *QueryBeaconsFilteredRequest) Reset()
- func (m *QueryBeaconsFilteredRequest) Size() (n int)
- func (m *QueryBeaconsFilteredRequest) String() string
- func (m *QueryBeaconsFilteredRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconsFilteredRequest) XXX_DiscardUnknown()
- func (m *QueryBeaconsFilteredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconsFilteredRequest) XXX_Merge(src proto.Message)
- func (m *QueryBeaconsFilteredRequest) XXX_Size() int
- func (m *QueryBeaconsFilteredRequest) XXX_Unmarshal(b []byte) error
- type QueryBeaconsFilteredResponse
- func (*QueryBeaconsFilteredResponse) Descriptor() ([]byte, []int)
- func (m *QueryBeaconsFilteredResponse) GetBeacons() []Beacon
- func (m *QueryBeaconsFilteredResponse) GetPagination() *query.PageResponse
- func (m *QueryBeaconsFilteredResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBeaconsFilteredResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBeaconsFilteredResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBeaconsFilteredResponse) ProtoMessage()
- func (m *QueryBeaconsFilteredResponse) Reset()
- func (m *QueryBeaconsFilteredResponse) Size() (n int)
- func (m *QueryBeaconsFilteredResponse) String() string
- func (m *QueryBeaconsFilteredResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBeaconsFilteredResponse) XXX_DiscardUnknown()
- func (m *QueryBeaconsFilteredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBeaconsFilteredResponse) XXX_Merge(src proto.Message)
- func (m *QueryBeaconsFilteredResponse) XXX_Size() int
- func (m *QueryBeaconsFilteredResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- 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 QueryResBeaconTimestampHashes
- type QueryResBeacons
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) PurchaseBeaconStateStorage(ctx context.Context, req *MsgPurchaseBeaconStateStorage) (*MsgPurchaseBeaconStateStorageResponse, error)
- func (*UnimplementedMsgServer) RecordBeaconTimestamp(ctx context.Context, req *MsgRecordBeaconTimestamp) (*MsgRecordBeaconTimestampResponse, error)
- func (*UnimplementedMsgServer) RegisterBeacon(ctx context.Context, req *MsgRegisterBeacon) (*MsgRegisterBeaconResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Beacon(ctx context.Context, req *QueryBeaconRequest) (*QueryBeaconResponse, error)
- func (*UnimplementedQueryServer) BeaconStorage(ctx context.Context, req *QueryBeaconStorageRequest) (*QueryBeaconStorageResponse, error)
- func (*UnimplementedQueryServer) BeaconTimestamp(ctx context.Context, req *QueryBeaconTimestampRequest) (*QueryBeaconTimestampResponse, error)
- func (*UnimplementedQueryServer) BeaconsFiltered(ctx context.Context, req *QueryBeaconsFilteredRequest) (*QueryBeaconsFilteredResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( CodeInvalidGenesis = 101 CodeBeaconDoesNotExist = 201 CodeBeaconAlreadyRegistered = 202 CodeBeaconTimestampAlreadyRecorded = 203 CodeNotBeaconOwner = 204 CodeMissingData = 205 CodeContentTooLarge = 206 CodeExceedsMaxStorage = 207 CodeBeaconInsufficientFee = 301 CodeBeaconTooMuchFee = 302 CodeBeaconIncorrectFeeDenom = 303 CodeBeaconFeePayerNotOwner = 401 )
const ( // BEACON fees, in nano FUND RegFee = 1000000000000 // 1000 FUND - used in init genesis RecordFee = 1000000000 // 1 FUND - used in init genesis PurchaseStorageFee = 5000000000 // 5 FUND - used in init genesis FeeDenom = undtypes.DefaultDenomination // used in init genesis DefaultStartingBeaconID uint64 = 1 // used in init genesis DefaultStorageLimit uint64 = 50000 // used in init genesis DefaultMaxStorageLimit uint64 = 600000 // used in init genesis )
const ( // module name ModuleName = "beacon" // StoreKey to be used when creating the KVStore StoreKey = ModuleName DefaultParamspace = ModuleName // QuerierRoute is the querier route for the BEACON store. QuerierRoute = StoreKey )
const ( RouterKey = ModuleName // defined in keys.go file RegisterAction = "register_beacon" RecordAction = "record_beacon_timestamp" PurchaseStorageAction = "purchase_beacon_storage" )
const MaxHashSubmissionsToExport = 20000
Variables ¶
var ( ErrInvalidLengthBeacon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBeacon = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBeacon = fmt.Errorf("proto: unexpected end of group") )
var ( // ErrInvalidGenesis error for an invalid beacon GenesisState ErrInvalidGenesis = sdkerrors.Register(ModuleName, CodeInvalidGenesis, "invalid genesis") ErrBeaconDoesNotExist = sdkerrors.Register(ModuleName, CodeBeaconDoesNotExist, "beacon does not exist") ErrNotBeaconOwner = sdkerrors.Register(ModuleName, CodeNotBeaconOwner, "not beacon owner") ErrBeaconAlreadyRegistered = sdkerrors.Register(ModuleName, CodeBeaconAlreadyRegistered, "beacon already registered") ErrBeaconTimestampAlreadyRecorded = sdkerrors.Register(ModuleName, CodeBeaconTimestampAlreadyRecorded, "beacon timestamp already recorded") ErrMissingData = sdkerrors.Register(ModuleName, CodeMissingData, "missing data") ErrInsufficientBeaconFee = sdkerrors.Register(ModuleName, CodeBeaconInsufficientFee, "insufficient beacon fee") ErrTooMuchBeaconFee = sdkerrors.Register(ModuleName, CodeBeaconTooMuchFee, "too much beacon fee") ErrFeePayerNotOwner = sdkerrors.Register(ModuleName, CodeBeaconFeePayerNotOwner, "fee payer is not beacon owner") ErrIncorrectFeeDenomination = sdkerrors.Register(ModuleName, CodeBeaconIncorrectFeeDenom, "incorrect beacon fee denomination") ErrContentTooLarge = sdkerrors.Register(ModuleName, CodeContentTooLarge, "msg content too large") ErrExceedsMaxStorage = sdkerrors.Register(ModuleName, CodeExceedsMaxStorage, "exceeds max storage") )
var ( EventTypeRegisterBeacon = RegisterAction EventTypeRecordBeaconTimestamp = RecordAction EventTypePurchaseStorage = PurchaseStorageAction AttributeValueCategory = ModuleName AttributeKeyOwner = "beacon_owner" AttributeKeyBeaconId = "beacon_id" AttributeKeyBeaconMoniker = "beacon_moniker" AttributeKeyBeaconName = "beacon_name" AttributeKeyTimestampID = "beacon_timestamp_id" AttributeKeyTimestampHash = "beacon_timestamp_hash" AttributeKeyTimestampIdPruned = "beacon_timestamp_id_pruned" AttributeKeyTimestampSubmitTime = "beacon_timestamp_submit_time" AttributeKeyBeaconStorageNumPurchased = "beacon_storage_num_purchased" AttributeKeyBeaconStorageNumCanPurchase = "beacon_storage_num_can_purchase" )
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 ( // key used to store the current highest BEACON ID HighestBeaconIDKey = []byte{0x20} // RegisteredBeaconPrefix prefix for registered BEACON store RegisteredBeaconPrefix = []byte{0x01} // RecordedBeaconTimestampPrefix prefix for BEACON Timestamps store RecordedBeaconTimestampPrefix = []byte{0x02} // BeaconStorageLimitPrefix prefix for BEACON storage limit store BeaconStorageLimitPrefix = []byte{0x03} ParamsKey = []byte{0x04} )
var ( KeyFeeRegister = []byte("FeeRegister") KeyFeeRecord = []byte("FeeRecord") KeyFeePurchaseStorage = []byte("FeePurchaseStorage") KeyDenom = []byte("Denom") KeyDefaultStorageLimit = []byte("DefaultStorageLimit") KeyMaxStorageLimit = []byte("MaxStorageLimit") )
Parameter store keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/bank module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/staking and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func BeaconAllTimestampsKey ¶
BeaconAllTimestampsKey gets the key for a specific BEACON's timestamps
func BeaconStorageLimitKey ¶ added in v1.6.1
BeaconStorageLimitKey gets the key for a single BEACON's specific storage limit
func BeaconTimestampKey ¶
BeaconTimestampKey gets the key for a single BEACON's specific timestamp ID
func GetBeaconIDBytes ¶
GetBeaconIDBytes returns the byte representation of the BeaconID used for getting the highest Beacon ID from the database
func GetBeaconIDFromBytes ¶
GetBeaconIDFromBytes returns BeaconID in uint64 format from a byte array used for getting the highest Beacon ID from the database
func GetTimestampIDBytes ¶
func GetTimestampIDFromBytes ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamTable for BEACON module. Deprecated: Type declaration for parameters
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/beacon interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI // only used for simulation
}
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
type BankKeeper interface { GetSupply(ctx sdk.Context, denom string) sdk.Coin GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected bank keeper
type Beacon ¶
type Beacon struct { // beacon_id is the id of the beacon BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // moniker is the readable id of the beacon Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"` // name is the human friendly name of the beacon Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // last_timestamp_id is the current highest recorded timestamp id for the beacon LastTimestampId uint64 `protobuf:"varint,4,opt,name=last_timestamp_id,json=lastTimestampId,proto3" json:"last_timestamp_id,omitempty"` // first_id_in_state is the lowest recorded timestamp id currently held in state for the beacon FirstIdInState uint64 `protobuf:"varint,5,opt,name=first_id_in_state,json=firstIdInState,proto3" json:"first_id_in_state,omitempty"` // num_in_state is the current number of timestamps stored in state for the beacon NumInState uint64 `protobuf:"varint,6,opt,name=num_in_state,json=numInState,proto3" json:"num_in_state,omitempty"` // reg_time is the unix epoch of the beacon's registration time RegTime uint64 `protobuf:"varint,7,opt,name=reg_time,json=regTime,proto3" json:"reg_time,omitempty"` // owner is the owner address of the beacon Owner string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` }
Beacon holds metadata about a registered beacon
func (*Beacon) Descriptor ¶
func (*Beacon) GetBeaconId ¶
func (*Beacon) GetFirstIdInState ¶
func (*Beacon) GetLastTimestampId ¶
func (*Beacon) GetMoniker ¶
func (*Beacon) GetNumInState ¶
func (*Beacon) GetRegTime ¶
func (*Beacon) MarshalToSizedBuffer ¶
func (*Beacon) ProtoMessage ¶
func (*Beacon) ProtoMessage()
func (*Beacon) XXX_DiscardUnknown ¶
func (m *Beacon) XXX_DiscardUnknown()
func (*Beacon) XXX_Marshal ¶
func (*Beacon) XXX_Unmarshal ¶
type BeaconExport ¶
type BeaconExport struct { Beacon Beacon `protobuf:"bytes,1,opt,name=beacon,proto3" json:"beacon"` InStateLimit uint64 `protobuf:"varint,2,opt,name=in_state_limit,json=inStateLimit,proto3" json:"in_state_limit,omitempty"` Timestamps BeaconTimestampGenesisExports `protobuf:"bytes,3,rep,name=timestamps,proto3,castrepeated=BeaconTimestampGenesisExports" json:"timestamps"` }
BeaconExport holds genesis export data for a beacon, including submitted timestamps
func (*BeaconExport) Descriptor ¶
func (*BeaconExport) Descriptor() ([]byte, []int)
func (*BeaconExport) GetBeacon ¶
func (m *BeaconExport) GetBeacon() Beacon
func (*BeaconExport) GetInStateLimit ¶ added in v1.6.1
func (m *BeaconExport) GetInStateLimit() uint64
func (*BeaconExport) GetTimestamps ¶
func (m *BeaconExport) GetTimestamps() BeaconTimestampGenesisExports
func (*BeaconExport) Marshal ¶
func (m *BeaconExport) Marshal() (dAtA []byte, err error)
func (*BeaconExport) MarshalToSizedBuffer ¶
func (m *BeaconExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BeaconExport) ProtoMessage ¶
func (*BeaconExport) ProtoMessage()
func (*BeaconExport) Reset ¶
func (m *BeaconExport) Reset()
func (*BeaconExport) Size ¶
func (m *BeaconExport) Size() (n int)
func (*BeaconExport) String ¶
func (m *BeaconExport) String() string
func (*BeaconExport) Unmarshal ¶
func (m *BeaconExport) Unmarshal(dAtA []byte) error
func (*BeaconExport) XXX_DiscardUnknown ¶
func (m *BeaconExport) XXX_DiscardUnknown()
func (*BeaconExport) XXX_Marshal ¶
func (m *BeaconExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconExport) XXX_Merge ¶
func (m *BeaconExport) XXX_Merge(src proto.Message)
func (*BeaconExport) XXX_Size ¶
func (m *BeaconExport) XXX_Size() int
func (*BeaconExport) XXX_Unmarshal ¶
func (m *BeaconExport) XXX_Unmarshal(b []byte) error
type BeaconExports ¶
type BeaconExports []BeaconExport
type BeaconStorageLimit ¶ added in v1.6.1
type BeaconStorageLimit struct { // beacon_id is the id of the beacon BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // in_state_limit is the current maximum number of timestmamps that will be held in state for the beacon InStateLimit uint64 `protobuf:"varint,2,opt,name=in_state_limit,json=inStateLimit,proto3" json:"in_state_limit,omitempty"` }
BeaconStorageLimit holds tata about the beacon's current in-state storage limit
func (*BeaconStorageLimit) Descriptor ¶ added in v1.6.1
func (*BeaconStorageLimit) Descriptor() ([]byte, []int)
func (*BeaconStorageLimit) GetBeaconId ¶ added in v1.6.1
func (m *BeaconStorageLimit) GetBeaconId() uint64
func (*BeaconStorageLimit) GetInStateLimit ¶ added in v1.6.1
func (m *BeaconStorageLimit) GetInStateLimit() uint64
func (*BeaconStorageLimit) Marshal ¶ added in v1.6.1
func (m *BeaconStorageLimit) Marshal() (dAtA []byte, err error)
func (*BeaconStorageLimit) MarshalTo ¶ added in v1.6.1
func (m *BeaconStorageLimit) MarshalTo(dAtA []byte) (int, error)
func (*BeaconStorageLimit) MarshalToSizedBuffer ¶ added in v1.6.1
func (m *BeaconStorageLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BeaconStorageLimit) ProtoMessage ¶ added in v1.6.1
func (*BeaconStorageLimit) ProtoMessage()
func (*BeaconStorageLimit) Reset ¶ added in v1.6.1
func (m *BeaconStorageLimit) Reset()
func (*BeaconStorageLimit) Size ¶ added in v1.6.1
func (m *BeaconStorageLimit) Size() (n int)
func (*BeaconStorageLimit) String ¶ added in v1.6.1
func (m *BeaconStorageLimit) String() string
func (*BeaconStorageLimit) Unmarshal ¶ added in v1.6.1
func (m *BeaconStorageLimit) Unmarshal(dAtA []byte) error
func (*BeaconStorageLimit) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *BeaconStorageLimit) XXX_DiscardUnknown()
func (*BeaconStorageLimit) XXX_Marshal ¶ added in v1.6.1
func (m *BeaconStorageLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconStorageLimit) XXX_Merge ¶ added in v1.6.1
func (m *BeaconStorageLimit) XXX_Merge(src proto.Message)
func (*BeaconStorageLimit) XXX_Size ¶ added in v1.6.1
func (m *BeaconStorageLimit) XXX_Size() int
func (*BeaconStorageLimit) XXX_Unmarshal ¶ added in v1.6.1
func (m *BeaconStorageLimit) XXX_Unmarshal(b []byte) error
type BeaconTimestamp ¶
type BeaconTimestamp struct { // timestamp_id is the id of the timestamp TimestampId uint64 `protobuf:"varint,1,opt,name=timestamp_id,json=timestampId,proto3" json:"timestamp_id,omitempty"` // submit_time is the unix epoch of the timestamp's record time SubmitTime uint64 `protobuf:"varint,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // hash is the actual data stored for the timestamp Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` }
BeaconTimestamp holds each hash submitted to a registered beacon
func NewBeaconTimestamp ¶
func NewBeaconTimestamp(timestampId uint64, submitTime uint64, hash string) (BeaconTimestamp, error)
func (*BeaconTimestamp) Descriptor ¶
func (*BeaconTimestamp) Descriptor() ([]byte, []int)
func (*BeaconTimestamp) GetHash ¶
func (m *BeaconTimestamp) GetHash() string
func (*BeaconTimestamp) GetSubmitTime ¶
func (m *BeaconTimestamp) GetSubmitTime() uint64
func (*BeaconTimestamp) GetTimestampId ¶
func (m *BeaconTimestamp) GetTimestampId() uint64
func (*BeaconTimestamp) Marshal ¶
func (m *BeaconTimestamp) Marshal() (dAtA []byte, err error)
func (*BeaconTimestamp) MarshalToSizedBuffer ¶
func (m *BeaconTimestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BeaconTimestamp) ProtoMessage ¶
func (*BeaconTimestamp) ProtoMessage()
func (*BeaconTimestamp) Reset ¶
func (m *BeaconTimestamp) Reset()
func (*BeaconTimestamp) Size ¶
func (m *BeaconTimestamp) Size() (n int)
func (*BeaconTimestamp) String ¶
func (m *BeaconTimestamp) String() string
func (*BeaconTimestamp) Unmarshal ¶
func (m *BeaconTimestamp) Unmarshal(dAtA []byte) error
func (*BeaconTimestamp) XXX_DiscardUnknown ¶
func (m *BeaconTimestamp) XXX_DiscardUnknown()
func (*BeaconTimestamp) XXX_Marshal ¶
func (m *BeaconTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconTimestamp) XXX_Merge ¶
func (m *BeaconTimestamp) XXX_Merge(src proto.Message)
func (*BeaconTimestamp) XXX_Size ¶
func (m *BeaconTimestamp) XXX_Size() int
func (*BeaconTimestamp) XXX_Unmarshal ¶
func (m *BeaconTimestamp) XXX_Unmarshal(b []byte) error
type BeaconTimestampGenesisExport ¶
type BeaconTimestampGenesisExport struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` T uint64 `protobuf:"varint,2,opt,name=t,proto3" json:"t,omitempty"` H string `protobuf:"bytes,3,opt,name=h,proto3" json:"h,omitempty"` }
BeaconTimestampGenesisExport is a trimmed version of BeaconTimestamp for genesis exports to conserve space
func (*BeaconTimestampGenesisExport) Descriptor ¶
func (*BeaconTimestampGenesisExport) Descriptor() ([]byte, []int)
func (*BeaconTimestampGenesisExport) GetH ¶
func (m *BeaconTimestampGenesisExport) GetH() string
func (*BeaconTimestampGenesisExport) GetId ¶
func (m *BeaconTimestampGenesisExport) GetId() uint64
func (*BeaconTimestampGenesisExport) GetT ¶
func (m *BeaconTimestampGenesisExport) GetT() uint64
func (*BeaconTimestampGenesisExport) Marshal ¶
func (m *BeaconTimestampGenesisExport) Marshal() (dAtA []byte, err error)
func (*BeaconTimestampGenesisExport) MarshalTo ¶
func (m *BeaconTimestampGenesisExport) MarshalTo(dAtA []byte) (int, error)
func (*BeaconTimestampGenesisExport) MarshalToSizedBuffer ¶
func (m *BeaconTimestampGenesisExport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BeaconTimestampGenesisExport) ProtoMessage ¶
func (*BeaconTimestampGenesisExport) ProtoMessage()
func (*BeaconTimestampGenesisExport) Reset ¶
func (m *BeaconTimestampGenesisExport) Reset()
func (*BeaconTimestampGenesisExport) Size ¶
func (m *BeaconTimestampGenesisExport) Size() (n int)
func (*BeaconTimestampGenesisExport) String ¶
func (m *BeaconTimestampGenesisExport) String() string
func (*BeaconTimestampGenesisExport) Unmarshal ¶
func (m *BeaconTimestampGenesisExport) Unmarshal(dAtA []byte) error
func (*BeaconTimestampGenesisExport) XXX_DiscardUnknown ¶
func (m *BeaconTimestampGenesisExport) XXX_DiscardUnknown()
func (*BeaconTimestampGenesisExport) XXX_Marshal ¶
func (m *BeaconTimestampGenesisExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BeaconTimestampGenesisExport) XXX_Merge ¶
func (m *BeaconTimestampGenesisExport) XXX_Merge(src proto.Message)
func (*BeaconTimestampGenesisExport) XXX_Size ¶
func (m *BeaconTimestampGenesisExport) XXX_Size() int
func (*BeaconTimestampGenesisExport) XXX_Unmarshal ¶
func (m *BeaconTimestampGenesisExport) XXX_Unmarshal(b []byte) error
type BeaconTimestampGenesisExports ¶
type BeaconTimestampGenesisExports []BeaconTimestampGenesisExport
type BeaconTimestampLegacy ¶
type BeaconTimestampLegacy struct { BeaconID uint64 `json:"beacon_id"` TimestampID uint64 `json:"timestamp_id"` SubmitTime uint64 `json:"submit_time"` Hash string `json:"hash"` Owner string `json:"owner"` }
BeaconTimestampLegacy is onlyused to support old style timestamp output for the legact REST endpoint
type EnterpriseKeeper ¶
type EnterpriseKeeper interface {
GetLockedUndAmountForAccount(ctx sdk.Context, address sdk.AccAddress) sdk.Coin
}
EnterpriseKeeper defines the expected enterprise keeper
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` StartingBeaconId uint64 `protobuf:"varint,2,opt,name=starting_beacon_id,json=startingBeaconId,proto3" json:"starting_beacon_id,omitempty"` RegisteredBeacons BeaconExports `` /* 129-byte string literal not displayed */ }
GenesisState defines the beacon module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object
func NewGenesisState ¶
func NewGenesisState(params Params, startingBeaconID uint64, beacons BeaconExports) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetRegisteredBeacons ¶
func (m *GenesisState) GetRegisteredBeacons() BeaconExports
func (*GenesisState) GetStartingBeaconId ¶
func (m *GenesisState) GetStartingBeaconId() uint64
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) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // RegisterBeacon defines a method to register a new beacon RegisterBeacon(ctx context.Context, in *MsgRegisterBeacon, opts ...grpc.CallOption) (*MsgRegisterBeaconResponse, error) // RecordBeaconTimestamp defines a method to record a timestamp for a registered beacon RecordBeaconTimestamp(ctx context.Context, in *MsgRecordBeaconTimestamp, opts ...grpc.CallOption) (*MsgRecordBeaconTimestampResponse, error) // PurchaseBeaconStateStorage defines the method to purchase more state storage PurchaseBeaconStateStorage(ctx context.Context, in *MsgPurchaseBeaconStateStorage, opts ...grpc.CallOption) (*MsgPurchaseBeaconStateStorageResponse, error) // UpdateParams defines an operation for updating the x/beacon module // parameters. // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgPurchaseBeaconStateStorage ¶ added in v1.6.1
type MsgPurchaseBeaconStateStorage struct { // beacon_id is the id of the beacon the storage is being purchased for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // number is the number of state storage spaces to purchase Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // owner is the address of the owner of the beacon Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgPurchaseBeaconStateStorage represents a message to purchase more beacon storage
func NewMsgPurchaseBeaconStateStorage ¶ added in v1.6.1
func NewMsgPurchaseBeaconStateStorage( beaconId uint64, number uint64, owner sdk.AccAddress) *MsgPurchaseBeaconStateStorage
NewMsgRecordBeaconTimestamp is a constructor function for MsgRecordBeaconTimestamp
func (*MsgPurchaseBeaconStateStorage) Descriptor ¶ added in v1.6.1
func (*MsgPurchaseBeaconStateStorage) Descriptor() ([]byte, []int)
func (MsgPurchaseBeaconStateStorage) GetSignBytes ¶ added in v1.6.1
func (msg MsgPurchaseBeaconStateStorage) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgPurchaseBeaconStateStorage) GetSigners ¶ added in v1.6.1
func (msg MsgPurchaseBeaconStateStorage) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgPurchaseBeaconStateStorage) Marshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) Marshal() (dAtA []byte, err error)
func (*MsgPurchaseBeaconStateStorage) MarshalTo ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) MarshalTo(dAtA []byte) (int, error)
func (*MsgPurchaseBeaconStateStorage) MarshalToSizedBuffer ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPurchaseBeaconStateStorage) ProtoMessage ¶ added in v1.6.1
func (*MsgPurchaseBeaconStateStorage) ProtoMessage()
func (*MsgPurchaseBeaconStateStorage) Reset ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) Reset()
func (MsgPurchaseBeaconStateStorage) Route ¶ added in v1.6.1
func (msg MsgPurchaseBeaconStateStorage) Route() string
Route should return the name of the module
func (*MsgPurchaseBeaconStateStorage) Size ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) Size() (n int)
func (*MsgPurchaseBeaconStateStorage) String ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) String() string
func (MsgPurchaseBeaconStateStorage) Type ¶ added in v1.6.1
func (msg MsgPurchaseBeaconStateStorage) Type() string
Type should return the action
func (*MsgPurchaseBeaconStateStorage) Unmarshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) Unmarshal(dAtA []byte) error
func (MsgPurchaseBeaconStateStorage) ValidateBasic ¶ added in v1.6.1
func (msg MsgPurchaseBeaconStateStorage) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgPurchaseBeaconStateStorage) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) XXX_DiscardUnknown()
func (*MsgPurchaseBeaconStateStorage) XXX_Marshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPurchaseBeaconStateStorage) XXX_Merge ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) XXX_Merge(src proto.Message)
func (*MsgPurchaseBeaconStateStorage) XXX_Size ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) XXX_Size() int
func (*MsgPurchaseBeaconStateStorage) XXX_Unmarshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorage) XXX_Unmarshal(b []byte) error
type MsgPurchaseBeaconStateStorageResponse ¶ added in v1.6.1
type MsgPurchaseBeaconStateStorageResponse struct { // beacon_id is the id of the beacon the storage is being purchased for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // number_purchased is the number of state storage spaces purchased NumberPurchased uint64 `protobuf:"varint,2,opt,name=number_purchased,json=numberPurchased,proto3" json:"number_purchased,omitempty"` // num_can_purchase is the number of remaining slots available for purchase NumCanPurchase uint64 `protobuf:"varint,3,opt,name=num_can_purchase,json=numCanPurchase,proto3" json:"num_can_purchase,omitempty"` }
MsgPurchaseBeaconStateStorageResponse defines the Msg/PurchaseBeaconStateStorage response type.
func (*MsgPurchaseBeaconStateStorageResponse) Descriptor ¶ added in v1.6.1
func (*MsgPurchaseBeaconStateStorageResponse) Descriptor() ([]byte, []int)
func (*MsgPurchaseBeaconStateStorageResponse) GetBeaconId ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) GetBeaconId() uint64
func (*MsgPurchaseBeaconStateStorageResponse) GetNumCanPurchase ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) GetNumCanPurchase() uint64
func (*MsgPurchaseBeaconStateStorageResponse) GetNumberPurchased ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) GetNumberPurchased() uint64
func (*MsgPurchaseBeaconStateStorageResponse) Marshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) Marshal() (dAtA []byte, err error)
func (*MsgPurchaseBeaconStateStorageResponse) MarshalTo ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPurchaseBeaconStateStorageResponse) MarshalToSizedBuffer ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPurchaseBeaconStateStorageResponse) ProtoMessage ¶ added in v1.6.1
func (*MsgPurchaseBeaconStateStorageResponse) ProtoMessage()
func (*MsgPurchaseBeaconStateStorageResponse) Reset ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) Reset()
func (*MsgPurchaseBeaconStateStorageResponse) Size ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) Size() (n int)
func (*MsgPurchaseBeaconStateStorageResponse) String ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) String() string
func (*MsgPurchaseBeaconStateStorageResponse) Unmarshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) Unmarshal(dAtA []byte) error
func (*MsgPurchaseBeaconStateStorageResponse) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) XXX_DiscardUnknown()
func (*MsgPurchaseBeaconStateStorageResponse) XXX_Marshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPurchaseBeaconStateStorageResponse) XXX_Merge ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Merge(src proto.Message)
func (*MsgPurchaseBeaconStateStorageResponse) XXX_Size ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Size() int
func (*MsgPurchaseBeaconStateStorageResponse) XXX_Unmarshal ¶ added in v1.6.1
func (m *MsgPurchaseBeaconStateStorageResponse) XXX_Unmarshal(b []byte) error
type MsgRecordBeaconTimestamp ¶
type MsgRecordBeaconTimestamp struct { // beacon_id is the id of the beacon the timestamp is being submitted for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // hash is the hash or data being submitted Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // submit_time is a unix epoch value of the submission time SubmitTime uint64 `protobuf:"varint,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"` // owner is the address of the owner of the beacon Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgRecordBeaconTimestamp represents a message to record a timestamp for a registered beacon
func NewMsgRecordBeaconTimestamp ¶
func NewMsgRecordBeaconTimestamp( beaconId uint64, hash string, subTime uint64, owner sdk.AccAddress) *MsgRecordBeaconTimestamp
NewMsgRecordBeaconTimestamp is a constructor function for MsgRecordBeaconTimestamp
func (*MsgRecordBeaconTimestamp) Descriptor ¶
func (*MsgRecordBeaconTimestamp) Descriptor() ([]byte, []int)
func (MsgRecordBeaconTimestamp) GetSignBytes ¶
func (msg MsgRecordBeaconTimestamp) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgRecordBeaconTimestamp) GetSigners ¶
func (msg MsgRecordBeaconTimestamp) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgRecordBeaconTimestamp) Marshal ¶
func (m *MsgRecordBeaconTimestamp) Marshal() (dAtA []byte, err error)
func (*MsgRecordBeaconTimestamp) MarshalTo ¶
func (m *MsgRecordBeaconTimestamp) MarshalTo(dAtA []byte) (int, error)
func (*MsgRecordBeaconTimestamp) MarshalToSizedBuffer ¶
func (m *MsgRecordBeaconTimestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRecordBeaconTimestamp) ProtoMessage ¶
func (*MsgRecordBeaconTimestamp) ProtoMessage()
func (*MsgRecordBeaconTimestamp) Reset ¶
func (m *MsgRecordBeaconTimestamp) Reset()
func (MsgRecordBeaconTimestamp) Route ¶
func (msg MsgRecordBeaconTimestamp) Route() string
Route should return the name of the module
func (*MsgRecordBeaconTimestamp) Size ¶
func (m *MsgRecordBeaconTimestamp) Size() (n int)
func (*MsgRecordBeaconTimestamp) String ¶
func (m *MsgRecordBeaconTimestamp) String() string
func (MsgRecordBeaconTimestamp) Type ¶
func (msg MsgRecordBeaconTimestamp) Type() string
Type should return the action
func (*MsgRecordBeaconTimestamp) Unmarshal ¶
func (m *MsgRecordBeaconTimestamp) Unmarshal(dAtA []byte) error
func (MsgRecordBeaconTimestamp) ValidateBasic ¶
func (msg MsgRecordBeaconTimestamp) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgRecordBeaconTimestamp) XXX_DiscardUnknown ¶
func (m *MsgRecordBeaconTimestamp) XXX_DiscardUnknown()
func (*MsgRecordBeaconTimestamp) XXX_Marshal ¶
func (m *MsgRecordBeaconTimestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRecordBeaconTimestamp) XXX_Merge ¶
func (m *MsgRecordBeaconTimestamp) XXX_Merge(src proto.Message)
func (*MsgRecordBeaconTimestamp) XXX_Size ¶
func (m *MsgRecordBeaconTimestamp) XXX_Size() int
func (*MsgRecordBeaconTimestamp) XXX_Unmarshal ¶
func (m *MsgRecordBeaconTimestamp) XXX_Unmarshal(b []byte) error
type MsgRecordBeaconTimestampResponse ¶
type MsgRecordBeaconTimestampResponse struct { // beacon_id is the id of the beacon BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // timestamp_id is the id of the new timestamp TimestampId uint64 `protobuf:"varint,2,opt,name=timestamp_id,json=timestampId,proto3" json:"timestamp_id,omitempty"` }
MsgRecordBeaconTimestampResponse defines the Msg/RecordBeacon response type.
func (*MsgRecordBeaconTimestampResponse) Descriptor ¶
func (*MsgRecordBeaconTimestampResponse) Descriptor() ([]byte, []int)
func (*MsgRecordBeaconTimestampResponse) GetBeaconId ¶
func (m *MsgRecordBeaconTimestampResponse) GetBeaconId() uint64
func (*MsgRecordBeaconTimestampResponse) GetTimestampId ¶
func (m *MsgRecordBeaconTimestampResponse) GetTimestampId() uint64
func (*MsgRecordBeaconTimestampResponse) Marshal ¶
func (m *MsgRecordBeaconTimestampResponse) Marshal() (dAtA []byte, err error)
func (*MsgRecordBeaconTimestampResponse) MarshalTo ¶
func (m *MsgRecordBeaconTimestampResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRecordBeaconTimestampResponse) MarshalToSizedBuffer ¶
func (m *MsgRecordBeaconTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRecordBeaconTimestampResponse) ProtoMessage ¶
func (*MsgRecordBeaconTimestampResponse) ProtoMessage()
func (*MsgRecordBeaconTimestampResponse) Reset ¶
func (m *MsgRecordBeaconTimestampResponse) Reset()
func (*MsgRecordBeaconTimestampResponse) Size ¶
func (m *MsgRecordBeaconTimestampResponse) Size() (n int)
func (*MsgRecordBeaconTimestampResponse) String ¶
func (m *MsgRecordBeaconTimestampResponse) String() string
func (*MsgRecordBeaconTimestampResponse) Unmarshal ¶
func (m *MsgRecordBeaconTimestampResponse) Unmarshal(dAtA []byte) error
func (*MsgRecordBeaconTimestampResponse) XXX_DiscardUnknown ¶
func (m *MsgRecordBeaconTimestampResponse) XXX_DiscardUnknown()
func (*MsgRecordBeaconTimestampResponse) XXX_Marshal ¶
func (m *MsgRecordBeaconTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRecordBeaconTimestampResponse) XXX_Merge ¶
func (m *MsgRecordBeaconTimestampResponse) XXX_Merge(src proto.Message)
func (*MsgRecordBeaconTimestampResponse) XXX_Size ¶
func (m *MsgRecordBeaconTimestampResponse) XXX_Size() int
func (*MsgRecordBeaconTimestampResponse) XXX_Unmarshal ¶
func (m *MsgRecordBeaconTimestampResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterBeacon ¶
type MsgRegisterBeacon struct { // moniker is a short identifier for a beacon Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` // name is a long name for a beacon Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // owner is the address of the owner of the beacon Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgRegisterBeacon represents a message to register a new beacon
func NewMsgRegisterBeacon ¶
func NewMsgRegisterBeacon(moniker string, beaconName string, owner sdk.AccAddress) *MsgRegisterBeacon
NewMsgRegisterBeacon is a constructor function for MsgRegisterBeacon
func (*MsgRegisterBeacon) Descriptor ¶
func (*MsgRegisterBeacon) Descriptor() ([]byte, []int)
func (MsgRegisterBeacon) GetSignBytes ¶
func (msg MsgRegisterBeacon) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgRegisterBeacon) GetSigners ¶
func (msg MsgRegisterBeacon) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgRegisterBeacon) Marshal ¶
func (m *MsgRegisterBeacon) Marshal() (dAtA []byte, err error)
func (*MsgRegisterBeacon) MarshalTo ¶
func (m *MsgRegisterBeacon) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterBeacon) MarshalToSizedBuffer ¶
func (m *MsgRegisterBeacon) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterBeacon) ProtoMessage ¶
func (*MsgRegisterBeacon) ProtoMessage()
func (*MsgRegisterBeacon) Reset ¶
func (m *MsgRegisterBeacon) Reset()
func (MsgRegisterBeacon) Route ¶
func (msg MsgRegisterBeacon) Route() string
Route should return the name of the module
func (*MsgRegisterBeacon) Size ¶
func (m *MsgRegisterBeacon) Size() (n int)
func (*MsgRegisterBeacon) String ¶
func (m *MsgRegisterBeacon) String() string
func (MsgRegisterBeacon) Type ¶
func (msg MsgRegisterBeacon) Type() string
Type should return the action
func (*MsgRegisterBeacon) Unmarshal ¶
func (m *MsgRegisterBeacon) Unmarshal(dAtA []byte) error
func (MsgRegisterBeacon) ValidateBasic ¶
func (msg MsgRegisterBeacon) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgRegisterBeacon) XXX_DiscardUnknown ¶
func (m *MsgRegisterBeacon) XXX_DiscardUnknown()
func (*MsgRegisterBeacon) XXX_Marshal ¶
func (m *MsgRegisterBeacon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterBeacon) XXX_Merge ¶
func (m *MsgRegisterBeacon) XXX_Merge(src proto.Message)
func (*MsgRegisterBeacon) XXX_Size ¶
func (m *MsgRegisterBeacon) XXX_Size() int
func (*MsgRegisterBeacon) XXX_Unmarshal ¶
func (m *MsgRegisterBeacon) XXX_Unmarshal(b []byte) error
type MsgRegisterBeaconResponse ¶
type MsgRegisterBeaconResponse struct { // beacon_id is the id of the new beacon BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` }
MsgRegisterBeaconResponse defines the Msg/RegisterBeacon response type.
func (*MsgRegisterBeaconResponse) Descriptor ¶
func (*MsgRegisterBeaconResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterBeaconResponse) GetBeaconId ¶
func (m *MsgRegisterBeaconResponse) GetBeaconId() uint64
func (*MsgRegisterBeaconResponse) Marshal ¶
func (m *MsgRegisterBeaconResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterBeaconResponse) MarshalTo ¶
func (m *MsgRegisterBeaconResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterBeaconResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterBeaconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterBeaconResponse) ProtoMessage ¶
func (*MsgRegisterBeaconResponse) ProtoMessage()
func (*MsgRegisterBeaconResponse) Reset ¶
func (m *MsgRegisterBeaconResponse) Reset()
func (*MsgRegisterBeaconResponse) Size ¶
func (m *MsgRegisterBeaconResponse) Size() (n int)
func (*MsgRegisterBeaconResponse) String ¶
func (m *MsgRegisterBeaconResponse) String() string
func (*MsgRegisterBeaconResponse) Unmarshal ¶
func (m *MsgRegisterBeaconResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterBeaconResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterBeaconResponse) XXX_DiscardUnknown()
func (*MsgRegisterBeaconResponse) XXX_Marshal ¶
func (m *MsgRegisterBeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterBeaconResponse) XXX_Merge ¶
func (m *MsgRegisterBeaconResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterBeaconResponse) XXX_Size ¶
func (m *MsgRegisterBeaconResponse) XXX_Size() int
func (*MsgRegisterBeaconResponse) XXX_Unmarshal ¶
func (m *MsgRegisterBeaconResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // RegisterBeacon defines a method to register a new beacon RegisterBeacon(context.Context, *MsgRegisterBeacon) (*MsgRegisterBeaconResponse, error) // RecordBeaconTimestamp defines a method to record a timestamp for a registered beacon RecordBeaconTimestamp(context.Context, *MsgRecordBeaconTimestamp) (*MsgRecordBeaconTimestampResponse, error) // PurchaseBeaconStateStorage defines the method to purchase more state storage PurchaseBeaconStateStorage(context.Context, *MsgPurchaseBeaconStateStorage) (*MsgPurchaseBeaconStateStorageResponse, error) // UpdateParams defines an operation for updating the x/beacon module // parameters. // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v1.10.0
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/beacon parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶ added in v1.10.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v1.10.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v1.10.0
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶ added in v1.10.0
func (m MsgUpdateParams) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.
func (*MsgUpdateParams) GetSigners ¶ added in v1.10.0
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶ added in v1.10.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.10.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.10.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.10.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.10.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v1.10.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.10.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v1.10.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.10.0
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.10.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.10.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.10.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.10.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.10.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.10.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.10.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.10.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.10.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(ctx sdk.Context, key []byte, ptr interface{}) Set(ctx sdk.Context, key []byte, param interface{}) }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type Params ¶
type Params struct { // fee_register is the cost to register a beacon FeeRegister uint64 `protobuf:"varint,1,opt,name=fee_register,json=feeRegister,proto3" json:"fee_register,omitempty"` // fee_record is the cost to record a single timestamp FeeRecord uint64 `protobuf:"varint,2,opt,name=fee_record,json=feeRecord,proto3" json:"fee_record,omitempty"` // fee_purchase_storage is the cost to purchase a single additional unit of in-state storage FeePurchaseStorage uint64 `protobuf:"varint,3,opt,name=fee_purchase_storage,json=feePurchaseStorage,proto3" json:"fee_purchase_storage,omitempty"` // denom is the expected denomination to pay for fees, e.g. nund Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"` // default_storage_limit is the default in-state storage limit for all new beacons DefaultStorageLimit uint64 `protobuf:"varint,5,opt,name=default_storage_limit,json=defaultStorageLimit,proto3" json:"default_storage_limit,omitempty"` // max_storage_limit is the maximum in-state storage slots any one beacon can have MaxStorageLimit uint64 `protobuf:"varint,6,opt,name=max_storage_limit,json=maxStorageLimit,proto3" json:"max_storage_limit,omitempty"` }
Params defines the parameters for the beacon module.
func (*Params) Descriptor ¶
func (*Params) GetDefaultStorageLimit ¶ added in v1.6.1
func (*Params) GetFeePurchaseStorage ¶ added in v1.6.1
func (*Params) GetFeeRecord ¶
func (*Params) GetFeeRegister ¶
func (*Params) GetMaxStorageLimit ¶ added in v1.6.1
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet Deprecated: Type declaration for parameters
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryBeaconRequest ¶
type QueryBeaconRequest struct { // beacon_id is the id of the beacon to query for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` }
QueryBeaconRequest is the request type for the Query/Beacon RPC method
func (*QueryBeaconRequest) Descriptor ¶
func (*QueryBeaconRequest) Descriptor() ([]byte, []int)
func (*QueryBeaconRequest) GetBeaconId ¶
func (m *QueryBeaconRequest) GetBeaconId() uint64
func (*QueryBeaconRequest) Marshal ¶
func (m *QueryBeaconRequest) Marshal() (dAtA []byte, err error)
func (*QueryBeaconRequest) MarshalTo ¶
func (m *QueryBeaconRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconRequest) MarshalToSizedBuffer ¶
func (m *QueryBeaconRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconRequest) ProtoMessage ¶
func (*QueryBeaconRequest) ProtoMessage()
func (*QueryBeaconRequest) Reset ¶
func (m *QueryBeaconRequest) Reset()
func (*QueryBeaconRequest) Size ¶
func (m *QueryBeaconRequest) Size() (n int)
func (*QueryBeaconRequest) String ¶
func (m *QueryBeaconRequest) String() string
func (*QueryBeaconRequest) Unmarshal ¶
func (m *QueryBeaconRequest) Unmarshal(dAtA []byte) error
func (*QueryBeaconRequest) XXX_DiscardUnknown ¶
func (m *QueryBeaconRequest) XXX_DiscardUnknown()
func (*QueryBeaconRequest) XXX_Marshal ¶
func (m *QueryBeaconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconRequest) XXX_Merge ¶
func (m *QueryBeaconRequest) XXX_Merge(src proto.Message)
func (*QueryBeaconRequest) XXX_Size ¶
func (m *QueryBeaconRequest) XXX_Size() int
func (*QueryBeaconRequest) XXX_Unmarshal ¶
func (m *QueryBeaconRequest) XXX_Unmarshal(b []byte) error
type QueryBeaconResponse ¶
type QueryBeaconResponse struct {
Beacon *Beacon `protobuf:"bytes,1,opt,name=beacon,proto3" json:"beacon,omitempty"`
}
QueryBeaconResponse is the response type for the Query/Beacon RPC method
func (*QueryBeaconResponse) Descriptor ¶
func (*QueryBeaconResponse) Descriptor() ([]byte, []int)
func (*QueryBeaconResponse) GetBeacon ¶
func (m *QueryBeaconResponse) GetBeacon() *Beacon
func (*QueryBeaconResponse) Marshal ¶
func (m *QueryBeaconResponse) Marshal() (dAtA []byte, err error)
func (*QueryBeaconResponse) MarshalTo ¶
func (m *QueryBeaconResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconResponse) MarshalToSizedBuffer ¶
func (m *QueryBeaconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconResponse) ProtoMessage ¶
func (*QueryBeaconResponse) ProtoMessage()
func (*QueryBeaconResponse) Reset ¶
func (m *QueryBeaconResponse) Reset()
func (*QueryBeaconResponse) Size ¶
func (m *QueryBeaconResponse) Size() (n int)
func (*QueryBeaconResponse) String ¶
func (m *QueryBeaconResponse) String() string
func (*QueryBeaconResponse) Unmarshal ¶
func (m *QueryBeaconResponse) Unmarshal(dAtA []byte) error
func (*QueryBeaconResponse) XXX_DiscardUnknown ¶
func (m *QueryBeaconResponse) XXX_DiscardUnknown()
func (*QueryBeaconResponse) XXX_Marshal ¶
func (m *QueryBeaconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconResponse) XXX_Merge ¶
func (m *QueryBeaconResponse) XXX_Merge(src proto.Message)
func (*QueryBeaconResponse) XXX_Size ¶
func (m *QueryBeaconResponse) XXX_Size() int
func (*QueryBeaconResponse) XXX_Unmarshal ¶
func (m *QueryBeaconResponse) XXX_Unmarshal(b []byte) error
type QueryBeaconStorageRequest ¶ added in v1.6.1
type QueryBeaconStorageRequest struct { // beacon_id is the id of the beacon to query for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` }
QueryBeaconStorageRequest is the request type for the Query/BeaconStorage RPC method
func (*QueryBeaconStorageRequest) Descriptor ¶ added in v1.6.1
func (*QueryBeaconStorageRequest) Descriptor() ([]byte, []int)
func (*QueryBeaconStorageRequest) GetBeaconId ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) GetBeaconId() uint64
func (*QueryBeaconStorageRequest) Marshal ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) Marshal() (dAtA []byte, err error)
func (*QueryBeaconStorageRequest) MarshalTo ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconStorageRequest) MarshalToSizedBuffer ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconStorageRequest) ProtoMessage ¶ added in v1.6.1
func (*QueryBeaconStorageRequest) ProtoMessage()
func (*QueryBeaconStorageRequest) Reset ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) Reset()
func (*QueryBeaconStorageRequest) Size ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) Size() (n int)
func (*QueryBeaconStorageRequest) String ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) String() string
func (*QueryBeaconStorageRequest) Unmarshal ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) Unmarshal(dAtA []byte) error
func (*QueryBeaconStorageRequest) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) XXX_DiscardUnknown()
func (*QueryBeaconStorageRequest) XXX_Marshal ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconStorageRequest) XXX_Merge ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) XXX_Merge(src proto.Message)
func (*QueryBeaconStorageRequest) XXX_Size ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) XXX_Size() int
func (*QueryBeaconStorageRequest) XXX_Unmarshal ¶ added in v1.6.1
func (m *QueryBeaconStorageRequest) XXX_Unmarshal(b []byte) error
type QueryBeaconStorageResponse ¶ added in v1.6.1
type QueryBeaconStorageResponse struct { BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // current_limit is the current in-state storage limit for this beacon CurrentLimit uint64 `protobuf:"varint,3,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"` // current_used is the number of in-state slots currently used CurrentUsed uint64 `protobuf:"varint,4,opt,name=current_used,json=currentUsed,proto3" json:"current_used,omitempty"` // max is the maximum possible slots a beacon can have, as defined by the beacon module params Max uint64 `protobuf:"varint,5,opt,name=max,proto3" json:"max,omitempty"` // max_purchasable is the maximum number a beacon can purchase without exceeding max MaxPurchasable uint64 `protobuf:"varint,6,opt,name=max_purchasable,json=maxPurchasable,proto3" json:"max_purchasable,omitempty"` }
QueryBeaconStorageResponse is the response type for the Query/BeaconStorage RPC method
func (*QueryBeaconStorageResponse) Descriptor ¶ added in v1.6.1
func (*QueryBeaconStorageResponse) Descriptor() ([]byte, []int)
func (*QueryBeaconStorageResponse) GetBeaconId ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetBeaconId() uint64
func (*QueryBeaconStorageResponse) GetCurrentLimit ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetCurrentLimit() uint64
func (*QueryBeaconStorageResponse) GetCurrentUsed ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetCurrentUsed() uint64
func (*QueryBeaconStorageResponse) GetMax ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetMax() uint64
func (*QueryBeaconStorageResponse) GetMaxPurchasable ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetMaxPurchasable() uint64
func (*QueryBeaconStorageResponse) GetOwner ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) GetOwner() string
func (*QueryBeaconStorageResponse) Marshal ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) Marshal() (dAtA []byte, err error)
func (*QueryBeaconStorageResponse) MarshalTo ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconStorageResponse) MarshalToSizedBuffer ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconStorageResponse) ProtoMessage ¶ added in v1.6.1
func (*QueryBeaconStorageResponse) ProtoMessage()
func (*QueryBeaconStorageResponse) Reset ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) Reset()
func (*QueryBeaconStorageResponse) Size ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) Size() (n int)
func (*QueryBeaconStorageResponse) String ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) String() string
func (*QueryBeaconStorageResponse) Unmarshal ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) Unmarshal(dAtA []byte) error
func (*QueryBeaconStorageResponse) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) XXX_DiscardUnknown()
func (*QueryBeaconStorageResponse) XXX_Marshal ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconStorageResponse) XXX_Merge ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) XXX_Merge(src proto.Message)
func (*QueryBeaconStorageResponse) XXX_Size ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) XXX_Size() int
func (*QueryBeaconStorageResponse) XXX_Unmarshal ¶ added in v1.6.1
func (m *QueryBeaconStorageResponse) XXX_Unmarshal(b []byte) error
type QueryBeaconTimestampRequest ¶
type QueryBeaconTimestampRequest struct { // beacon_id is the id of the beacon to query for BeaconId uint64 `protobuf:"varint,1,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` // timestamp_id is the id of the timestamp to query for TimestampId uint64 `protobuf:"varint,2,opt,name=timestamp_id,json=timestampId,proto3" json:"timestamp_id,omitempty"` }
QueryBeaconTimestampRequest is the request type for the Query/BeaconTimestamp RPC method
func (*QueryBeaconTimestampRequest) Descriptor ¶
func (*QueryBeaconTimestampRequest) Descriptor() ([]byte, []int)
func (*QueryBeaconTimestampRequest) GetBeaconId ¶
func (m *QueryBeaconTimestampRequest) GetBeaconId() uint64
func (*QueryBeaconTimestampRequest) GetTimestampId ¶
func (m *QueryBeaconTimestampRequest) GetTimestampId() uint64
func (*QueryBeaconTimestampRequest) Marshal ¶
func (m *QueryBeaconTimestampRequest) Marshal() (dAtA []byte, err error)
func (*QueryBeaconTimestampRequest) MarshalTo ¶
func (m *QueryBeaconTimestampRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconTimestampRequest) MarshalToSizedBuffer ¶
func (m *QueryBeaconTimestampRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconTimestampRequest) ProtoMessage ¶
func (*QueryBeaconTimestampRequest) ProtoMessage()
func (*QueryBeaconTimestampRequest) Reset ¶
func (m *QueryBeaconTimestampRequest) Reset()
func (*QueryBeaconTimestampRequest) Size ¶
func (m *QueryBeaconTimestampRequest) Size() (n int)
func (*QueryBeaconTimestampRequest) String ¶
func (m *QueryBeaconTimestampRequest) String() string
func (*QueryBeaconTimestampRequest) Unmarshal ¶
func (m *QueryBeaconTimestampRequest) Unmarshal(dAtA []byte) error
func (*QueryBeaconTimestampRequest) XXX_DiscardUnknown ¶
func (m *QueryBeaconTimestampRequest) XXX_DiscardUnknown()
func (*QueryBeaconTimestampRequest) XXX_Marshal ¶
func (m *QueryBeaconTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconTimestampRequest) XXX_Merge ¶
func (m *QueryBeaconTimestampRequest) XXX_Merge(src proto.Message)
func (*QueryBeaconTimestampRequest) XXX_Size ¶
func (m *QueryBeaconTimestampRequest) XXX_Size() int
func (*QueryBeaconTimestampRequest) XXX_Unmarshal ¶
func (m *QueryBeaconTimestampRequest) XXX_Unmarshal(b []byte) error
type QueryBeaconTimestampResponse ¶
type QueryBeaconTimestampResponse struct { Timestamp *BeaconTimestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` BeaconId uint64 `protobuf:"varint,2,opt,name=beacon_id,json=beaconId,proto3" json:"beacon_id,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
QueryBeaconTimestampResponse is the response type for the Query/BeaconTimestamp RPC method
func (*QueryBeaconTimestampResponse) Descriptor ¶
func (*QueryBeaconTimestampResponse) Descriptor() ([]byte, []int)
func (*QueryBeaconTimestampResponse) GetBeaconId ¶
func (m *QueryBeaconTimestampResponse) GetBeaconId() uint64
func (*QueryBeaconTimestampResponse) GetOwner ¶
func (m *QueryBeaconTimestampResponse) GetOwner() string
func (*QueryBeaconTimestampResponse) GetTimestamp ¶
func (m *QueryBeaconTimestampResponse) GetTimestamp() *BeaconTimestamp
func (*QueryBeaconTimestampResponse) Marshal ¶
func (m *QueryBeaconTimestampResponse) Marshal() (dAtA []byte, err error)
func (*QueryBeaconTimestampResponse) MarshalTo ¶
func (m *QueryBeaconTimestampResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconTimestampResponse) MarshalToSizedBuffer ¶
func (m *QueryBeaconTimestampResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconTimestampResponse) ProtoMessage ¶
func (*QueryBeaconTimestampResponse) ProtoMessage()
func (*QueryBeaconTimestampResponse) Reset ¶
func (m *QueryBeaconTimestampResponse) Reset()
func (*QueryBeaconTimestampResponse) Size ¶
func (m *QueryBeaconTimestampResponse) Size() (n int)
func (*QueryBeaconTimestampResponse) String ¶
func (m *QueryBeaconTimestampResponse) String() string
func (*QueryBeaconTimestampResponse) Unmarshal ¶
func (m *QueryBeaconTimestampResponse) Unmarshal(dAtA []byte) error
func (*QueryBeaconTimestampResponse) XXX_DiscardUnknown ¶
func (m *QueryBeaconTimestampResponse) XXX_DiscardUnknown()
func (*QueryBeaconTimestampResponse) XXX_Marshal ¶
func (m *QueryBeaconTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconTimestampResponse) XXX_Merge ¶
func (m *QueryBeaconTimestampResponse) XXX_Merge(src proto.Message)
func (*QueryBeaconTimestampResponse) XXX_Size ¶
func (m *QueryBeaconTimestampResponse) XXX_Size() int
func (*QueryBeaconTimestampResponse) XXX_Unmarshal ¶
func (m *QueryBeaconTimestampResponse) XXX_Unmarshal(b []byte) error
type QueryBeaconsFilteredRequest ¶
type QueryBeaconsFilteredRequest struct { // moniker is the moniker of the beacon to search for Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` // owner is an address to search for Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBeaconsFilteredRequest is the request type for the Query/BeaconsFiltered RPC method
func (*QueryBeaconsFilteredRequest) Descriptor ¶
func (*QueryBeaconsFilteredRequest) Descriptor() ([]byte, []int)
func (*QueryBeaconsFilteredRequest) Marshal ¶
func (m *QueryBeaconsFilteredRequest) Marshal() (dAtA []byte, err error)
func (*QueryBeaconsFilteredRequest) MarshalTo ¶
func (m *QueryBeaconsFilteredRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconsFilteredRequest) MarshalToSizedBuffer ¶
func (m *QueryBeaconsFilteredRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconsFilteredRequest) ProtoMessage ¶
func (*QueryBeaconsFilteredRequest) ProtoMessage()
func (*QueryBeaconsFilteredRequest) Reset ¶
func (m *QueryBeaconsFilteredRequest) Reset()
func (*QueryBeaconsFilteredRequest) Size ¶
func (m *QueryBeaconsFilteredRequest) Size() (n int)
func (*QueryBeaconsFilteredRequest) String ¶
func (m *QueryBeaconsFilteredRequest) String() string
func (*QueryBeaconsFilteredRequest) Unmarshal ¶
func (m *QueryBeaconsFilteredRequest) Unmarshal(dAtA []byte) error
func (*QueryBeaconsFilteredRequest) XXX_DiscardUnknown ¶
func (m *QueryBeaconsFilteredRequest) XXX_DiscardUnknown()
func (*QueryBeaconsFilteredRequest) XXX_Marshal ¶
func (m *QueryBeaconsFilteredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconsFilteredRequest) XXX_Merge ¶
func (m *QueryBeaconsFilteredRequest) XXX_Merge(src proto.Message)
func (*QueryBeaconsFilteredRequest) XXX_Size ¶
func (m *QueryBeaconsFilteredRequest) XXX_Size() int
func (*QueryBeaconsFilteredRequest) XXX_Unmarshal ¶
func (m *QueryBeaconsFilteredRequest) XXX_Unmarshal(b []byte) error
type QueryBeaconsFilteredResponse ¶
type QueryBeaconsFilteredResponse struct { Beacons []Beacon `protobuf:"bytes,1,rep,name=beacons,proto3" json:"beacons"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBeaconsFilteredResponse is the response type for the Query/BeaconsFiltered RPC method
func (*QueryBeaconsFilteredResponse) Descriptor ¶
func (*QueryBeaconsFilteredResponse) Descriptor() ([]byte, []int)
func (*QueryBeaconsFilteredResponse) GetBeacons ¶
func (m *QueryBeaconsFilteredResponse) GetBeacons() []Beacon
func (*QueryBeaconsFilteredResponse) GetPagination ¶
func (m *QueryBeaconsFilteredResponse) GetPagination() *query.PageResponse
func (*QueryBeaconsFilteredResponse) Marshal ¶
func (m *QueryBeaconsFilteredResponse) Marshal() (dAtA []byte, err error)
func (*QueryBeaconsFilteredResponse) MarshalTo ¶
func (m *QueryBeaconsFilteredResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBeaconsFilteredResponse) MarshalToSizedBuffer ¶
func (m *QueryBeaconsFilteredResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBeaconsFilteredResponse) ProtoMessage ¶
func (*QueryBeaconsFilteredResponse) ProtoMessage()
func (*QueryBeaconsFilteredResponse) Reset ¶
func (m *QueryBeaconsFilteredResponse) Reset()
func (*QueryBeaconsFilteredResponse) Size ¶
func (m *QueryBeaconsFilteredResponse) Size() (n int)
func (*QueryBeaconsFilteredResponse) String ¶
func (m *QueryBeaconsFilteredResponse) String() string
func (*QueryBeaconsFilteredResponse) Unmarshal ¶
func (m *QueryBeaconsFilteredResponse) Unmarshal(dAtA []byte) error
func (*QueryBeaconsFilteredResponse) XXX_DiscardUnknown ¶
func (m *QueryBeaconsFilteredResponse) XXX_DiscardUnknown()
func (*QueryBeaconsFilteredResponse) XXX_Marshal ¶
func (m *QueryBeaconsFilteredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBeaconsFilteredResponse) XXX_Merge ¶
func (m *QueryBeaconsFilteredResponse) XXX_Merge(src proto.Message)
func (*QueryBeaconsFilteredResponse) XXX_Size ¶
func (m *QueryBeaconsFilteredResponse) XXX_Size() int
func (*QueryBeaconsFilteredResponse) XXX_Unmarshal ¶
func (m *QueryBeaconsFilteredResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of x/beacon module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Beacon queries the metadata of a beacon. Beacon(ctx context.Context, in *QueryBeaconRequest, opts ...grpc.CallOption) (*QueryBeaconResponse, error) // BeaconTimestamp queries a timestamp of a beacon BeaconTimestamp(ctx context.Context, in *QueryBeaconTimestampRequest, opts ...grpc.CallOption) (*QueryBeaconTimestampResponse, error) // BeaconsFiltered queries all beacon metadata for given search parameters BeaconsFiltered(ctx context.Context, in *QueryBeaconsFilteredRequest, opts ...grpc.CallOption) (*QueryBeaconsFilteredResponse, error) // BeaconStorage queries beacon storage for for given beacon ID BeaconStorage(ctx context.Context, in *QueryBeaconStorageRequest, opts ...grpc.CallOption) (*QueryBeaconStorageResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the 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 QueryResBeaconTimestampHashes ¶
type QueryResBeaconTimestampHashes []BeaconTimestamp
QueryResBeaconTimestampHashes Queries Result Payload for a Beacon timestamp Hashes query
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of x/beacon module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Beacon queries the metadata of a beacon. Beacon(context.Context, *QueryBeaconRequest) (*QueryBeaconResponse, error) // BeaconTimestamp queries a timestamp of a beacon BeaconTimestamp(context.Context, *QueryBeaconTimestampRequest) (*QueryBeaconTimestampResponse, error) // BeaconsFiltered queries all beacon metadata for given search parameters BeaconsFiltered(context.Context, *QueryBeaconsFilteredRequest) (*QueryBeaconsFilteredResponse, error) // BeaconStorage queries beacon storage for for given beacon ID BeaconStorage(context.Context, *QueryBeaconStorageRequest) (*QueryBeaconStorageResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) PurchaseBeaconStateStorage ¶ added in v1.6.1
func (*UnimplementedMsgServer) PurchaseBeaconStateStorage(ctx context.Context, req *MsgPurchaseBeaconStateStorage) (*MsgPurchaseBeaconStateStorageResponse, error)
func (*UnimplementedMsgServer) RecordBeaconTimestamp ¶
func (*UnimplementedMsgServer) RecordBeaconTimestamp(ctx context.Context, req *MsgRecordBeaconTimestamp) (*MsgRecordBeaconTimestampResponse, error)
func (*UnimplementedMsgServer) RegisterBeacon ¶
func (*UnimplementedMsgServer) RegisterBeacon(ctx context.Context, req *MsgRegisterBeacon) (*MsgRegisterBeaconResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.10.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Beacon ¶
func (*UnimplementedQueryServer) Beacon(ctx context.Context, req *QueryBeaconRequest) (*QueryBeaconResponse, error)
func (*UnimplementedQueryServer) BeaconStorage ¶ added in v1.6.1
func (*UnimplementedQueryServer) BeaconStorage(ctx context.Context, req *QueryBeaconStorageRequest) (*QueryBeaconStorageResponse, error)
func (*UnimplementedQueryServer) BeaconTimestamp ¶
func (*UnimplementedQueryServer) BeaconTimestamp(ctx context.Context, req *QueryBeaconTimestampRequest) (*QueryBeaconTimestampResponse, error)
func (*UnimplementedQueryServer) BeaconsFiltered ¶
func (*UnimplementedQueryServer) BeaconsFiltered(ctx context.Context, req *QueryBeaconsFilteredRequest) (*QueryBeaconsFilteredResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)