proto

package
v0.0.0-...-316f095 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContractorService_PublishWork_FullMethodName                = "/pp.contractor.ContractorService/PublishWork"
	ContractorService_PurchaseWork_FullMethodName               = "/pp.contractor.ContractorService/PurchaseWork"
	ContractorService_MakeAuthor_FullMethodName                 = "/pp.contractor.ContractorService/MakeAuthor"
	ContractorService_MakeAdmin_FullMethodName                  = "/pp.contractor.ContractorService/MakeAdmin"
	ContractorService_MakeReviewer_FullMethodName               = "/pp.contractor.ContractorService/MakeReviewer"
	ContractorService_Faucet_FullMethodName                     = "/pp.contractor.ContractorService/Faucet"
	ContractorService_AddParticipant_FullMethodName             = "/pp.contractor.ContractorService/AddParticipant"
	ContractorService_GetStatus_FullMethodName                  = "/pp.contractor.ContractorService/GetStatus"
	ContractorService_GetPaperById_FullMethodName               = "/pp.contractor.ContractorService/GetPaperById"
	ContractorService_GetParticipantRole_FullMethodName         = "/pp.contractor.ContractorService/GetParticipantRole"
	ContractorService_AddReviewsBatch_FullMethodName            = "/pp.contractor.ContractorService/AddReviewsBatch"
	ContractorService_IsPaperReadableFor_FullMethodName         = "/pp.contractor.ContractorService/IsPaperReadableFor"
	ContractorService_PaperExpiresFor_FullMethodName            = "/pp.contractor.ContractorService/PaperExpiresFor"
	ContractorService_CheckNewParticipantAddress_FullMethodName = "/pp.contractor.ContractorService/CheckNewParticipantAddress"
	ContractorService_VerifySignature_FullMethodName            = "/pp.contractor.ContractorService/VerifySignature"
)

Variables

View Source
var ContractorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pp.contractor.ContractorService",
	HandlerType: (*ContractorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PublishWork",
			Handler:    _ContractorService_PublishWork_Handler,
		},
		{
			MethodName: "PurchaseWork",
			Handler:    _ContractorService_PurchaseWork_Handler,
		},
		{
			MethodName: "MakeAuthor",
			Handler:    _ContractorService_MakeAuthor_Handler,
		},
		{
			MethodName: "MakeAdmin",
			Handler:    _ContractorService_MakeAdmin_Handler,
		},
		{
			MethodName: "MakeReviewer",
			Handler:    _ContractorService_MakeReviewer_Handler,
		},
		{
			MethodName: "Faucet",
			Handler:    _ContractorService_Faucet_Handler,
		},
		{
			MethodName: "AddParticipant",
			Handler:    _ContractorService_AddParticipant_Handler,
		},
		{
			MethodName: "GetStatus",
			Handler:    _ContractorService_GetStatus_Handler,
		},
		{
			MethodName: "GetPaperById",
			Handler:    _ContractorService_GetPaperById_Handler,
		},
		{
			MethodName: "GetParticipantRole",
			Handler:    _ContractorService_GetParticipantRole_Handler,
		},
		{
			MethodName: "AddReviewsBatch",
			Handler:    _ContractorService_AddReviewsBatch_Handler,
		},
		{
			MethodName: "IsPaperReadableFor",
			Handler:    _ContractorService_IsPaperReadableFor_Handler,
		},
		{
			MethodName: "PaperExpiresFor",
			Handler:    _ContractorService_PaperExpiresFor_Handler,
		},
		{
			MethodName: "CheckNewParticipantAddress",
			Handler:    _ContractorService_CheckNewParticipantAddress_Handler,
		},
		{
			MethodName: "VerifySignature",
			Handler:    _ContractorService_VerifySignature_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "contractor-srv/contractor.proto",
}

ContractorService_ServiceDesc is the grpc.ServiceDesc for ContractorService 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 File_contractor_srv_contractor_proto protoreflect.FileDescriptor

Functions

func RegisterContractorServiceServer

func RegisterContractorServiceServer(s grpc.ServiceRegistrar, srv ContractorServiceServer)

Types

type AccountRequest

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

func (*AccountRequest) Descriptor deprecated

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

Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.

func (*AccountRequest) GetAddress

func (x *AccountRequest) GetAddress() string

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) ProtoReflect

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

func (*AccountRequest) Reset

func (x *AccountRequest) Reset()

func (*AccountRequest) String

func (x *AccountRequest) String() string

type AddReviewsRequest

type AddReviewsRequest struct {
	WorkId        string          `protobuf:"bytes,1,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	ReviewResults map[string]bool `` /* 189-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddReviewsRequest) Descriptor deprecated

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

Deprecated: Use AddReviewsRequest.ProtoReflect.Descriptor instead.

func (*AddReviewsRequest) GetReviewResults

func (x *AddReviewsRequest) GetReviewResults() map[string]bool

func (*AddReviewsRequest) GetWorkId

func (x *AddReviewsRequest) GetWorkId() string

func (*AddReviewsRequest) ProtoMessage

func (*AddReviewsRequest) ProtoMessage()

func (*AddReviewsRequest) ProtoReflect

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

func (*AddReviewsRequest) Reset

func (x *AddReviewsRequest) Reset()

func (*AddReviewsRequest) String

func (x *AddReviewsRequest) String() string

type BooleanResponse

type BooleanResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*BooleanResponse) Descriptor deprecated

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

Deprecated: Use BooleanResponse.ProtoReflect.Descriptor instead.

func (*BooleanResponse) GetResult

func (x *BooleanResponse) GetResult() bool

func (*BooleanResponse) ProtoMessage

func (*BooleanResponse) ProtoMessage()

func (*BooleanResponse) ProtoReflect

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

func (*BooleanResponse) Reset

func (x *BooleanResponse) Reset()

func (*BooleanResponse) String

func (x *BooleanResponse) String() string

type ContractorServiceClient

type ContractorServiceClient interface {
	PublishWork(ctx context.Context, in *PublishWorkRequest, opts ...grpc.CallOption) (*PublishWorkResponse, error)
	PurchaseWork(ctx context.Context, in *PurchaseWorkRequest, opts ...grpc.CallOption) (*PurchaseWorkResponse, error)
	MakeAuthor(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	MakeAdmin(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	MakeReviewer(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	Faucet(ctx context.Context, in *FaucetRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	AddParticipant(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	GetStatus(ctx context.Context, in *TxStatusRequest, opts ...grpc.CallOption) (*TxStatusResponse, error)
	GetPaperById(ctx context.Context, in *PaperByIdRequest, opts ...grpc.CallOption) (*PaperByIdResponse, error)
	GetParticipantRole(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*RoleResponse, error)
	AddReviewsBatch(ctx context.Context, in *AddReviewsRequest, opts ...grpc.CallOption) (*TxHashResponse, error)
	IsPaperReadableFor(ctx context.Context, in *IsPaperReadableRequest, opts ...grpc.CallOption) (*BooleanResponse, error)
	PaperExpiresFor(ctx context.Context, in *PaperExpiresForRequest, opts ...grpc.CallOption) (*PaperExpiresForResponse, error)
	CheckNewParticipantAddress(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ContractorServiceClient is the client API for ContractorService 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.

type ContractorServiceServer

ContractorServiceServer is the server API for ContractorService service. All implementations must embed UnimplementedContractorServiceServer for forward compatibility

type FaucetRequest

type FaucetRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 0 - Failed, 1 - Success
	Amount  string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*FaucetRequest) Descriptor deprecated

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

Deprecated: Use FaucetRequest.ProtoReflect.Descriptor instead.

func (*FaucetRequest) GetAddress

func (x *FaucetRequest) GetAddress() string

func (*FaucetRequest) GetAmount

func (x *FaucetRequest) GetAmount() string

func (*FaucetRequest) ProtoMessage

func (*FaucetRequest) ProtoMessage()

func (*FaucetRequest) ProtoReflect

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

func (*FaucetRequest) Reset

func (x *FaucetRequest) Reset()

func (*FaucetRequest) String

func (x *FaucetRequest) String() string

type IsPaperReadableRequest

type IsPaperReadableRequest struct {
	WorkId        string `protobuf:"bytes,1,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	ReaderAddress string `protobuf:"bytes,2,opt,name=reader_address,json=readerAddress,proto3" json:"reader_address,omitempty"`
	// contains filtered or unexported fields
}

func (*IsPaperReadableRequest) Descriptor deprecated

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

Deprecated: Use IsPaperReadableRequest.ProtoReflect.Descriptor instead.

func (*IsPaperReadableRequest) GetReaderAddress

func (x *IsPaperReadableRequest) GetReaderAddress() string

func (*IsPaperReadableRequest) GetWorkId

func (x *IsPaperReadableRequest) GetWorkId() string

func (*IsPaperReadableRequest) ProtoMessage

func (*IsPaperReadableRequest) ProtoMessage()

func (*IsPaperReadableRequest) ProtoReflect

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

func (*IsPaperReadableRequest) Reset

func (x *IsPaperReadableRequest) Reset()

func (*IsPaperReadableRequest) String

func (x *IsPaperReadableRequest) String() string

type PaperByIdRequest

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

func (*PaperByIdRequest) Descriptor deprecated

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

Deprecated: Use PaperByIdRequest.ProtoReflect.Descriptor instead.

func (*PaperByIdRequest) GetId

func (x *PaperByIdRequest) GetId() string

func (*PaperByIdRequest) ProtoMessage

func (*PaperByIdRequest) ProtoMessage()

func (*PaperByIdRequest) ProtoReflect

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

func (*PaperByIdRequest) Reset

func (x *PaperByIdRequest) Reset()

func (*PaperByIdRequest) String

func (x *PaperByIdRequest) String() string

type PaperByIdResponse

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

func (*PaperByIdResponse) Descriptor deprecated

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

Deprecated: Use PaperByIdResponse.ProtoReflect.Descriptor instead.

func (*PaperByIdResponse) GetAddress

func (x *PaperByIdResponse) GetAddress() string

func (*PaperByIdResponse) ProtoMessage

func (*PaperByIdResponse) ProtoMessage()

func (*PaperByIdResponse) ProtoReflect

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

func (*PaperByIdResponse) Reset

func (x *PaperByIdResponse) Reset()

func (*PaperByIdResponse) String

func (x *PaperByIdResponse) String() string

type PaperExpiresForRequest

type PaperExpiresForRequest struct {
	WorkId        string `protobuf:"bytes,1,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	ReaderAddress string `protobuf:"bytes,2,opt,name=reader_address,json=readerAddress,proto3" json:"reader_address,omitempty"`
	// contains filtered or unexported fields
}

func (*PaperExpiresForRequest) Descriptor deprecated

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

Deprecated: Use PaperExpiresForRequest.ProtoReflect.Descriptor instead.

func (*PaperExpiresForRequest) GetReaderAddress

func (x *PaperExpiresForRequest) GetReaderAddress() string

func (*PaperExpiresForRequest) GetWorkId

func (x *PaperExpiresForRequest) GetWorkId() string

func (*PaperExpiresForRequest) ProtoMessage

func (*PaperExpiresForRequest) ProtoMessage()

func (*PaperExpiresForRequest) ProtoReflect

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

func (*PaperExpiresForRequest) Reset

func (x *PaperExpiresForRequest) Reset()

func (*PaperExpiresForRequest) String

func (x *PaperExpiresForRequest) String() string

type PaperExpiresForResponse

type PaperExpiresForResponse struct {
	Expiration uint64 `protobuf:"varint,1,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

func (*PaperExpiresForResponse) Descriptor deprecated

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

Deprecated: Use PaperExpiresForResponse.ProtoReflect.Descriptor instead.

func (*PaperExpiresForResponse) GetExpiration

func (x *PaperExpiresForResponse) GetExpiration() uint64

func (*PaperExpiresForResponse) ProtoMessage

func (*PaperExpiresForResponse) ProtoMessage()

func (*PaperExpiresForResponse) ProtoReflect

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

func (*PaperExpiresForResponse) Reset

func (x *PaperExpiresForResponse) Reset()

func (*PaperExpiresForResponse) String

func (x *PaperExpiresForResponse) String() string

type PublishWorkRequest

type PublishWorkRequest struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Uri     string   `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	WorkId  string   `protobuf:"bytes,3,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	Authors []string `protobuf:"bytes,4,rep,name=authors,proto3" json:"authors,omitempty"`
	Price   string   `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishWorkRequest) Descriptor deprecated

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

Deprecated: Use PublishWorkRequest.ProtoReflect.Descriptor instead.

func (*PublishWorkRequest) GetAuthors

func (x *PublishWorkRequest) GetAuthors() []string

func (*PublishWorkRequest) GetName

func (x *PublishWorkRequest) GetName() string

func (*PublishWorkRequest) GetPrice

func (x *PublishWorkRequest) GetPrice() string

func (*PublishWorkRequest) GetUri

func (x *PublishWorkRequest) GetUri() string

func (*PublishWorkRequest) GetWorkId

func (x *PublishWorkRequest) GetWorkId() string

func (*PublishWorkRequest) ProtoMessage

func (*PublishWorkRequest) ProtoMessage()

func (*PublishWorkRequest) ProtoReflect

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

func (*PublishWorkRequest) Reset

func (x *PublishWorkRequest) Reset()

func (*PublishWorkRequest) String

func (x *PublishWorkRequest) String() string

type PublishWorkResponse

type PublishWorkResponse struct {
	TxHash  string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishWorkResponse) Descriptor deprecated

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

Deprecated: Use PublishWorkResponse.ProtoReflect.Descriptor instead.

func (*PublishWorkResponse) GetAddress

func (x *PublishWorkResponse) GetAddress() string

func (*PublishWorkResponse) GetTxHash

func (x *PublishWorkResponse) GetTxHash() string

func (*PublishWorkResponse) ProtoMessage

func (*PublishWorkResponse) ProtoMessage()

func (*PublishWorkResponse) ProtoReflect

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

func (*PublishWorkResponse) Reset

func (x *PublishWorkResponse) Reset()

func (*PublishWorkResponse) String

func (x *PublishWorkResponse) String() string

type PurchaseWorkRequest

type PurchaseWorkRequest struct {
	WorkId        string `protobuf:"bytes,1,opt,name=work_id,json=workId,proto3" json:"work_id,omitempty"`
	ReaderAddress string `protobuf:"bytes,2,opt,name=reader_address,json=readerAddress,proto3" json:"reader_address,omitempty"`
	Price         string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	AuthorAddress string `protobuf:"bytes,4,opt,name=author_address,json=authorAddress,proto3" json:"author_address,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseWorkRequest) Descriptor deprecated

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

Deprecated: Use PurchaseWorkRequest.ProtoReflect.Descriptor instead.

func (*PurchaseWorkRequest) GetAuthorAddress

func (x *PurchaseWorkRequest) GetAuthorAddress() string

func (*PurchaseWorkRequest) GetPrice

func (x *PurchaseWorkRequest) GetPrice() string

func (*PurchaseWorkRequest) GetReaderAddress

func (x *PurchaseWorkRequest) GetReaderAddress() string

func (*PurchaseWorkRequest) GetWorkId

func (x *PurchaseWorkRequest) GetWorkId() string

func (*PurchaseWorkRequest) ProtoMessage

func (*PurchaseWorkRequest) ProtoMessage()

func (*PurchaseWorkRequest) ProtoReflect

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

func (*PurchaseWorkRequest) Reset

func (x *PurchaseWorkRequest) Reset()

func (*PurchaseWorkRequest) String

func (x *PurchaseWorkRequest) String() string

type PurchaseWorkResponse

type PurchaseWorkResponse struct {
	ReaderTxStatus *TxHashResponse `protobuf:"bytes,1,opt,name=reader_tx_status,json=readerTxStatus,proto3" json:"reader_tx_status,omitempty"`
	AuthorTxStatus *TxHashResponse `protobuf:"bytes,2,opt,name=author_tx_status,json=authorTxStatus,proto3" json:"author_tx_status,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseWorkResponse) Descriptor deprecated

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

Deprecated: Use PurchaseWorkResponse.ProtoReflect.Descriptor instead.

func (*PurchaseWorkResponse) GetAuthorTxStatus

func (x *PurchaseWorkResponse) GetAuthorTxStatus() *TxHashResponse

func (*PurchaseWorkResponse) GetReaderTxStatus

func (x *PurchaseWorkResponse) GetReaderTxStatus() *TxHashResponse

func (*PurchaseWorkResponse) ProtoMessage

func (*PurchaseWorkResponse) ProtoMessage()

func (*PurchaseWorkResponse) ProtoReflect

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

func (*PurchaseWorkResponse) Reset

func (x *PurchaseWorkResponse) Reset()

func (*PurchaseWorkResponse) String

func (x *PurchaseWorkResponse) String() string

type RoleResponse

type RoleResponse struct {
	Role uint64 `protobuf:"varint,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleResponse) Descriptor deprecated

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

Deprecated: Use RoleResponse.ProtoReflect.Descriptor instead.

func (*RoleResponse) GetRole

func (x *RoleResponse) GetRole() uint64

func (*RoleResponse) ProtoMessage

func (*RoleResponse) ProtoMessage()

func (*RoleResponse) ProtoReflect

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

func (*RoleResponse) Reset

func (x *RoleResponse) Reset()

func (*RoleResponse) String

func (x *RoleResponse) String() string

type TxHashResponse

type TxHashResponse struct {
	TxHash   string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"`
	// contains filtered or unexported fields
}

func (*TxHashResponse) Descriptor deprecated

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

Deprecated: Use TxHashResponse.ProtoReflect.Descriptor instead.

func (*TxHashResponse) GetErrorMsg

func (x *TxHashResponse) GetErrorMsg() string

func (*TxHashResponse) GetTxHash

func (x *TxHashResponse) GetTxHash() string

func (*TxHashResponse) ProtoMessage

func (*TxHashResponse) ProtoMessage()

func (*TxHashResponse) ProtoReflect

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

func (*TxHashResponse) Reset

func (x *TxHashResponse) Reset()

func (*TxHashResponse) String

func (x *TxHashResponse) String() string

type TxStatusRequest

type TxStatusRequest struct {
	TxHash  string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ChainId int64  `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TxStatusRequest) Descriptor deprecated

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

Deprecated: Use TxStatusRequest.ProtoReflect.Descriptor instead.

func (*TxStatusRequest) GetChainId

func (x *TxStatusRequest) GetChainId() int64

func (*TxStatusRequest) GetTxHash

func (x *TxStatusRequest) GetTxHash() string

func (*TxStatusRequest) ProtoMessage

func (*TxStatusRequest) ProtoMessage()

func (*TxStatusRequest) ProtoReflect

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

func (*TxStatusRequest) Reset

func (x *TxStatusRequest) Reset()

func (*TxStatusRequest) String

func (x *TxStatusRequest) String() string

type TxStatusResponse

type TxStatusResponse struct {
	Status       bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 0 - Failed, 1 - Success
	RevertReason string `protobuf:"bytes,2,opt,name=revert_reason,json=revertReason,proto3" json:"revert_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*TxStatusResponse) Descriptor deprecated

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

Deprecated: Use TxStatusResponse.ProtoReflect.Descriptor instead.

func (*TxStatusResponse) GetRevertReason

func (x *TxStatusResponse) GetRevertReason() string

func (*TxStatusResponse) GetStatus

func (x *TxStatusResponse) GetStatus() bool

func (*TxStatusResponse) ProtoMessage

func (*TxStatusResponse) ProtoMessage()

func (*TxStatusResponse) ProtoReflect

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

func (*TxStatusResponse) Reset

func (x *TxStatusResponse) Reset()

func (*TxStatusResponse) String

func (x *TxStatusResponse) String() string

type UnimplementedContractorServiceServer

type UnimplementedContractorServiceServer struct {
}

UnimplementedContractorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedContractorServiceServer) AddParticipant

func (UnimplementedContractorServiceServer) AddReviewsBatch

func (UnimplementedContractorServiceServer) CheckNewParticipantAddress

func (UnimplementedContractorServiceServer) Faucet

func (UnimplementedContractorServiceServer) GetPaperById

func (UnimplementedContractorServiceServer) GetParticipantRole

func (UnimplementedContractorServiceServer) GetStatus

func (UnimplementedContractorServiceServer) IsPaperReadableFor

func (UnimplementedContractorServiceServer) MakeAdmin

func (UnimplementedContractorServiceServer) MakeAuthor

func (UnimplementedContractorServiceServer) MakeReviewer

func (UnimplementedContractorServiceServer) PaperExpiresFor

func (UnimplementedContractorServiceServer) PublishWork

func (UnimplementedContractorServiceServer) PurchaseWork

func (UnimplementedContractorServiceServer) VerifySignature

type UnsafeContractorServiceServer

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

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

type VerifySignatureRequest

type VerifySignatureRequest struct {
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifySignatureRequest) Descriptor deprecated

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

Deprecated: Use VerifySignatureRequest.ProtoReflect.Descriptor instead.

func (*VerifySignatureRequest) GetAddress

func (x *VerifySignatureRequest) GetAddress() string

func (*VerifySignatureRequest) GetMessage

func (x *VerifySignatureRequest) GetMessage() string

func (*VerifySignatureRequest) GetSignature

func (x *VerifySignatureRequest) GetSignature() string

func (*VerifySignatureRequest) ProtoMessage

func (*VerifySignatureRequest) ProtoMessage()

func (*VerifySignatureRequest) ProtoReflect

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

func (*VerifySignatureRequest) Reset

func (x *VerifySignatureRequest) Reset()

func (*VerifySignatureRequest) String

func (x *VerifySignatureRequest) String() string

Jump to

Keyboard shortcuts

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