Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func FileStoreKey(sender []byte) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- 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 FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)
- func (m *FileInfo) GetReporters() []byte
- func (m *FileInfo) GetUploader() string
- func (m *FileInfo) Marshal() (dAtA []byte, err error)
- func (m *FileInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FileInfo) ProtoMessage()
- func (m *FileInfo) Reset()
- func (m *FileInfo) Size() (n int)
- func (m *FileInfo) String() string
- func (m *FileInfo) Unmarshal(dAtA []byte) error
- func (m *FileInfo) XXX_DiscardUnknown()
- func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FileInfo) XXX_Merge(src proto.Message)
- func (m *FileInfo) XXX_Size() int
- func (m *FileInfo) XXX_Unmarshal(b []byte) error
- type GenesisFileInfo
- func (*GenesisFileInfo) Descriptor() ([]byte, []int)
- func (m *GenesisFileInfo) GetFileHash() string
- func (m *GenesisFileInfo) GetFileInfo() FileInfo
- func (m *GenesisFileInfo) Marshal() (dAtA []byte, err error)
- func (m *GenesisFileInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisFileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisFileInfo) ProtoMessage()
- func (m *GenesisFileInfo) Reset()
- func (m *GenesisFileInfo) Size() (n int)
- func (m *GenesisFileInfo) String() string
- func (m *GenesisFileInfo) Unmarshal(dAtA []byte) error
- func (m *GenesisFileInfo) XXX_DiscardUnknown()
- func (m *GenesisFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisFileInfo) XXX_Merge(src proto.Message)
- func (m *GenesisFileInfo) XXX_Size() int
- func (m *GenesisFileInfo) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFiles() []GenesisFileInfo
- func (m *GenesisState) GetParams() *Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (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 MsgFileUpload
- func (*MsgFileUpload) Descriptor() ([]byte, []int)
- func (m *MsgFileUpload) GetFileHash() string
- func (m *MsgFileUpload) GetFrom() string
- func (m *MsgFileUpload) GetReporter() string
- func (msg MsgFileUpload) GetSignBytes() []byte
- func (msg MsgFileUpload) GetSigners() []sdk.AccAddress
- func (m *MsgFileUpload) GetUploader() string
- func (m *MsgFileUpload) Marshal() (dAtA []byte, err error)
- func (m *MsgFileUpload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFileUpload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFileUpload) ProtoMessage()
- func (m *MsgFileUpload) Reset()
- func (msg MsgFileUpload) Route() string
- func (m *MsgFileUpload) Size() (n int)
- func (m *MsgFileUpload) String() string
- func (msg MsgFileUpload) Type() string
- func (m *MsgFileUpload) Unmarshal(dAtA []byte) error
- func (msg MsgFileUpload) ValidateBasic() error
- func (m *MsgFileUpload) XXX_DiscardUnknown()
- func (m *MsgFileUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFileUpload) XXX_Merge(src proto.Message)
- func (m *MsgFileUpload) XXX_Size() int
- func (m *MsgFileUpload) XXX_Unmarshal(b []byte) error
- type MsgFileUploadResponse
- func (*MsgFileUploadResponse) Descriptor() ([]byte, []int)
- func (m *MsgFileUploadResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFileUploadResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFileUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFileUploadResponse) ProtoMessage()
- func (m *MsgFileUploadResponse) Reset()
- func (m *MsgFileUploadResponse) Size() (n int)
- func (m *MsgFileUploadResponse) String() string
- func (m *MsgFileUploadResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFileUploadResponse) XXX_DiscardUnknown()
- func (m *MsgFileUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFileUploadResponse) XXX_Merge(src proto.Message)
- func (m *MsgFileUploadResponse) XXX_Size() int
- func (m *MsgFileUploadResponse) XXX_Unmarshal(b []byte) error
- type MsgPrepay
- func (*MsgPrepay) Descriptor() ([]byte, []int)
- func (m *MsgPrepay) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgPrepay) GetBeneficiary() string
- func (m *MsgPrepay) GetSender() string
- func (msg MsgPrepay) GetSignBytes() []byte
- func (msg MsgPrepay) GetSigners() []sdk.AccAddress
- func (m *MsgPrepay) Marshal() (dAtA []byte, err error)
- func (m *MsgPrepay) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPrepay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPrepay) ProtoMessage()
- func (m *MsgPrepay) Reset()
- func (msg MsgPrepay) Route() string
- func (m *MsgPrepay) Size() (n int)
- func (m *MsgPrepay) String() string
- func (msg MsgPrepay) Type() string
- func (m *MsgPrepay) Unmarshal(dAtA []byte) error
- func (msg MsgPrepay) ValidateBasic() error
- func (m *MsgPrepay) XXX_DiscardUnknown()
- func (m *MsgPrepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPrepay) XXX_Merge(src proto.Message)
- func (m *MsgPrepay) XXX_Size() int
- func (m *MsgPrepay) XXX_Unmarshal(b []byte) error
- type MsgPrepayResponse
- func (*MsgPrepayResponse) Descriptor() ([]byte, []int)
- func (m *MsgPrepayResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPrepayResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPrepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPrepayResponse) ProtoMessage()
- func (m *MsgPrepayResponse) Reset()
- func (m *MsgPrepayResponse) Size() (n int)
- func (m *MsgPrepayResponse) String() string
- func (m *MsgPrepayResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPrepayResponse) XXX_DiscardUnknown()
- func (m *MsgPrepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPrepayResponse) XXX_Merge(src proto.Message)
- func (m *MsgPrepayResponse) XXX_Size() int
- func (m *MsgPrepayResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBondDenom() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (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) ValidateBasic() 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 QueryClient
- type QueryFileUploadParams
- type QueryFileUploadRequest
- func (*QueryFileUploadRequest) Descriptor() ([]byte, []int)
- func (m *QueryFileUploadRequest) GetFileHash() string
- func (m *QueryFileUploadRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFileUploadRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFileUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFileUploadRequest) ProtoMessage()
- func (m *QueryFileUploadRequest) Reset()
- func (m *QueryFileUploadRequest) Size() (n int)
- func (m *QueryFileUploadRequest) String() string
- func (m *QueryFileUploadRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFileUploadRequest) XXX_DiscardUnknown()
- func (m *QueryFileUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFileUploadRequest) XXX_Merge(src proto.Message)
- func (m *QueryFileUploadRequest) XXX_Size() int
- func (m *QueryFileUploadRequest) XXX_Unmarshal(b []byte) error
- type QueryFileUploadResponse
- func (*QueryFileUploadResponse) Descriptor() ([]byte, []int)
- func (m *QueryFileUploadResponse) GetFileInfo() *FileInfo
- func (m *QueryFileUploadResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFileUploadResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFileUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFileUploadResponse) ProtoMessage()
- func (m *QueryFileUploadResponse) Reset()
- func (m *QueryFileUploadResponse) Size() (n int)
- func (m *QueryFileUploadResponse) String() string
- func (m *QueryFileUploadResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFileUploadResponse) XXX_DiscardUnknown()
- func (m *QueryFileUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFileUploadResponse) XXX_Merge(src proto.Message)
- func (m *QueryFileUploadResponse) XXX_Size() int
- func (m *QueryFileUploadResponse) XXX_Unmarshal(b []byte) error
- type QueryNozPriceRequest
- func (*QueryNozPriceRequest) Descriptor() ([]byte, []int)
- func (m *QueryNozPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNozPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNozPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNozPriceRequest) ProtoMessage()
- func (m *QueryNozPriceRequest) Reset()
- func (m *QueryNozPriceRequest) Size() (n int)
- func (m *QueryNozPriceRequest) String() string
- func (m *QueryNozPriceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNozPriceRequest) XXX_DiscardUnknown()
- func (m *QueryNozPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNozPriceRequest) XXX_Merge(src proto.Message)
- func (m *QueryNozPriceRequest) XXX_Size() int
- func (m *QueryNozPriceRequest) XXX_Unmarshal(b []byte) error
- type QueryNozPriceResponse
- func (*QueryNozPriceResponse) Descriptor() ([]byte, []int)
- func (m *QueryNozPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNozPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNozPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNozPriceResponse) ProtoMessage()
- func (m *QueryNozPriceResponse) Reset()
- func (m *QueryNozPriceResponse) Size() (n int)
- func (m *QueryNozPriceResponse) String() string
- func (m *QueryNozPriceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNozPriceResponse) XXX_DiscardUnknown()
- func (m *QueryNozPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNozPriceResponse) XXX_Merge(src proto.Message)
- func (m *QueryNozPriceResponse) XXX_Size() int
- func (m *QueryNozPriceResponse) XXX_Unmarshal(b []byte) error
- type QueryNozSupplyRequest
- func (*QueryNozSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryNozSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNozSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNozSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNozSupplyRequest) ProtoMessage()
- func (m *QueryNozSupplyRequest) Reset()
- func (m *QueryNozSupplyRequest) Size() (n int)
- func (m *QueryNozSupplyRequest) String() string
- func (m *QueryNozSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNozSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryNozSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNozSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryNozSupplyRequest) XXX_Size() int
- func (m *QueryNozSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryNozSupplyResponse
- func (*QueryNozSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryNozSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNozSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNozSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNozSupplyResponse) ProtoMessage()
- func (m *QueryNozSupplyResponse) Reset()
- func (m *QueryNozSupplyResponse) Size() (n int)
- func (m *QueryNozSupplyResponse) String() string
- func (m *QueryNozSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNozSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryNozSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNozSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryNozSupplyResponse) XXX_Size() int
- func (m *QueryNozSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySimPrepayRequest
- func (*QuerySimPrepayRequest) Descriptor() ([]byte, []int)
- func (m *QuerySimPrepayRequest) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QuerySimPrepayRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySimPrepayRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySimPrepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySimPrepayRequest) ProtoMessage()
- func (m *QuerySimPrepayRequest) Reset()
- func (m *QuerySimPrepayRequest) Size() (n int)
- func (m *QuerySimPrepayRequest) String() string
- func (m *QuerySimPrepayRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySimPrepayRequest) XXX_DiscardUnknown()
- func (m *QuerySimPrepayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySimPrepayRequest) XXX_Merge(src proto.Message)
- func (m *QuerySimPrepayRequest) XXX_Size() int
- func (m *QuerySimPrepayRequest) XXX_Unmarshal(b []byte) error
- type QuerySimPrepayResponse
- func (*QuerySimPrepayResponse) Descriptor() ([]byte, []int)
- func (m *QuerySimPrepayResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySimPrepayResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySimPrepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySimPrepayResponse) ProtoMessage()
- func (m *QuerySimPrepayResponse) Reset()
- func (m *QuerySimPrepayResponse) Size() (n int)
- func (m *QuerySimPrepayResponse) String() string
- func (m *QuerySimPrepayResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySimPrepayResponse) XXX_DiscardUnknown()
- func (m *QuerySimPrepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySimPrepayResponse) XXX_Merge(src proto.Message)
- func (m *QuerySimPrepayResponse) XXX_Size() int
- func (m *QuerySimPrepayResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Fileupload(ctx context.Context, req *QueryFileUploadRequest) (*QueryFileUploadResponse, error)
- func (*UnimplementedQueryServer) NozPrice(ctx context.Context, req *QueryNozPriceRequest) (*QueryNozPriceResponse, error)
- func (*UnimplementedQueryServer) NozSupply(ctx context.Context, req *QueryNozSupplyRequest) (*QueryNozSupplyResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SimPrepay(ctx context.Context, req *QuerySimPrepayRequest) (*QuerySimPrepayResponse, error)
Constants ¶
const ( EventTypeFileUpload = "FileUpload" EventTypePrepay = "Prepay" AttributeKeyReporter = "reporter" AttributeKeyFileHash = "file_hash" AttributeKeyUploader = "uploader" AttributeKeyAmount = "amount" AttributeKeyPurchasedNoz = "purchased_noz" AttributeKeyBeneficiary = "beneficiary" AttributeValueCategory = ModuleName )
sds module event types
const ( // ModuleName is the name of the module ModuleName = "sds" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for querier msgs QuerierRoute = ModuleName )
const ( TypeMsgFileUpload = "FileUploadTx" TypeMsgPrepay = "SdsPrepayTx" )
const ( QueryParams = "params" QueryFileUpload = "file_upload" QuerySimulatePrepay = "simulate_prepay" QueryCurrNozPrice = "curr_noz_price" QueryNozSupply = "noz_supply" )
querier keys
const (
DefaultBondDenom = stratos.Wei
)
Default parameter namespace
Variables ¶
var ( ErrInvalid = sdkerrors.Register(ModuleName, codeErrInvalid, "error invalid") ErrInvalidHeight = sdkerrors.Register(ModuleName, codeErrInvalidHeight, "invalid height") ErrEmptyUploaderAddr = sdkerrors.Register(ModuleName, codeErrEmptyUploaderAddr, "missing uploader address") ErrEmptyReporterAddr = sdkerrors.Register(ModuleName, codeErrEmptyReporterAddr, "missing reporter address") ErrEmptyReporters = sdkerrors.Register(ModuleName, codeErrEmptyReporters, "missing reporters") ErrEmptyFileHash = sdkerrors.Register(ModuleName, codeErrEmptyFileHash, "missing file hash") ErrInvalidFileHash = sdkerrors.Register(ModuleName, codeErrInvalidFileHash, "invalid file hash") ErrNoFileFound = sdkerrors.Register(ModuleName, codeErrNoFileFound, "file does not exist") ErrInvalidDenom = sdkerrors.Register(ModuleName, codeErrInvalidDenom, "invalid denomination") ErrPrepayFailure = sdkerrors.Register(ModuleName, codeErrPrepayFailure, "failure during prepay") ErrReporterAddressOrOwner = sdkerrors.Register(ModuleName, codeErrReporterAddressOrOwner, "invalid reporter address or owner address") ErrInvalidSenderAddr = sdkerrors.Register(ModuleName, codeErrInvalidSenderAddr, "invalid sender address") ErrInvalidBeneficiaryAddr = sdkerrors.Register(ModuleName, codeErrInvalidBeneficiaryAddr, "invalid beneficiary address") )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSds = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSds = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSds = 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 ( // FileStorage prefix for sds store FileStoreKeyPrefix = []byte{0x01} )
var (
KeyBondDenom = []byte("BondDenom")
)
Parameter store keys
var ModuleCdc *codec.LegacyAmino
ModuleCdc references the global x/sds 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/sds and defined at the application level.
Functions ¶
func FileStoreKey ¶
FileStoreKey turn an address to key used to get it from the account store
func RegisterInterfaces ¶ added in v0.8.0
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/register interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.8.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on codec
func RegisterMsgHandler ¶ added in v0.8.0
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶ added in v0.8.0
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.
func RegisterMsgHandlerFromEndpoint ¶ added in v0.8.0
func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgHandlerServer ¶ added in v0.8.0
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.
func RegisterMsgServer ¶ added in v0.8.0
func RegisterQueryHandler ¶ added in v0.8.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.8.0
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 ¶ added in v0.8.0
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 ¶ added in v0.8.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.8.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the sds genesis parameters
Types ¶
type FileInfo ¶
type FileInfo struct { Height github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=height,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"height" yaml:"height"` Reporters []byte `protobuf:"bytes,2,opt,name=reporters,proto3" json:"reporters" yaml:"reporters"` Uploader string `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader" yaml:"uploader"` }
func NewFileInfo ¶
NewFileInfo constructor
func (*FileInfo) Descriptor ¶ added in v0.8.0
func (*FileInfo) GetReporters ¶ added in v0.10.0
func (*FileInfo) GetUploader ¶ added in v0.8.0
func (*FileInfo) MarshalToSizedBuffer ¶ added in v0.8.0
func (*FileInfo) ProtoMessage ¶ added in v0.8.0
func (*FileInfo) ProtoMessage()
func (*FileInfo) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *FileInfo) XXX_DiscardUnknown()
func (*FileInfo) XXX_Marshal ¶ added in v0.8.0
func (*FileInfo) XXX_Unmarshal ¶ added in v0.8.0
type GenesisFileInfo ¶ added in v0.10.0
type GenesisFileInfo struct { FileHash string `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash" yaml:"file_hash"` FileInfo FileInfo `protobuf:"bytes,2,opt,name=file_info,json=fileInfo,proto3" json:"file_info" yaml:"file_info"` }
func (*GenesisFileInfo) Descriptor ¶ added in v0.10.0
func (*GenesisFileInfo) Descriptor() ([]byte, []int)
func (*GenesisFileInfo) GetFileHash ¶ added in v0.10.0
func (m *GenesisFileInfo) GetFileHash() string
func (*GenesisFileInfo) GetFileInfo ¶ added in v0.10.0
func (m *GenesisFileInfo) GetFileInfo() FileInfo
func (*GenesisFileInfo) Marshal ¶ added in v0.10.0
func (m *GenesisFileInfo) Marshal() (dAtA []byte, err error)
func (*GenesisFileInfo) MarshalTo ¶ added in v0.10.0
func (m *GenesisFileInfo) MarshalTo(dAtA []byte) (int, error)
func (*GenesisFileInfo) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *GenesisFileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisFileInfo) ProtoMessage ¶ added in v0.10.0
func (*GenesisFileInfo) ProtoMessage()
func (*GenesisFileInfo) Reset ¶ added in v0.10.0
func (m *GenesisFileInfo) Reset()
func (*GenesisFileInfo) Size ¶ added in v0.10.0
func (m *GenesisFileInfo) Size() (n int)
func (*GenesisFileInfo) String ¶ added in v0.10.0
func (m *GenesisFileInfo) String() string
func (*GenesisFileInfo) Unmarshal ¶ added in v0.10.0
func (m *GenesisFileInfo) Unmarshal(dAtA []byte) error
func (*GenesisFileInfo) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *GenesisFileInfo) XXX_DiscardUnknown()
func (*GenesisFileInfo) XXX_Marshal ¶ added in v0.10.0
func (m *GenesisFileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisFileInfo) XXX_Merge ¶ added in v0.10.0
func (m *GenesisFileInfo) XXX_Merge(src proto.Message)
func (*GenesisFileInfo) XXX_Size ¶ added in v0.10.0
func (m *GenesisFileInfo) XXX_Size() int
func (*GenesisFileInfo) XXX_Unmarshal ¶ added in v0.10.0
func (m *GenesisFileInfo) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` Files []GenesisFileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files" yaml:"files"` }
GenesisState defines the register module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState - default GenesisState used by Cosmos Hub
func GetGenesisStateFromAppState ¶ added in v0.6.2
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/auth GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params *Params, files []GenesisFileInfo) GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶ added in v0.8.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFiles ¶ added in v0.10.0
func (m *GenesisState) GetFiles() []GenesisFileInfo
func (*GenesisState) GetParams ¶ added in v0.8.0
func (m *GenesisState) GetParams() *Params
func (*GenesisState) Marshal ¶ added in v0.8.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.8.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.8.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.8.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.8.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.8.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.8.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.8.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.8.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.8.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.8.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.8.0
type MsgClient interface { // CreateResourceNode defines a method for creating a new resource node. HandleMsgFileUpload(ctx context.Context, in *MsgFileUpload, opts ...grpc.CallOption) (*MsgFileUploadResponse, error) HandleMsgPrepay(ctx context.Context, in *MsgPrepay, opts ...grpc.CallOption) (*MsgPrepayResponse, 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 ¶ added in v0.8.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgFileUpload ¶
type MsgFileUpload struct { FileHash string `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash" yaml:"file_hash"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from" yaml:"from"` Reporter string `protobuf:"bytes,3,opt,name=reporter,proto3" json:"reporter" yaml:"reporter"` Uploader string `protobuf:"bytes,4,opt,name=uploader,proto3" json:"uploader" yaml:"uploader"` }
func NewMsgUpload ¶
func NewMsgUpload(fileHash string, from, reporter, uploader string) *MsgFileUpload
NewMsgUpload creates a new Msg<Action> instance
func (*MsgFileUpload) Descriptor ¶ added in v0.8.0
func (*MsgFileUpload) Descriptor() ([]byte, []int)
func (*MsgFileUpload) GetFileHash ¶ added in v0.8.0
func (m *MsgFileUpload) GetFileHash() string
func (*MsgFileUpload) GetFrom ¶ added in v0.8.0
func (m *MsgFileUpload) GetFrom() string
func (*MsgFileUpload) GetReporter ¶ added in v0.8.0
func (m *MsgFileUpload) GetReporter() string
func (MsgFileUpload) GetSignBytes ¶
func (msg MsgFileUpload) GetSignBytes() []byte
GetSignBytes gets the bytes for the message signer to sign on
func (MsgFileUpload) GetSigners ¶
func (msg MsgFileUpload) GetSigners() []sdk.AccAddress
func (*MsgFileUpload) GetUploader ¶ added in v0.8.0
func (m *MsgFileUpload) GetUploader() string
func (*MsgFileUpload) Marshal ¶ added in v0.8.0
func (m *MsgFileUpload) Marshal() (dAtA []byte, err error)
func (*MsgFileUpload) MarshalTo ¶ added in v0.8.0
func (m *MsgFileUpload) MarshalTo(dAtA []byte) (int, error)
func (*MsgFileUpload) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgFileUpload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFileUpload) ProtoMessage ¶ added in v0.8.0
func (*MsgFileUpload) ProtoMessage()
func (*MsgFileUpload) Reset ¶ added in v0.8.0
func (m *MsgFileUpload) Reset()
func (*MsgFileUpload) Size ¶ added in v0.8.0
func (m *MsgFileUpload) Size() (n int)
func (*MsgFileUpload) String ¶ added in v0.8.0
func (m *MsgFileUpload) String() string
func (MsgFileUpload) Type ¶
func (msg MsgFileUpload) Type() string
func (*MsgFileUpload) Unmarshal ¶ added in v0.8.0
func (m *MsgFileUpload) Unmarshal(dAtA []byte) error
func (MsgFileUpload) ValidateBasic ¶
func (msg MsgFileUpload) ValidateBasic() error
ValidateBasic validity check for the AnteHandler
func (*MsgFileUpload) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgFileUpload) XXX_DiscardUnknown()
func (*MsgFileUpload) XXX_Marshal ¶ added in v0.8.0
func (m *MsgFileUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFileUpload) XXX_Merge ¶ added in v0.8.0
func (m *MsgFileUpload) XXX_Merge(src proto.Message)
func (*MsgFileUpload) XXX_Size ¶ added in v0.8.0
func (m *MsgFileUpload) XXX_Size() int
func (*MsgFileUpload) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgFileUpload) XXX_Unmarshal(b []byte) error
type MsgFileUploadResponse ¶ added in v0.8.0
type MsgFileUploadResponse struct { }
func (*MsgFileUploadResponse) Descriptor ¶ added in v0.8.0
func (*MsgFileUploadResponse) Descriptor() ([]byte, []int)
func (*MsgFileUploadResponse) Marshal ¶ added in v0.8.0
func (m *MsgFileUploadResponse) Marshal() (dAtA []byte, err error)
func (*MsgFileUploadResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgFileUploadResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFileUploadResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgFileUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFileUploadResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgFileUploadResponse) ProtoMessage()
func (*MsgFileUploadResponse) Reset ¶ added in v0.8.0
func (m *MsgFileUploadResponse) Reset()
func (*MsgFileUploadResponse) Size ¶ added in v0.8.0
func (m *MsgFileUploadResponse) Size() (n int)
func (*MsgFileUploadResponse) String ¶ added in v0.8.0
func (m *MsgFileUploadResponse) String() string
func (*MsgFileUploadResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgFileUploadResponse) Unmarshal(dAtA []byte) error
func (*MsgFileUploadResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgFileUploadResponse) XXX_DiscardUnknown()
func (*MsgFileUploadResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgFileUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFileUploadResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgFileUploadResponse) XXX_Merge(src proto.Message)
func (*MsgFileUploadResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgFileUploadResponse) XXX_Size() int
func (*MsgFileUploadResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgFileUploadResponse) XXX_Unmarshal(b []byte) error
type MsgPrepay ¶
type MsgPrepay struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"` Beneficiary string `protobuf:"bytes,2,opt,name=beneficiary,proto3" json:"beneficiary" yaml:"beneficiary"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` }
func NewMsgPrepay ¶
NewMsgPrepay NewMsg<Action> creates a new Msg<Action> instance
func (*MsgPrepay) Descriptor ¶ added in v0.8.0
func (*MsgPrepay) GetAmount ¶ added in v0.10.0
func (m *MsgPrepay) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgPrepay) GetBeneficiary ¶ added in v0.10.0
func (MsgPrepay) GetSignBytes ¶
GetSignBytes gets the bytes for the message signer to sign on
func (MsgPrepay) GetSigners ¶
func (msg MsgPrepay) GetSigners() []sdk.AccAddress
func (*MsgPrepay) MarshalToSizedBuffer ¶ added in v0.8.0
func (*MsgPrepay) ProtoMessage ¶ added in v0.8.0
func (*MsgPrepay) ProtoMessage()
func (MsgPrepay) ValidateBasic ¶
ValidateBasic validity check for the AnteHandler
func (*MsgPrepay) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgPrepay) XXX_DiscardUnknown()
func (*MsgPrepay) XXX_Marshal ¶ added in v0.8.0
func (*MsgPrepay) XXX_Unmarshal ¶ added in v0.8.0
type MsgPrepayResponse ¶ added in v0.8.0
type MsgPrepayResponse struct { }
func (*MsgPrepayResponse) Descriptor ¶ added in v0.8.0
func (*MsgPrepayResponse) Descriptor() ([]byte, []int)
func (*MsgPrepayResponse) Marshal ¶ added in v0.8.0
func (m *MsgPrepayResponse) Marshal() (dAtA []byte, err error)
func (*MsgPrepayResponse) MarshalTo ¶ added in v0.8.0
func (m *MsgPrepayResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPrepayResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *MsgPrepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPrepayResponse) ProtoMessage ¶ added in v0.8.0
func (*MsgPrepayResponse) ProtoMessage()
func (*MsgPrepayResponse) Reset ¶ added in v0.8.0
func (m *MsgPrepayResponse) Reset()
func (*MsgPrepayResponse) Size ¶ added in v0.8.0
func (m *MsgPrepayResponse) Size() (n int)
func (*MsgPrepayResponse) String ¶ added in v0.8.0
func (m *MsgPrepayResponse) String() string
func (*MsgPrepayResponse) Unmarshal ¶ added in v0.8.0
func (m *MsgPrepayResponse) Unmarshal(dAtA []byte) error
func (*MsgPrepayResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *MsgPrepayResponse) XXX_DiscardUnknown()
func (*MsgPrepayResponse) XXX_Marshal ¶ added in v0.8.0
func (m *MsgPrepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPrepayResponse) XXX_Merge ¶ added in v0.8.0
func (m *MsgPrepayResponse) XXX_Merge(src proto.Message)
func (*MsgPrepayResponse) XXX_Size ¶ added in v0.8.0
func (m *MsgPrepayResponse) XXX_Size() int
func (*MsgPrepayResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *MsgPrepayResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.8.0
type MsgServer interface { // CreateResourceNode defines a method for creating a new resource node. HandleMsgFileUpload(context.Context, *MsgFileUpload) (*MsgFileUploadResponse, error) HandleMsgPrepay(context.Context, *MsgPrepay) (*MsgPrepayResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct {
BondDenom string `protobuf:"bytes,1,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom" yaml:"bond_denom"`
}
Params defines the Register module parameters
func DefaultParams ¶
func DefaultParams() *Params
DefaultParams defines the parameters for this module
func (*Params) Descriptor ¶ added in v0.8.0
func (*Params) GetBondDenom ¶ added in v0.8.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.8.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.8.0
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶ added in v0.6.0
func (*Params) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.8.0
func (*Params) XXX_Unmarshal ¶ added in v0.8.0
type QueryClient ¶ added in v0.8.0
type QueryClient interface { // Query uploaded file info by hash Fileupload(ctx context.Context, in *QueryFileUploadRequest, opts ...grpc.CallOption) (*QueryFileUploadResponse, error) SimPrepay(ctx context.Context, in *QuerySimPrepayRequest, opts ...grpc.CallOption) (*QuerySimPrepayResponse, error) NozPrice(ctx context.Context, in *QueryNozPriceRequest, opts ...grpc.CallOption) (*QueryNozPriceResponse, error) NozSupply(ctx context.Context, in *QueryNozSupplyRequest, opts ...grpc.CallOption) (*QueryNozSupplyResponse, error) // Params queries SDS module Params info. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 ¶ added in v0.8.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryFileUploadParams ¶ added in v0.10.0
type QueryFileUploadParams struct {
FileHash string `json:"file_hash" yaml:"file_hash"`
}
func NewQueryFileUploadParams ¶ added in v0.10.0
func NewQueryFileUploadParams(fileHash string) QueryFileUploadParams
NewQueryUploadedFileParams creates a new instance of QueryValidatorSlashesParams
type QueryFileUploadRequest ¶ added in v0.8.0
type QueryFileUploadRequest struct { // network_addr defines the node network address to query for. FileHash string `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"` }
QueryFileuploadRequest is request type for the Query/Fileupload RPC method
func (*QueryFileUploadRequest) Descriptor ¶ added in v0.8.0
func (*QueryFileUploadRequest) Descriptor() ([]byte, []int)
func (*QueryFileUploadRequest) GetFileHash ¶ added in v0.8.0
func (m *QueryFileUploadRequest) GetFileHash() string
func (*QueryFileUploadRequest) Marshal ¶ added in v0.8.0
func (m *QueryFileUploadRequest) Marshal() (dAtA []byte, err error)
func (*QueryFileUploadRequest) MarshalTo ¶ added in v0.8.0
func (m *QueryFileUploadRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFileUploadRequest) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryFileUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFileUploadRequest) ProtoMessage ¶ added in v0.8.0
func (*QueryFileUploadRequest) ProtoMessage()
func (*QueryFileUploadRequest) Reset ¶ added in v0.8.0
func (m *QueryFileUploadRequest) Reset()
func (*QueryFileUploadRequest) Size ¶ added in v0.8.0
func (m *QueryFileUploadRequest) Size() (n int)
func (*QueryFileUploadRequest) String ¶ added in v0.8.0
func (m *QueryFileUploadRequest) String() string
func (*QueryFileUploadRequest) Unmarshal ¶ added in v0.8.0
func (m *QueryFileUploadRequest) Unmarshal(dAtA []byte) error
func (*QueryFileUploadRequest) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryFileUploadRequest) XXX_DiscardUnknown()
func (*QueryFileUploadRequest) XXX_Marshal ¶ added in v0.8.0
func (m *QueryFileUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFileUploadRequest) XXX_Merge ¶ added in v0.8.0
func (m *QueryFileUploadRequest) XXX_Merge(src proto.Message)
func (*QueryFileUploadRequest) XXX_Size ¶ added in v0.8.0
func (m *QueryFileUploadRequest) XXX_Size() int
func (*QueryFileUploadRequest) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryFileUploadRequest) XXX_Unmarshal(b []byte) error
type QueryFileUploadResponse ¶ added in v0.8.0
type QueryFileUploadResponse struct {
FileInfo *FileInfo `protobuf:"bytes,1,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"`
}
QueryFileuploadResponse is response type for the Query/Fileupload RPC method
func (*QueryFileUploadResponse) Descriptor ¶ added in v0.8.0
func (*QueryFileUploadResponse) Descriptor() ([]byte, []int)
func (*QueryFileUploadResponse) GetFileInfo ¶ added in v0.8.0
func (m *QueryFileUploadResponse) GetFileInfo() *FileInfo
func (*QueryFileUploadResponse) Marshal ¶ added in v0.8.0
func (m *QueryFileUploadResponse) Marshal() (dAtA []byte, err error)
func (*QueryFileUploadResponse) MarshalTo ¶ added in v0.8.0
func (m *QueryFileUploadResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFileUploadResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryFileUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFileUploadResponse) ProtoMessage ¶ added in v0.8.0
func (*QueryFileUploadResponse) ProtoMessage()
func (*QueryFileUploadResponse) Reset ¶ added in v0.8.0
func (m *QueryFileUploadResponse) Reset()
func (*QueryFileUploadResponse) Size ¶ added in v0.8.0
func (m *QueryFileUploadResponse) Size() (n int)
func (*QueryFileUploadResponse) String ¶ added in v0.8.0
func (m *QueryFileUploadResponse) String() string
func (*QueryFileUploadResponse) Unmarshal ¶ added in v0.8.0
func (m *QueryFileUploadResponse) Unmarshal(dAtA []byte) error
func (*QueryFileUploadResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryFileUploadResponse) XXX_DiscardUnknown()
func (*QueryFileUploadResponse) XXX_Marshal ¶ added in v0.8.0
func (m *QueryFileUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFileUploadResponse) XXX_Merge ¶ added in v0.8.0
func (m *QueryFileUploadResponse) XXX_Merge(src proto.Message)
func (*QueryFileUploadResponse) XXX_Size ¶ added in v0.8.0
func (m *QueryFileUploadResponse) XXX_Size() int
func (*QueryFileUploadResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryFileUploadResponse) XXX_Unmarshal(b []byte) error
type QueryNozPriceRequest ¶ added in v0.10.0
type QueryNozPriceRequest struct { }
func (*QueryNozPriceRequest) Descriptor ¶ added in v0.10.0
func (*QueryNozPriceRequest) Descriptor() ([]byte, []int)
func (*QueryNozPriceRequest) Marshal ¶ added in v0.10.0
func (m *QueryNozPriceRequest) Marshal() (dAtA []byte, err error)
func (*QueryNozPriceRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryNozPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNozPriceRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryNozPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNozPriceRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryNozPriceRequest) ProtoMessage()
func (*QueryNozPriceRequest) Reset ¶ added in v0.10.0
func (m *QueryNozPriceRequest) Reset()
func (*QueryNozPriceRequest) Size ¶ added in v0.10.0
func (m *QueryNozPriceRequest) Size() (n int)
func (*QueryNozPriceRequest) String ¶ added in v0.10.0
func (m *QueryNozPriceRequest) String() string
func (*QueryNozPriceRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryNozPriceRequest) Unmarshal(dAtA []byte) error
func (*QueryNozPriceRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryNozPriceRequest) XXX_DiscardUnknown()
func (*QueryNozPriceRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryNozPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNozPriceRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryNozPriceRequest) XXX_Merge(src proto.Message)
func (*QueryNozPriceRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryNozPriceRequest) XXX_Size() int
func (*QueryNozPriceRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryNozPriceRequest) XXX_Unmarshal(b []byte) error
type QueryNozPriceResponse ¶ added in v0.10.0
type QueryNozPriceResponse struct {
Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price" yaml:"price"`
}
func (*QueryNozPriceResponse) Descriptor ¶ added in v0.10.0
func (*QueryNozPriceResponse) Descriptor() ([]byte, []int)
func (*QueryNozPriceResponse) Marshal ¶ added in v0.10.0
func (m *QueryNozPriceResponse) Marshal() (dAtA []byte, err error)
func (*QueryNozPriceResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryNozPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNozPriceResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryNozPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNozPriceResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryNozPriceResponse) ProtoMessage()
func (*QueryNozPriceResponse) Reset ¶ added in v0.10.0
func (m *QueryNozPriceResponse) Reset()
func (*QueryNozPriceResponse) Size ¶ added in v0.10.0
func (m *QueryNozPriceResponse) Size() (n int)
func (*QueryNozPriceResponse) String ¶ added in v0.10.0
func (m *QueryNozPriceResponse) String() string
func (*QueryNozPriceResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryNozPriceResponse) Unmarshal(dAtA []byte) error
func (*QueryNozPriceResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryNozPriceResponse) XXX_DiscardUnknown()
func (*QueryNozPriceResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryNozPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNozPriceResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryNozPriceResponse) XXX_Merge(src proto.Message)
func (*QueryNozPriceResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryNozPriceResponse) XXX_Size() int
func (*QueryNozPriceResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryNozPriceResponse) XXX_Unmarshal(b []byte) error
type QueryNozSupplyRequest ¶ added in v0.10.0
type QueryNozSupplyRequest struct { }
func (*QueryNozSupplyRequest) Descriptor ¶ added in v0.10.0
func (*QueryNozSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryNozSupplyRequest) Marshal ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryNozSupplyRequest) MarshalTo ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNozSupplyRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNozSupplyRequest) ProtoMessage ¶ added in v0.10.0
func (*QueryNozSupplyRequest) ProtoMessage()
func (*QueryNozSupplyRequest) Reset ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) Reset()
func (*QueryNozSupplyRequest) Size ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) Size() (n int)
func (*QueryNozSupplyRequest) String ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) String() string
func (*QueryNozSupplyRequest) Unmarshal ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryNozSupplyRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) XXX_DiscardUnknown()
func (*QueryNozSupplyRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNozSupplyRequest) XXX_Merge ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryNozSupplyRequest) XXX_Size ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) XXX_Size() int
func (*QueryNozSupplyRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryNozSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryNozSupplyResponse ¶ added in v0.10.0
type QueryNozSupplyResponse struct { Remaining github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ Total github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=total,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total" yaml:"total"` }
func (*QueryNozSupplyResponse) Descriptor ¶ added in v0.10.0
func (*QueryNozSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryNozSupplyResponse) Marshal ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryNozSupplyResponse) MarshalTo ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNozSupplyResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNozSupplyResponse) ProtoMessage ¶ added in v0.10.0
func (*QueryNozSupplyResponse) ProtoMessage()
func (*QueryNozSupplyResponse) Reset ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) Reset()
func (*QueryNozSupplyResponse) Size ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) Size() (n int)
func (*QueryNozSupplyResponse) String ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) String() string
func (*QueryNozSupplyResponse) Unmarshal ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryNozSupplyResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) XXX_DiscardUnknown()
func (*QueryNozSupplyResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNozSupplyResponse) XXX_Merge ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryNozSupplyResponse) XXX_Size ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) XXX_Size() int
func (*QueryNozSupplyResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QueryNozSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.8.0
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.8.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.8.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.8.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.8.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.8.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.8.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.8.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.8.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.8.0
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.8.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.8.0
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶ added in v0.8.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.8.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.8.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.8.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.8.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.8.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.8.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.8.0
type QueryServer interface { // Query uploaded file info by hash Fileupload(context.Context, *QueryFileUploadRequest) (*QueryFileUploadResponse, error) SimPrepay(context.Context, *QuerySimPrepayRequest) (*QuerySimPrepayResponse, error) NozPrice(context.Context, *QueryNozPriceRequest) (*QueryNozPriceResponse, error) NozSupply(context.Context, *QueryNozSupplyRequest) (*QueryNozSupplyResponse, error) // Params queries SDS module Params info. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QuerySimPrepayRequest ¶ added in v0.10.0
type QuerySimPrepayRequest struct {
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
}
func (*QuerySimPrepayRequest) Descriptor ¶ added in v0.10.0
func (*QuerySimPrepayRequest) Descriptor() ([]byte, []int)
func (*QuerySimPrepayRequest) GetAmount ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*QuerySimPrepayRequest) Marshal ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) Marshal() (dAtA []byte, err error)
func (*QuerySimPrepayRequest) MarshalTo ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySimPrepayRequest) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySimPrepayRequest) ProtoMessage ¶ added in v0.10.0
func (*QuerySimPrepayRequest) ProtoMessage()
func (*QuerySimPrepayRequest) Reset ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) Reset()
func (*QuerySimPrepayRequest) Size ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) Size() (n int)
func (*QuerySimPrepayRequest) String ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) String() string
func (*QuerySimPrepayRequest) Unmarshal ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) Unmarshal(dAtA []byte) error
func (*QuerySimPrepayRequest) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) XXX_DiscardUnknown()
func (*QuerySimPrepayRequest) XXX_Marshal ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySimPrepayRequest) XXX_Merge ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) XXX_Merge(src proto.Message)
func (*QuerySimPrepayRequest) XXX_Size ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) XXX_Size() int
func (*QuerySimPrepayRequest) XXX_Unmarshal ¶ added in v0.10.0
func (m *QuerySimPrepayRequest) XXX_Unmarshal(b []byte) error
type QuerySimPrepayResponse ¶ added in v0.10.0
type QuerySimPrepayResponse struct {
Noz github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=noz,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"noz" yaml:"noz"`
}
func (*QuerySimPrepayResponse) Descriptor ¶ added in v0.10.0
func (*QuerySimPrepayResponse) Descriptor() ([]byte, []int)
func (*QuerySimPrepayResponse) Marshal ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) Marshal() (dAtA []byte, err error)
func (*QuerySimPrepayResponse) MarshalTo ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySimPrepayResponse) MarshalToSizedBuffer ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySimPrepayResponse) ProtoMessage ¶ added in v0.10.0
func (*QuerySimPrepayResponse) ProtoMessage()
func (*QuerySimPrepayResponse) Reset ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) Reset()
func (*QuerySimPrepayResponse) Size ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) Size() (n int)
func (*QuerySimPrepayResponse) String ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) String() string
func (*QuerySimPrepayResponse) Unmarshal ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) Unmarshal(dAtA []byte) error
func (*QuerySimPrepayResponse) XXX_DiscardUnknown ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) XXX_DiscardUnknown()
func (*QuerySimPrepayResponse) XXX_Marshal ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySimPrepayResponse) XXX_Merge ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) XXX_Merge(src proto.Message)
func (*QuerySimPrepayResponse) XXX_Size ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) XXX_Size() int
func (*QuerySimPrepayResponse) XXX_Unmarshal ¶ added in v0.10.0
func (m *QuerySimPrepayResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶ added in v0.8.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) HandleMsgFileUpload ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgFileUpload(ctx context.Context, req *MsgFileUpload) (*MsgFileUploadResponse, error)
func (*UnimplementedMsgServer) HandleMsgPrepay ¶ added in v0.8.0
func (*UnimplementedMsgServer) HandleMsgPrepay(ctx context.Context, req *MsgPrepay) (*MsgPrepayResponse, error)
type UnimplementedQueryServer ¶ added in v0.8.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Fileupload ¶ added in v0.8.0
func (*UnimplementedQueryServer) Fileupload(ctx context.Context, req *QueryFileUploadRequest) (*QueryFileUploadResponse, error)
func (*UnimplementedQueryServer) NozPrice ¶ added in v0.10.0
func (*UnimplementedQueryServer) NozPrice(ctx context.Context, req *QueryNozPriceRequest) (*QueryNozPriceResponse, error)
func (*UnimplementedQueryServer) NozSupply ¶ added in v0.10.0
func (*UnimplementedQueryServer) NozSupply(ctx context.Context, req *QueryNozSupplyRequest) (*QueryNozSupplyResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.8.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SimPrepay ¶ added in v0.10.0
func (*UnimplementedQueryServer) SimPrepay(ctx context.Context, req *QuerySimPrepayRequest) (*QuerySimPrepayResponse, error)