sdsv1

package
v0.0.0-...-f2a5892 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Fileupload_FullMethodName = "/stratos.sds.v1.Query/Fileupload"
	Query_SimPrepay_FullMethodName  = "/stratos.sds.v1.Query/SimPrepay"
	Query_NozPrice_FullMethodName   = "/stratos.sds.v1.Query/NozPrice"
	Query_NozSupply_FullMethodName  = "/stratos.sds.v1.Query/NozSupply"
	Query_Params_FullMethodName     = "/stratos.sds.v1.Query/Params"
)
View Source
const (
	Msg_HandleMsgFileUpload_FullMethodName = "/stratos.sds.v1.Msg/HandleMsgFileUpload"
	Msg_HandleMsgPrepay_FullMethodName     = "/stratos.sds.v1.Msg/HandleMsgPrepay"
	Msg_UpdateParams_FullMethodName        = "/stratos.sds.v1.Msg/UpdateParams"
)

Variables

View Source
var File_stratos_sds_v1_event_proto protoreflect.FileDescriptor
View Source
var File_stratos_sds_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_stratos_sds_v1_query_proto protoreflect.FileDescriptor
View Source
var File_stratos_sds_v1_sds_proto protoreflect.FileDescriptor
View Source
var File_stratos_sds_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stratos.sds.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HandleMsgFileUpload",
			Handler:    _Msg_HandleMsgFileUpload_Handler,
		},
		{
			MethodName: "HandleMsgPrepay",
			Handler:    _Msg_HandleMsgPrepay_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stratos/sds/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stratos.sds.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Fileupload",
			Handler:    _Query_Fileupload_Handler,
		},
		{
			MethodName: "SimPrepay",
			Handler:    _Query_SimPrepay_Handler,
		},
		{
			MethodName: "NozPrice",
			Handler:    _Query_NozPrice_Handler,
		},
		{
			MethodName: "NozSupply",
			Handler:    _Query_NozSupply_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stratos/sds/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type EventFileUpload

type EventFileUpload struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"`
	Uploader string `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader,omitempty"`
	FileHash string `protobuf:"bytes,4,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	// contains filtered or unexported fields
}

EventFileUpload is emitted on Msg/MsgFileUpload

func (*EventFileUpload) Descriptor deprecated

func (*EventFileUpload) Descriptor() ([]byte, []int)

Deprecated: Use EventFileUpload.ProtoReflect.Descriptor instead.

func (*EventFileUpload) GetFileHash

func (x *EventFileUpload) GetFileHash() string

func (*EventFileUpload) GetReporter

func (x *EventFileUpload) GetReporter() string

func (*EventFileUpload) GetSender

func (x *EventFileUpload) GetSender() string

func (*EventFileUpload) GetUploader

func (x *EventFileUpload) GetUploader() string

func (*EventFileUpload) ProtoMessage

func (*EventFileUpload) ProtoMessage()

func (*EventFileUpload) ProtoReflect

func (x *EventFileUpload) ProtoReflect() protoreflect.Message

func (*EventFileUpload) Reset

func (x *EventFileUpload) Reset()

func (*EventFileUpload) String

func (x *EventFileUpload) String() string

type EventPrePay

type EventPrePay struct {
	Sender       string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Beneficiary  string `protobuf:"bytes,2,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	Amount       string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	PurchasedNoz string `protobuf:"bytes,4,opt,name=purchased_noz,json=purchasedNoz,proto3" json:"purchased_noz,omitempty"`
	// contains filtered or unexported fields
}

EventPrePay is emitted on Msg/MsgPrepay

func (*EventPrePay) Descriptor deprecated

func (*EventPrePay) Descriptor() ([]byte, []int)

Deprecated: Use EventPrePay.ProtoReflect.Descriptor instead.

func (*EventPrePay) GetAmount

func (x *EventPrePay) GetAmount() string

func (*EventPrePay) GetBeneficiary

func (x *EventPrePay) GetBeneficiary() string

func (*EventPrePay) GetPurchasedNoz

func (x *EventPrePay) GetPurchasedNoz() string

func (*EventPrePay) GetSender

func (x *EventPrePay) GetSender() string

func (*EventPrePay) ProtoMessage

func (*EventPrePay) ProtoMessage()

func (*EventPrePay) ProtoReflect

func (x *EventPrePay) ProtoReflect() protoreflect.Message

func (*EventPrePay) Reset

func (x *EventPrePay) Reset()

func (*EventPrePay) String

func (x *EventPrePay) String() string

type FileInfo

type FileInfo struct {
	Height    string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"`
	Reporters []byte `protobuf:"bytes,2,opt,name=reporters,proto3" json:"reporters,omitempty"`
	Uploader  string `protobuf:"bytes,3,opt,name=uploader,proto3" json:"uploader,omitempty"`
	// contains filtered or unexported fields
}

func (*FileInfo) Descriptor deprecated

func (*FileInfo) Descriptor() ([]byte, []int)

Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.

func (*FileInfo) GetHeight

func (x *FileInfo) GetHeight() string

func (*FileInfo) GetReporters

func (x *FileInfo) GetReporters() []byte

func (*FileInfo) GetUploader

func (x *FileInfo) GetUploader() string

func (*FileInfo) ProtoMessage

func (*FileInfo) ProtoMessage()

func (*FileInfo) ProtoReflect

func (x *FileInfo) ProtoReflect() protoreflect.Message

func (*FileInfo) Reset

func (x *FileInfo) Reset()

func (*FileInfo) String

func (x *FileInfo) String() string

type GenesisFileInfo

type GenesisFileInfo struct {
	FileHash string    `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	FileInfo *FileInfo `protobuf:"bytes,2,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisFileInfo) Descriptor deprecated

func (*GenesisFileInfo) Descriptor() ([]byte, []int)

Deprecated: Use GenesisFileInfo.ProtoReflect.Descriptor instead.

func (*GenesisFileInfo) GetFileHash

func (x *GenesisFileInfo) GetFileHash() string

func (*GenesisFileInfo) GetFileInfo

func (x *GenesisFileInfo) GetFileInfo() *FileInfo

func (*GenesisFileInfo) ProtoMessage

func (*GenesisFileInfo) ProtoMessage()

func (*GenesisFileInfo) ProtoReflect

func (x *GenesisFileInfo) ProtoReflect() protoreflect.Message

func (*GenesisFileInfo) Reset

func (x *GenesisFileInfo) Reset()

func (*GenesisFileInfo) String

func (x *GenesisFileInfo) String() string

type GenesisState

type GenesisState struct {
	Params *Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Files  []*GenesisFileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the register module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetFiles

func (x *GenesisState) GetFiles() []*GenesisFileInfo

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	// HandleMsgFileUpload defines a method for file uploading
	HandleMsgFileUpload(ctx context.Context, in *MsgFileUpload, opts ...grpc.CallOption) (*MsgFileUploadResponse, error)
	// HandleMsgPrepay defines a method for prepay
	HandleMsgPrepay(ctx context.Context, in *MsgPrepay, opts ...grpc.CallOption) (*MsgPrepayResponse, error)
	// UpdateParams defined a governance operation for updating the x/sds module parameters.
	// The authority is hard-coded to the Cosmos SDK x/gov module account
	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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgFileUpload

type MsgFileUpload struct {
	FileHash string `protobuf:"bytes,1,opt,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	From     string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Reporter string `protobuf:"bytes,3,opt,name=reporter,proto3" json:"reporter,omitempty"`
	Uploader string `protobuf:"bytes,4,opt,name=uploader,proto3" json:"uploader,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgFileUpload) Descriptor deprecated

func (*MsgFileUpload) Descriptor() ([]byte, []int)

Deprecated: Use MsgFileUpload.ProtoReflect.Descriptor instead.

func (*MsgFileUpload) GetFileHash

func (x *MsgFileUpload) GetFileHash() string

func (*MsgFileUpload) GetFrom

func (x *MsgFileUpload) GetFrom() string

func (*MsgFileUpload) GetReporter

func (x *MsgFileUpload) GetReporter() string

func (*MsgFileUpload) GetUploader

func (x *MsgFileUpload) GetUploader() string

func (*MsgFileUpload) ProtoMessage

func (*MsgFileUpload) ProtoMessage()

func (*MsgFileUpload) ProtoReflect

func (x *MsgFileUpload) ProtoReflect() protoreflect.Message

func (*MsgFileUpload) Reset

func (x *MsgFileUpload) Reset()

func (*MsgFileUpload) String

func (x *MsgFileUpload) String() string

type MsgFileUploadResponse

type MsgFileUploadResponse struct {
	// contains filtered or unexported fields
}

func (*MsgFileUploadResponse) Descriptor deprecated

func (*MsgFileUploadResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgFileUploadResponse.ProtoReflect.Descriptor instead.

func (*MsgFileUploadResponse) ProtoMessage

func (*MsgFileUploadResponse) ProtoMessage()

func (*MsgFileUploadResponse) ProtoReflect

func (x *MsgFileUploadResponse) ProtoReflect() protoreflect.Message

func (*MsgFileUploadResponse) Reset

func (x *MsgFileUploadResponse) Reset()

func (*MsgFileUploadResponse) String

func (x *MsgFileUploadResponse) String() string

type MsgPrepay

type MsgPrepay struct {
	Sender      string          `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Beneficiary string          `protobuf:"bytes,2,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`
	Amount      []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgPrepay) Descriptor deprecated

func (*MsgPrepay) Descriptor() ([]byte, []int)

Deprecated: Use MsgPrepay.ProtoReflect.Descriptor instead.

func (*MsgPrepay) GetAmount

func (x *MsgPrepay) GetAmount() []*v1beta1.Coin

func (*MsgPrepay) GetBeneficiary

func (x *MsgPrepay) GetBeneficiary() string

func (*MsgPrepay) GetSender

func (x *MsgPrepay) GetSender() string

func (*MsgPrepay) ProtoMessage

func (*MsgPrepay) ProtoMessage()

func (*MsgPrepay) ProtoReflect

func (x *MsgPrepay) ProtoReflect() protoreflect.Message

func (*MsgPrepay) Reset

func (x *MsgPrepay) Reset()

func (*MsgPrepay) String

func (x *MsgPrepay) String() string

type MsgPrepayResponse

type MsgPrepayResponse struct {
	// contains filtered or unexported fields
}

func (*MsgPrepayResponse) Descriptor deprecated

func (*MsgPrepayResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgPrepayResponse.ProtoReflect.Descriptor instead.

func (*MsgPrepayResponse) ProtoMessage

func (*MsgPrepayResponse) ProtoMessage()

func (*MsgPrepayResponse) ProtoReflect

func (x *MsgPrepayResponse) ProtoReflect() protoreflect.Message

func (*MsgPrepayResponse) Reset

func (x *MsgPrepayResponse) Reset()

func (*MsgPrepayResponse) String

func (x *MsgPrepayResponse) String() string

type MsgServer

type MsgServer interface {
	// HandleMsgFileUpload defines a method for file uploading
	HandleMsgFileUpload(context.Context, *MsgFileUpload) (*MsgFileUploadResponse, error)
	// HandleMsgPrepay defines a method for prepay
	HandleMsgPrepay(context.Context, *MsgPrepay) (*MsgPrepayResponse, error)
	// UpdateParams defined a governance operation for updating the x/sds module parameters.
	// The authority is hard-coded to the Cosmos SDK x/gov module account
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/sds parameters to update.
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams defines a Msg for updating the x/sds module parameters.

func (*MsgUpdateParams) Descriptor deprecated

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {
	BondDenom string `protobuf:"bytes,1,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the sds module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBondDenom

func (x *Params) GetBondDenom() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryFileUploadRequest

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"`
	// contains filtered or unexported fields
}

QueryFileuploadRequest is request type for the Query/Fileupload RPC method

func (*QueryFileUploadRequest) Descriptor deprecated

func (*QueryFileUploadRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryFileUploadRequest.ProtoReflect.Descriptor instead.

func (*QueryFileUploadRequest) GetFileHash

func (x *QueryFileUploadRequest) GetFileHash() string

func (*QueryFileUploadRequest) ProtoMessage

func (*QueryFileUploadRequest) ProtoMessage()

func (*QueryFileUploadRequest) ProtoReflect

func (x *QueryFileUploadRequest) ProtoReflect() protoreflect.Message

func (*QueryFileUploadRequest) Reset

func (x *QueryFileUploadRequest) Reset()

func (*QueryFileUploadRequest) String

func (x *QueryFileUploadRequest) String() string

type QueryFileUploadResponse

type QueryFileUploadResponse struct {
	FileInfo *FileInfo `protobuf:"bytes,1,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"`
	// contains filtered or unexported fields
}

QueryFileuploadResponse is response type for the Query/Fileupload RPC method

func (*QueryFileUploadResponse) Descriptor deprecated

func (*QueryFileUploadResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryFileUploadResponse.ProtoReflect.Descriptor instead.

func (*QueryFileUploadResponse) GetFileInfo

func (x *QueryFileUploadResponse) GetFileInfo() *FileInfo

func (*QueryFileUploadResponse) ProtoMessage

func (*QueryFileUploadResponse) ProtoMessage()

func (*QueryFileUploadResponse) ProtoReflect

func (x *QueryFileUploadResponse) ProtoReflect() protoreflect.Message

func (*QueryFileUploadResponse) Reset

func (x *QueryFileUploadResponse) Reset()

func (*QueryFileUploadResponse) String

func (x *QueryFileUploadResponse) String() string

type QueryNozPriceRequest

type QueryNozPriceRequest struct {
	// contains filtered or unexported fields
}

func (*QueryNozPriceRequest) Descriptor deprecated

func (*QueryNozPriceRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryNozPriceRequest.ProtoReflect.Descriptor instead.

func (*QueryNozPriceRequest) ProtoMessage

func (*QueryNozPriceRequest) ProtoMessage()

func (*QueryNozPriceRequest) ProtoReflect

func (x *QueryNozPriceRequest) ProtoReflect() protoreflect.Message

func (*QueryNozPriceRequest) Reset

func (x *QueryNozPriceRequest) Reset()

func (*QueryNozPriceRequest) String

func (x *QueryNozPriceRequest) String() string

type QueryNozPriceResponse

type QueryNozPriceResponse struct {
	Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryNozPriceResponse) Descriptor deprecated

func (*QueryNozPriceResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryNozPriceResponse.ProtoReflect.Descriptor instead.

func (*QueryNozPriceResponse) GetPrice

func (x *QueryNozPriceResponse) GetPrice() string

func (*QueryNozPriceResponse) ProtoMessage

func (*QueryNozPriceResponse) ProtoMessage()

func (*QueryNozPriceResponse) ProtoReflect

func (x *QueryNozPriceResponse) ProtoReflect() protoreflect.Message

func (*QueryNozPriceResponse) Reset

func (x *QueryNozPriceResponse) Reset()

func (*QueryNozPriceResponse) String

func (x *QueryNozPriceResponse) String() string

type QueryNozSupplyRequest

type QueryNozSupplyRequest struct {
	// contains filtered or unexported fields
}

func (*QueryNozSupplyRequest) Descriptor deprecated

func (*QueryNozSupplyRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryNozSupplyRequest.ProtoReflect.Descriptor instead.

func (*QueryNozSupplyRequest) ProtoMessage

func (*QueryNozSupplyRequest) ProtoMessage()

func (*QueryNozSupplyRequest) ProtoReflect

func (x *QueryNozSupplyRequest) ProtoReflect() protoreflect.Message

func (*QueryNozSupplyRequest) Reset

func (x *QueryNozSupplyRequest) Reset()

func (*QueryNozSupplyRequest) String

func (x *QueryNozSupplyRequest) String() string

type QueryNozSupplyResponse

type QueryNozSupplyResponse struct {
	Remaining string `protobuf:"bytes,1,opt,name=remaining,proto3" json:"remaining,omitempty"`
	Total     string `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryNozSupplyResponse) Descriptor deprecated

func (*QueryNozSupplyResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryNozSupplyResponse.ProtoReflect.Descriptor instead.

func (*QueryNozSupplyResponse) GetRemaining

func (x *QueryNozSupplyResponse) GetRemaining() string

func (*QueryNozSupplyResponse) GetTotal

func (x *QueryNozSupplyResponse) GetTotal() string

func (*QueryNozSupplyResponse) ProtoMessage

func (*QueryNozSupplyResponse) ProtoMessage()

func (*QueryNozSupplyResponse) ProtoReflect

func (x *QueryNozSupplyResponse) ProtoReflect() protoreflect.Message

func (*QueryNozSupplyResponse) Reset

func (x *QueryNozSupplyResponse) Reset()

func (*QueryNozSupplyResponse) String

func (x *QueryNozSupplyResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

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)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySimPrepayRequest

type QuerySimPrepayRequest struct {
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*QuerySimPrepayRequest) Descriptor deprecated

func (*QuerySimPrepayRequest) Descriptor() ([]byte, []int)

Deprecated: Use QuerySimPrepayRequest.ProtoReflect.Descriptor instead.

func (*QuerySimPrepayRequest) GetAmount

func (x *QuerySimPrepayRequest) GetAmount() string

func (*QuerySimPrepayRequest) ProtoMessage

func (*QuerySimPrepayRequest) ProtoMessage()

func (*QuerySimPrepayRequest) ProtoReflect

func (x *QuerySimPrepayRequest) ProtoReflect() protoreflect.Message

func (*QuerySimPrepayRequest) Reset

func (x *QuerySimPrepayRequest) Reset()

func (*QuerySimPrepayRequest) String

func (x *QuerySimPrepayRequest) String() string

type QuerySimPrepayResponse

type QuerySimPrepayResponse struct {
	Noz string `protobuf:"bytes,1,opt,name=noz,proto3" json:"noz,omitempty"`
	// contains filtered or unexported fields
}

func (*QuerySimPrepayResponse) Descriptor deprecated

func (*QuerySimPrepayResponse) Descriptor() ([]byte, []int)

Deprecated: Use QuerySimPrepayResponse.ProtoReflect.Descriptor instead.

func (*QuerySimPrepayResponse) GetNoz

func (x *QuerySimPrepayResponse) GetNoz() string

func (*QuerySimPrepayResponse) ProtoMessage

func (*QuerySimPrepayResponse) ProtoMessage()

func (*QuerySimPrepayResponse) ProtoReflect

func (x *QuerySimPrepayResponse) ProtoReflect() protoreflect.Message

func (*QuerySimPrepayResponse) Reset

func (x *QuerySimPrepayResponse) Reset()

func (*QuerySimPrepayResponse) String

func (x *QuerySimPrepayResponse) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) HandleMsgFileUpload

func (UnimplementedMsgServer) HandleMsgPrepay

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) NozPrice

func (UnimplementedQueryServer) NozSupply

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) SimPrepay

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL