v1

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "TYPE_BUY",
		1: "TYPE_SELL",
	}
	Type_value = map[string]int32{
		"TYPE_BUY":  0,
		"TYPE_SELL": 1,
	}
)

Enum value maps for Type.

View Source
var (
	PageDir_name = map[int32]string{
		0: "PAGE_DIR_ASC_FORWARD",
		1: "PAGE_DIR_BACKWARD",
	}
	PageDir_value = map[string]int32{
		"PAGE_DIR_ASC_FORWARD": 0,
		"PAGE_DIR_BACKWARD":    1,
	}
)

Enum value maps for PageDir.

View Source
var (
	ExchangeProposal_State_name = map[int32]string{
		0: "STATE_CREATED",
		1: "STATE_ACCEPTED",
		2: "STATE_PROCESSING",
		3: "STATE_FINALISED",
		4: "STATE_REJECTED",
		5: "STATE_CANCELED",
		6: "STATE_FAILED",
	}
	ExchangeProposal_State_value = map[string]int32{
		"STATE_CREATED":    0,
		"STATE_ACCEPTED":   1,
		"STATE_PROCESSING": 2,
		"STATE_FINALISED":  3,
		"STATE_REJECTED":   4,
		"STATE_CANCELED":   5,
		"STATE_FAILED":     6,
	}
)

Enum value maps for ExchangeProposal_State.

View Source
var File_seeds_api_seeds_v1_seeds_proto protoreflect.FileDescriptor
View Source
var SeedsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seeds.v1.SeedsService",
	HandlerType: (*SeedsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InitCircleSeeds",
			Handler:    _SeedsService_InitCircleSeeds_Handler,
		},
		{
			MethodName: "ResetCircleSeeds",
			Handler:    _SeedsService_ResetCircleSeeds_Handler,
		},
		{
			MethodName: "MintCircleSeeds",
			Handler:    _SeedsService_MintCircleSeeds_Handler,
		},
		{
			MethodName: "GetCircleSeeds",
			Handler:    _SeedsService_GetCircleSeeds_Handler,
		},
		{
			MethodName: "InitUserMelons",
			Handler:    _SeedsService_InitUserMelons_Handler,
		},
		{
			MethodName: "MintUserMelons",
			Handler:    _SeedsService_MintUserMelons_Handler,
		},
		{
			MethodName: "GetUserMelons",
			Handler:    _SeedsService_GetUserMelons_Handler,
		},
		{
			MethodName: "GetUserSeeds",
			Handler:    _SeedsService_GetUserSeeds_Handler,
		},
		{
			MethodName: "CreateExchange",
			Handler:    _SeedsService_CreateExchange_Handler,
		},
		{
			MethodName: "AcceptExchange",
			Handler:    _SeedsService_AcceptExchange_Handler,
		},
		{
			MethodName: "RejectExchange",
			Handler:    _SeedsService_RejectExchange_Handler,
		},
		{
			MethodName: "CancelExchange",
			Handler:    _SeedsService_CancelExchange_Handler,
		},
		{
			MethodName: "GetExchanges",
			Handler:    _SeedsService_GetExchanges_Handler,
		},
		{
			MethodName: "TransferMelons",
			Handler:    _SeedsService_TransferMelons_Handler,
		},
		{
			MethodName: "TransferSeeds",
			Handler:    _SeedsService_TransferSeeds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seeds-api/seeds/v1/seeds.proto",
}

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

Functions

func RegisterSeedsServiceServer

func RegisterSeedsServiceServer(s grpc.ServiceRegistrar, srv SeedsServiceServer)

Types

type AcceptExchangeRequest

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

AcceptExchangeRequest is the request for the AcceptExchange method

func (*AcceptExchangeRequest) Descriptor deprecated

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

Deprecated: Use AcceptExchangeRequest.ProtoReflect.Descriptor instead.

func (*AcceptExchangeRequest) GetId

func (x *AcceptExchangeRequest) GetId() string

func (*AcceptExchangeRequest) GetUserId

func (x *AcceptExchangeRequest) GetUserId() string

func (*AcceptExchangeRequest) ProtoMessage

func (*AcceptExchangeRequest) ProtoMessage()

func (*AcceptExchangeRequest) ProtoReflect

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

func (*AcceptExchangeRequest) Reset

func (x *AcceptExchangeRequest) Reset()

func (*AcceptExchangeRequest) String

func (x *AcceptExchangeRequest) String() string

type CancelExchangeRequest

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

CancelExchangeRequest is the request for the CancelExchange method

func (*CancelExchangeRequest) Descriptor deprecated

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

Deprecated: Use CancelExchangeRequest.ProtoReflect.Descriptor instead.

func (*CancelExchangeRequest) GetId

func (x *CancelExchangeRequest) GetId() string

func (*CancelExchangeRequest) GetUserId

func (x *CancelExchangeRequest) GetUserId() string

func (*CancelExchangeRequest) ProtoMessage

func (*CancelExchangeRequest) ProtoMessage()

func (*CancelExchangeRequest) ProtoReflect

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

func (*CancelExchangeRequest) Reset

func (x *CancelExchangeRequest) Reset()

func (*CancelExchangeRequest) String

func (x *CancelExchangeRequest) String() string

type CircleSeedHolders

type CircleSeedHolders struct {
	Seeds    []*UserSeeds `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"`
	PageInfo *PageInfo    `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

CircleSeedHolders is the seed holders for a circle

func (*CircleSeedHolders) Descriptor deprecated

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

Deprecated: Use CircleSeedHolders.ProtoReflect.Descriptor instead.

func (*CircleSeedHolders) GetPageInfo

func (x *CircleSeedHolders) GetPageInfo() *PageInfo

func (*CircleSeedHolders) GetSeeds

func (x *CircleSeedHolders) GetSeeds() []*UserSeeds

func (*CircleSeedHolders) ProtoMessage

func (*CircleSeedHolders) ProtoMessage()

func (*CircleSeedHolders) ProtoReflect

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

func (*CircleSeedHolders) Reset

func (x *CircleSeedHolders) Reset()

func (*CircleSeedHolders) String

func (x *CircleSeedHolders) String() string

type CircleSeeds

type CircleSeeds struct {
	CircleId        string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	AmountAvailable int64  `protobuf:"varint,2,opt,name=amount_available,json=amountAvailable,proto3" json:"amount_available,omitempty"`
	AmountLocked    int64  `protobuf:"varint,3,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,4,opt,name=amount_total,json=amountTotal,proto3" json:"amount_total,omitempty"`
	// contains filtered or unexported fields
}

CircleSeeds is the seeds for a circle

func (*CircleSeeds) Descriptor deprecated

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

Deprecated: Use CircleSeeds.ProtoReflect.Descriptor instead.

func (*CircleSeeds) GetAmountAvailable

func (x *CircleSeeds) GetAmountAvailable() int64

func (*CircleSeeds) GetAmountLocked

func (x *CircleSeeds) GetAmountLocked() int64

func (*CircleSeeds) GetAmountTotal

func (x *CircleSeeds) GetAmountTotal() int64

func (*CircleSeeds) GetCircleId

func (x *CircleSeeds) GetCircleId() string

func (*CircleSeeds) ProtoMessage

func (*CircleSeeds) ProtoMessage()

func (*CircleSeeds) ProtoReflect

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

func (*CircleSeeds) Reset

func (x *CircleSeeds) Reset()

func (*CircleSeeds) String

func (x *CircleSeeds) String() string

type CreateExchangeRequest

type CreateExchangeRequest struct {
	FromUserId string `protobuf:"bytes,1,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"`
	// TODO possibly optional or is set once proposal has been accepted
	ToUserId string  `protobuf:"bytes,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	Type     Type    `protobuf:"varint,3,opt,name=type,proto3,enum=seeds.v1.Type" json:"type,omitempty"`
	Seeds    *Seeds  `protobuf:"bytes,4,opt,name=seeds,proto3" json:"seeds,omitempty"`
	Melons   *Melons `protobuf:"bytes,5,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

CreateExchangeRequest is the request for the CreateExchange method

func (*CreateExchangeRequest) Descriptor deprecated

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

Deprecated: Use CreateExchangeRequest.ProtoReflect.Descriptor instead.

func (*CreateExchangeRequest) GetFromUserId

func (x *CreateExchangeRequest) GetFromUserId() string

func (*CreateExchangeRequest) GetMelons

func (x *CreateExchangeRequest) GetMelons() *Melons

func (*CreateExchangeRequest) GetSeeds

func (x *CreateExchangeRequest) GetSeeds() *Seeds

func (*CreateExchangeRequest) GetToUserId

func (x *CreateExchangeRequest) GetToUserId() string

func (*CreateExchangeRequest) GetType

func (x *CreateExchangeRequest) GetType() Type

func (*CreateExchangeRequest) ProtoMessage

func (*CreateExchangeRequest) ProtoMessage()

func (*CreateExchangeRequest) ProtoReflect

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

func (*CreateExchangeRequest) Reset

func (x *CreateExchangeRequest) Reset()

func (*CreateExchangeRequest) String

func (x *CreateExchangeRequest) String() string

type CreateExchangeResponse

type CreateExchangeResponse struct {
	Proposal *ExchangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

CreateExchangeResponse is the response for the CreateExchange method

func (*CreateExchangeResponse) Descriptor deprecated

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

Deprecated: Use CreateExchangeResponse.ProtoReflect.Descriptor instead.

func (*CreateExchangeResponse) GetProposal

func (x *CreateExchangeResponse) GetProposal() *ExchangeProposal

func (*CreateExchangeResponse) ProtoMessage

func (*CreateExchangeResponse) ProtoMessage()

func (*CreateExchangeResponse) ProtoReflect

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

func (*CreateExchangeResponse) Reset

func (x *CreateExchangeResponse) Reset()

func (*CreateExchangeResponse) String

func (x *CreateExchangeResponse) String() string

type ExchangeProposal

type ExchangeProposal struct {
	Id         string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FromUserId string                 `protobuf:"bytes,2,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"`
	ToUserId   string                 `protobuf:"bytes,3,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	Type       Type                   `protobuf:"varint,4,opt,name=type,proto3,enum=seeds.v1.Type" json:"type,omitempty"`
	Seeds      *Seeds                 `protobuf:"bytes,5,opt,name=seeds,proto3" json:"seeds,omitempty"`
	Melons     *Melons                `protobuf:"bytes,6,opt,name=melons,proto3" json:"melons,omitempty"`
	State      ExchangeProposal_State `protobuf:"varint,7,opt,name=state,proto3,enum=seeds.v1.ExchangeProposal_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

ExchangeProposal is the exchange proposal

func (*ExchangeProposal) Descriptor deprecated

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

Deprecated: Use ExchangeProposal.ProtoReflect.Descriptor instead.

func (*ExchangeProposal) GetFromUserId

func (x *ExchangeProposal) GetFromUserId() string

func (*ExchangeProposal) GetId

func (x *ExchangeProposal) GetId() string

func (*ExchangeProposal) GetMelons

func (x *ExchangeProposal) GetMelons() *Melons

func (*ExchangeProposal) GetSeeds

func (x *ExchangeProposal) GetSeeds() *Seeds

func (*ExchangeProposal) GetState

func (*ExchangeProposal) GetToUserId

func (x *ExchangeProposal) GetToUserId() string

func (*ExchangeProposal) GetType

func (x *ExchangeProposal) GetType() Type

func (*ExchangeProposal) ProtoMessage

func (*ExchangeProposal) ProtoMessage()

func (*ExchangeProposal) ProtoReflect

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

func (*ExchangeProposal) Reset

func (x *ExchangeProposal) Reset()

func (*ExchangeProposal) String

func (x *ExchangeProposal) String() string

type ExchangeProposal_State

type ExchangeProposal_State int32

buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

const (
	ExchangeProposal_STATE_CREATED    ExchangeProposal_State = 0
	ExchangeProposal_STATE_ACCEPTED   ExchangeProposal_State = 1
	ExchangeProposal_STATE_PROCESSING ExchangeProposal_State = 2
	ExchangeProposal_STATE_FINALISED  ExchangeProposal_State = 3
	ExchangeProposal_STATE_REJECTED   ExchangeProposal_State = 4
	ExchangeProposal_STATE_CANCELED   ExchangeProposal_State = 5
	ExchangeProposal_STATE_FAILED     ExchangeProposal_State = 6
)

func (ExchangeProposal_State) Descriptor

func (ExchangeProposal_State) Enum

func (ExchangeProposal_State) EnumDescriptor deprecated

func (ExchangeProposal_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExchangeProposal_State.Descriptor instead.

func (ExchangeProposal_State) Number

func (ExchangeProposal_State) String

func (x ExchangeProposal_State) String() string

func (ExchangeProposal_State) Type

type GetCircleSeedsRequest

type GetCircleSeedsRequest struct {
	CircleId   string      `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	GetHolders *bool       `protobuf:"varint,2,opt,name=get_holders,json=getHolders,proto3,oneof" json:"get_holders,omitempty"`
	Cursor     *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

GetCircleSeedsRequest is the request for the GetCircleSeeds method

func (*GetCircleSeedsRequest) Descriptor deprecated

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

Deprecated: Use GetCircleSeedsRequest.ProtoReflect.Descriptor instead.

func (*GetCircleSeedsRequest) GetCircleId

func (x *GetCircleSeedsRequest) GetCircleId() string

func (*GetCircleSeedsRequest) GetCursor

func (x *GetCircleSeedsRequest) GetCursor() *PageCursor

func (*GetCircleSeedsRequest) GetGetHolders

func (x *GetCircleSeedsRequest) GetGetHolders() bool

func (*GetCircleSeedsRequest) ProtoMessage

func (*GetCircleSeedsRequest) ProtoMessage()

func (*GetCircleSeedsRequest) ProtoReflect

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

func (*GetCircleSeedsRequest) Reset

func (x *GetCircleSeedsRequest) Reset()

func (*GetCircleSeedsRequest) String

func (x *GetCircleSeedsRequest) String() string

type GetCircleSeedsResponse

type GetCircleSeedsResponse struct {
	TotalAmount int64              `protobuf:"varint,1,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	Holders     *CircleSeedHolders `protobuf:"bytes,2,opt,name=holders,proto3,oneof" json:"holders,omitempty"`
	// contains filtered or unexported fields
}

GetCircleSeedsResponse is the response for the GetCircleSeeds method

func (*GetCircleSeedsResponse) Descriptor deprecated

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

Deprecated: Use GetCircleSeedsResponse.ProtoReflect.Descriptor instead.

func (*GetCircleSeedsResponse) GetHolders

func (x *GetCircleSeedsResponse) GetHolders() *CircleSeedHolders

func (*GetCircleSeedsResponse) GetTotalAmount

func (x *GetCircleSeedsResponse) GetTotalAmount() int64

func (*GetCircleSeedsResponse) ProtoMessage

func (*GetCircleSeedsResponse) ProtoMessage()

func (*GetCircleSeedsResponse) ProtoReflect

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

func (*GetCircleSeedsResponse) Reset

func (x *GetCircleSeedsResponse) Reset()

func (*GetCircleSeedsResponse) String

func (x *GetCircleSeedsResponse) String() string

type GetExchangesRequest

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

GetExchangesRequest is the request for the GetExchanges method

func (*GetExchangesRequest) Descriptor deprecated

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

Deprecated: Use GetExchangesRequest.ProtoReflect.Descriptor instead.

func (*GetExchangesRequest) GetId

func (x *GetExchangesRequest) GetId() string

func (*GetExchangesRequest) ProtoMessage

func (*GetExchangesRequest) ProtoMessage()

func (*GetExchangesRequest) ProtoReflect

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

func (*GetExchangesRequest) Reset

func (x *GetExchangesRequest) Reset()

func (*GetExchangesRequest) String

func (x *GetExchangesRequest) String() string

type GetExchangesResponse

type GetExchangesResponse struct {
	Proposal *ExchangeProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

GetExchangesResponse is the response for the GetExchanges method

func (*GetExchangesResponse) Descriptor deprecated

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

Deprecated: Use GetExchangesResponse.ProtoReflect.Descriptor instead.

func (*GetExchangesResponse) GetProposal

func (x *GetExchangesResponse) GetProposal() *ExchangeProposal

func (*GetExchangesResponse) ProtoMessage

func (*GetExchangesResponse) ProtoMessage()

func (*GetExchangesResponse) ProtoReflect

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

func (*GetExchangesResponse) Reset

func (x *GetExchangesResponse) Reset()

func (*GetExchangesResponse) String

func (x *GetExchangesResponse) String() string

type GetUserMelonsRequest

type GetUserMelonsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

GetUserMelonsRequest is the request for the GetUserMelons method

func (*GetUserMelonsRequest) Descriptor deprecated

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

Deprecated: Use GetUserMelonsRequest.ProtoReflect.Descriptor instead.

func (*GetUserMelonsRequest) GetUserId

func (x *GetUserMelonsRequest) GetUserId() string

func (*GetUserMelonsRequest) ProtoMessage

func (*GetUserMelonsRequest) ProtoMessage()

func (*GetUserMelonsRequest) ProtoReflect

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

func (*GetUserMelonsRequest) Reset

func (x *GetUserMelonsRequest) Reset()

func (*GetUserMelonsRequest) String

func (x *GetUserMelonsRequest) String() string

type GetUserMelonsResponse

type GetUserMelonsResponse struct {
	Melons *UserMelons `protobuf:"bytes,1,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

GetUserMelonsResponse is the response for the GetUserMelons method

func (*GetUserMelonsResponse) Descriptor deprecated

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

Deprecated: Use GetUserMelonsResponse.ProtoReflect.Descriptor instead.

func (*GetUserMelonsResponse) GetMelons

func (x *GetUserMelonsResponse) GetMelons() *UserMelons

func (*GetUserMelonsResponse) ProtoMessage

func (*GetUserMelonsResponse) ProtoMessage()

func (*GetUserMelonsResponse) ProtoReflect

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

func (*GetUserMelonsResponse) Reset

func (x *GetUserMelonsResponse) Reset()

func (*GetUserMelonsResponse) String

func (x *GetUserMelonsResponse) String() string

type GetUserSeedsRequest

type GetUserSeedsRequest struct {
	UserId   string      `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CircleId *string     `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3,oneof" json:"circle_id,omitempty"`
	Cursor   *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

GetUserSeedsRequest is the request for the GetUserSeeds method

func (*GetUserSeedsRequest) Descriptor deprecated

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

Deprecated: Use GetUserSeedsRequest.ProtoReflect.Descriptor instead.

func (*GetUserSeedsRequest) GetCircleId

func (x *GetUserSeedsRequest) GetCircleId() string

func (*GetUserSeedsRequest) GetCursor

func (x *GetUserSeedsRequest) GetCursor() *PageCursor

func (*GetUserSeedsRequest) GetUserId

func (x *GetUserSeedsRequest) GetUserId() string

func (*GetUserSeedsRequest) ProtoMessage

func (*GetUserSeedsRequest) ProtoMessage()

func (*GetUserSeedsRequest) ProtoReflect

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

func (*GetUserSeedsRequest) Reset

func (x *GetUserSeedsRequest) Reset()

func (*GetUserSeedsRequest) String

func (x *GetUserSeedsRequest) String() string

type GetUserSeedsResponse

type GetUserSeedsResponse struct {
	Seeds    []*UserSeeds `protobuf:"bytes,1,rep,name=seeds,proto3" json:"seeds,omitempty"`
	PageInfo *PageInfo    `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

GetUserSeedsResponse is the response for the GetUserSeeds method

func (*GetUserSeedsResponse) Descriptor deprecated

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

Deprecated: Use GetUserSeedsResponse.ProtoReflect.Descriptor instead.

func (*GetUserSeedsResponse) GetPageInfo

func (x *GetUserSeedsResponse) GetPageInfo() *PageInfo

func (*GetUserSeedsResponse) GetSeeds

func (x *GetUserSeedsResponse) GetSeeds() []*UserSeeds

func (*GetUserSeedsResponse) ProtoMessage

func (*GetUserSeedsResponse) ProtoMessage()

func (*GetUserSeedsResponse) ProtoReflect

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

func (*GetUserSeedsResponse) Reset

func (x *GetUserSeedsResponse) Reset()

func (*GetUserSeedsResponse) String

func (x *GetUserSeedsResponse) String() string

type InitCircleSeedsRequest

type InitCircleSeedsRequest struct {
	CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

InitCircleSeedsRequest is the request for the InitCircleSeeds method

func (*InitCircleSeedsRequest) Descriptor deprecated

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

Deprecated: Use InitCircleSeedsRequest.ProtoReflect.Descriptor instead.

func (*InitCircleSeedsRequest) GetCircleId

func (x *InitCircleSeedsRequest) GetCircleId() string

func (*InitCircleSeedsRequest) GetUserId

func (x *InitCircleSeedsRequest) GetUserId() string

func (*InitCircleSeedsRequest) ProtoMessage

func (*InitCircleSeedsRequest) ProtoMessage()

func (*InitCircleSeedsRequest) ProtoReflect

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

func (*InitCircleSeedsRequest) Reset

func (x *InitCircleSeedsRequest) Reset()

func (*InitCircleSeedsRequest) String

func (x *InitCircleSeedsRequest) String() string

type InitCircleSeedsResponse

type InitCircleSeedsResponse struct {
	Seeds *CircleSeeds `protobuf:"bytes,1,opt,name=seeds,proto3" json:"seeds,omitempty"`
	// contains filtered or unexported fields
}

InitCircleSeedsResponse is the response for the InitCircleSeeds method

func (*InitCircleSeedsResponse) Descriptor deprecated

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

Deprecated: Use InitCircleSeedsResponse.ProtoReflect.Descriptor instead.

func (*InitCircleSeedsResponse) GetSeeds

func (x *InitCircleSeedsResponse) GetSeeds() *CircleSeeds

func (*InitCircleSeedsResponse) ProtoMessage

func (*InitCircleSeedsResponse) ProtoMessage()

func (*InitCircleSeedsResponse) ProtoReflect

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

func (*InitCircleSeedsResponse) Reset

func (x *InitCircleSeedsResponse) Reset()

func (*InitCircleSeedsResponse) String

func (x *InitCircleSeedsResponse) String() string

type InitUserMelonsRequest

type InitUserMelonsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

InitUserMelonsRequest is the request for the InitUserMelons method

func (*InitUserMelonsRequest) Descriptor deprecated

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

Deprecated: Use InitUserMelonsRequest.ProtoReflect.Descriptor instead.

func (*InitUserMelonsRequest) GetUserId

func (x *InitUserMelonsRequest) GetUserId() string

func (*InitUserMelonsRequest) ProtoMessage

func (*InitUserMelonsRequest) ProtoMessage()

func (*InitUserMelonsRequest) ProtoReflect

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

func (*InitUserMelonsRequest) Reset

func (x *InitUserMelonsRequest) Reset()

func (*InitUserMelonsRequest) String

func (x *InitUserMelonsRequest) String() string

type InitUserMelonsResponse

type InitUserMelonsResponse struct {
	Melons *UserMelons `protobuf:"bytes,1,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

InitUserMelonsResponse is the response for the InitUserMelons method

func (*InitUserMelonsResponse) Descriptor deprecated

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

Deprecated: Use InitUserMelonsResponse.ProtoReflect.Descriptor instead.

func (*InitUserMelonsResponse) GetMelons

func (x *InitUserMelonsResponse) GetMelons() *UserMelons

func (*InitUserMelonsResponse) ProtoMessage

func (*InitUserMelonsResponse) ProtoMessage()

func (*InitUserMelonsResponse) ProtoReflect

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

func (*InitUserMelonsResponse) Reset

func (x *InitUserMelonsResponse) Reset()

func (*InitUserMelonsResponse) String

func (x *InitUserMelonsResponse) String() string

type Melons

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

Melons is the melons

func (*Melons) Descriptor deprecated

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

Deprecated: Use Melons.ProtoReflect.Descriptor instead.

func (*Melons) GetAmount

func (x *Melons) GetAmount() int64

func (*Melons) ProtoMessage

func (*Melons) ProtoMessage()

func (*Melons) ProtoReflect

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

func (*Melons) Reset

func (x *Melons) Reset()

func (*Melons) String

func (x *Melons) String() string

type MintCircleSeedsRequest

type MintCircleSeedsRequest struct {
	CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Amount   int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MintCircleSeedsRequest is the request for the MintCircleSeeds method

func (*MintCircleSeedsRequest) Descriptor deprecated

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

Deprecated: Use MintCircleSeedsRequest.ProtoReflect.Descriptor instead.

func (*MintCircleSeedsRequest) GetAmount

func (x *MintCircleSeedsRequest) GetAmount() int64

func (*MintCircleSeedsRequest) GetCircleId

func (x *MintCircleSeedsRequest) GetCircleId() string

func (*MintCircleSeedsRequest) GetUserId

func (x *MintCircleSeedsRequest) GetUserId() string

func (*MintCircleSeedsRequest) ProtoMessage

func (*MintCircleSeedsRequest) ProtoMessage()

func (*MintCircleSeedsRequest) ProtoReflect

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

func (*MintCircleSeedsRequest) Reset

func (x *MintCircleSeedsRequest) Reset()

func (*MintCircleSeedsRequest) String

func (x *MintCircleSeedsRequest) String() string

type MintCircleSeedsResponse

type MintCircleSeedsResponse struct {
	CircleSeeds *CircleSeeds `protobuf:"bytes,1,opt,name=circle_seeds,json=circleSeeds,proto3" json:"circle_seeds,omitempty"`
	UserSeeds   *UserSeeds   `protobuf:"bytes,2,opt,name=user_seeds,json=userSeeds,proto3" json:"user_seeds,omitempty"`
	// contains filtered or unexported fields
}

MintCircleSeedsResponse is the response for the MintCircleSeeds method

func (*MintCircleSeedsResponse) Descriptor deprecated

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

Deprecated: Use MintCircleSeedsResponse.ProtoReflect.Descriptor instead.

func (*MintCircleSeedsResponse) GetCircleSeeds

func (x *MintCircleSeedsResponse) GetCircleSeeds() *CircleSeeds

func (*MintCircleSeedsResponse) GetUserSeeds

func (x *MintCircleSeedsResponse) GetUserSeeds() *UserSeeds

func (*MintCircleSeedsResponse) ProtoMessage

func (*MintCircleSeedsResponse) ProtoMessage()

func (*MintCircleSeedsResponse) ProtoReflect

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

func (*MintCircleSeedsResponse) Reset

func (x *MintCircleSeedsResponse) Reset()

func (*MintCircleSeedsResponse) String

func (x *MintCircleSeedsResponse) String() string

type MintUserMelonsRequest

type MintUserMelonsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MintUserMelonsRequest is the request for the MintUserMelons method

func (*MintUserMelonsRequest) Descriptor deprecated

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

Deprecated: Use MintUserMelonsRequest.ProtoReflect.Descriptor instead.

func (*MintUserMelonsRequest) GetAmount

func (x *MintUserMelonsRequest) GetAmount() int64

func (*MintUserMelonsRequest) GetUserId

func (x *MintUserMelonsRequest) GetUserId() string

func (*MintUserMelonsRequest) ProtoMessage

func (*MintUserMelonsRequest) ProtoMessage()

func (*MintUserMelonsRequest) ProtoReflect

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

func (*MintUserMelonsRequest) Reset

func (x *MintUserMelonsRequest) Reset()

func (*MintUserMelonsRequest) String

func (x *MintUserMelonsRequest) String() string

type MintUserMelonsResponse

type MintUserMelonsResponse struct {
	Melons *UserMelons `protobuf:"bytes,1,opt,name=melons,proto3" json:"melons,omitempty"`
	// contains filtered or unexported fields
}

MintUserMelonsResponse is the response for the MintUserMelons method

func (*MintUserMelonsResponse) Descriptor deprecated

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

Deprecated: Use MintUserMelonsResponse.ProtoReflect.Descriptor instead.

func (*MintUserMelonsResponse) GetMelons

func (x *MintUserMelonsResponse) GetMelons() *UserMelons

func (*MintUserMelonsResponse) ProtoMessage

func (*MintUserMelonsResponse) ProtoMessage()

func (*MintUserMelonsResponse) ProtoReflect

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

func (*MintUserMelonsResponse) Reset

func (x *MintUserMelonsResponse) Reset()

func (*MintUserMelonsResponse) String

func (x *MintUserMelonsResponse) String() string

type PageCursor

type PageCursor struct {
	CursorId string  `protobuf:"bytes,1,opt,name=cursor_id,json=cursorId,proto3" json:"cursor_id,omitempty"`
	Limit    uint32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Dir      PageDir `protobuf:"varint,3,opt,name=dir,proto3,enum=seeds.v1.PageDir" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

PageCursor is the cursor for a page

func (*PageCursor) Descriptor deprecated

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

Deprecated: Use PageCursor.ProtoReflect.Descriptor instead.

func (*PageCursor) GetCursorId

func (x *PageCursor) GetCursorId() string

func (*PageCursor) GetDir

func (x *PageCursor) GetDir() PageDir

func (*PageCursor) GetLimit

func (x *PageCursor) GetLimit() uint32

func (*PageCursor) ProtoMessage

func (*PageCursor) ProtoMessage()

func (*PageCursor) ProtoReflect

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

func (*PageCursor) Reset

func (x *PageCursor) Reset()

func (*PageCursor) String

func (x *PageCursor) String() string

type PageDir

type PageDir int32

buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

const (
	PageDir_PAGE_DIR_ASC_FORWARD PageDir = 0
	PageDir_PAGE_DIR_BACKWARD    PageDir = 1
)

func (PageDir) Descriptor

func (PageDir) Descriptor() protoreflect.EnumDescriptor

func (PageDir) Enum

func (x PageDir) Enum() *PageDir

func (PageDir) EnumDescriptor deprecated

func (PageDir) EnumDescriptor() ([]byte, []int)

Deprecated: Use PageDir.Descriptor instead.

func (PageDir) Number

func (x PageDir) Number() protoreflect.EnumNumber

func (PageDir) String

func (x PageDir) String() string

func (PageDir) Type

func (PageDir) Type() protoreflect.EnumType

type PageInfo

type PageInfo struct {
	FirstId *string `protobuf:"bytes,1,opt,name=first_id,json=firstId,proto3,oneof" json:"first_id,omitempty"`
	LastId  *string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3,oneof" json:"last_id,omitempty"`
	HasPrev bool    `protobuf:"varint,3,opt,name=has_prev,json=hasPrev,proto3" json:"has_prev,omitempty"`
	HasNext bool    `protobuf:"varint,4,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
	Length  uint32  `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

PageInfo is the page info

func (*PageInfo) Descriptor deprecated

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetFirstId

func (x *PageInfo) GetFirstId() string

func (*PageInfo) GetHasNext

func (x *PageInfo) GetHasNext() bool

func (*PageInfo) GetHasPrev

func (x *PageInfo) GetHasPrev() bool

func (*PageInfo) GetLastId

func (x *PageInfo) GetLastId() string

func (*PageInfo) GetLength

func (x *PageInfo) GetLength() uint32

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) ProtoReflect

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

func (*PageInfo) Reset

func (x *PageInfo) Reset()

func (*PageInfo) String

func (x *PageInfo) String() string

type RejectExchangeRequest

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

RejectExchangeRequest is the request for the RejectExchange method

func (*RejectExchangeRequest) Descriptor deprecated

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

Deprecated: Use RejectExchangeRequest.ProtoReflect.Descriptor instead.

func (*RejectExchangeRequest) GetId

func (x *RejectExchangeRequest) GetId() string

func (*RejectExchangeRequest) GetUserId

func (x *RejectExchangeRequest) GetUserId() string

func (*RejectExchangeRequest) ProtoMessage

func (*RejectExchangeRequest) ProtoMessage()

func (*RejectExchangeRequest) ProtoReflect

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

func (*RejectExchangeRequest) Reset

func (x *RejectExchangeRequest) Reset()

func (*RejectExchangeRequest) String

func (x *RejectExchangeRequest) String() string

type ResetCircleSeedsRequest

type ResetCircleSeedsRequest struct {
	CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	// contains filtered or unexported fields
}

ResetCircleSeedsRequest is the request for the ResetCircleSeeds method

func (*ResetCircleSeedsRequest) Descriptor deprecated

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

Deprecated: Use ResetCircleSeedsRequest.ProtoReflect.Descriptor instead.

func (*ResetCircleSeedsRequest) GetCircleId

func (x *ResetCircleSeedsRequest) GetCircleId() string

func (*ResetCircleSeedsRequest) ProtoMessage

func (*ResetCircleSeedsRequest) ProtoMessage()

func (*ResetCircleSeedsRequest) ProtoReflect

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

func (*ResetCircleSeedsRequest) Reset

func (x *ResetCircleSeedsRequest) Reset()

func (*ResetCircleSeedsRequest) String

func (x *ResetCircleSeedsRequest) String() string

type Seeds

type Seeds struct {
	CircleId string `protobuf:"bytes,1,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	Amount   int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Seeds is the seeds

func (*Seeds) Descriptor deprecated

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

Deprecated: Use Seeds.ProtoReflect.Descriptor instead.

func (*Seeds) GetAmount

func (x *Seeds) GetAmount() int64

func (*Seeds) GetCircleId

func (x *Seeds) GetCircleId() string

func (*Seeds) ProtoMessage

func (*Seeds) ProtoMessage()

func (*Seeds) ProtoReflect

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

func (*Seeds) Reset

func (x *Seeds) Reset()

func (*Seeds) String

func (x *Seeds) String() string

type SeedsServiceAcceptExchangeResponse

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

SeedsServiceAcceptExchangeResponse is the response for the AcceptExchange method

func (*SeedsServiceAcceptExchangeResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceAcceptExchangeResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceAcceptExchangeResponse) ProtoMessage

func (*SeedsServiceAcceptExchangeResponse) ProtoMessage()

func (*SeedsServiceAcceptExchangeResponse) ProtoReflect

func (*SeedsServiceAcceptExchangeResponse) Reset

func (*SeedsServiceAcceptExchangeResponse) String

type SeedsServiceCancelExchangeResponse

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

SeedsServiceCancelExchangeResponse is the response for the CancelExchange method

func (*SeedsServiceCancelExchangeResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceCancelExchangeResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceCancelExchangeResponse) ProtoMessage

func (*SeedsServiceCancelExchangeResponse) ProtoMessage()

func (*SeedsServiceCancelExchangeResponse) ProtoReflect

func (*SeedsServiceCancelExchangeResponse) Reset

func (*SeedsServiceCancelExchangeResponse) String

type SeedsServiceClient

type SeedsServiceClient interface {
	// InitCircleSeeds initializes the circle seeds for a circle
	InitCircleSeeds(ctx context.Context, in *InitCircleSeedsRequest, opts ...grpc.CallOption) (*InitCircleSeedsResponse, error)
	// ResetCircleSeeds remove all circle seeds for a circle
	ResetCircleSeeds(ctx context.Context, in *ResetCircleSeedsRequest, opts ...grpc.CallOption) (*SeedsServiceResetCircleSeedsResponse, error)
	// MintCircleSeeds mints circle seeds for a user
	MintCircleSeeds(ctx context.Context, in *MintCircleSeedsRequest, opts ...grpc.CallOption) (*MintCircleSeedsResponse, error)
	// GetCircleSeeds gets the circle seeds for a circle
	GetCircleSeeds(ctx context.Context, in *GetCircleSeedsRequest, opts ...grpc.CallOption) (*GetCircleSeedsResponse, error)
	// InitUserMelons initializes the user melons for a user
	InitUserMelons(ctx context.Context, in *InitUserMelonsRequest, opts ...grpc.CallOption) (*InitUserMelonsResponse, error)
	// MintUserMelons mints user melons for a user
	MintUserMelons(ctx context.Context, in *MintUserMelonsRequest, opts ...grpc.CallOption) (*MintUserMelonsResponse, error)
	// GetUserMelons gets the user melons for a user
	GetUserMelons(ctx context.Context, in *GetUserMelonsRequest, opts ...grpc.CallOption) (*GetUserMelonsResponse, error)
	// GetUserSeeds gets the user seeds for a user
	GetUserSeeds(ctx context.Context, in *GetUserSeedsRequest, opts ...grpc.CallOption) (*GetUserSeedsResponse, error)
	// CreateExchange creates an exchange proposal
	CreateExchange(ctx context.Context, in *CreateExchangeRequest, opts ...grpc.CallOption) (*CreateExchangeResponse, error)
	// AcceptExchange accepts an exchange proposal
	AcceptExchange(ctx context.Context, in *AcceptExchangeRequest, opts ...grpc.CallOption) (*SeedsServiceAcceptExchangeResponse, error)
	// RejectExchange rejects an exchange proposal
	RejectExchange(ctx context.Context, in *RejectExchangeRequest, opts ...grpc.CallOption) (*SeedsServiceRejectExchangeResponse, error)
	// CancelExchange cancels an exchange proposal
	CancelExchange(ctx context.Context, in *CancelExchangeRequest, opts ...grpc.CallOption) (*SeedsServiceCancelExchangeResponse, error)
	// GetExchanges gets an exchange proposal
	GetExchanges(ctx context.Context, in *GetExchangesRequest, opts ...grpc.CallOption) (*GetExchangesResponse, error)
	// TransferMelons transfers melons from one user to another
	TransferMelons(ctx context.Context, in *TransferMelonsRequest, opts ...grpc.CallOption) (*SeedsServiceTransferMelonsResponse, error)
	// TransferSeeds transfers seeds from one user to another
	TransferSeeds(ctx context.Context, in *TransferSeedsRequest, opts ...grpc.CallOption) (*SeedsServiceTransferSeedsResponse, error)
}

SeedsServiceClient is the client API for SeedsService 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 SeedsServiceRejectExchangeResponse

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

SeedsServiceRejectExchangeResponse is the response for the RejectExchange method

func (*SeedsServiceRejectExchangeResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceRejectExchangeResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceRejectExchangeResponse) ProtoMessage

func (*SeedsServiceRejectExchangeResponse) ProtoMessage()

func (*SeedsServiceRejectExchangeResponse) ProtoReflect

func (*SeedsServiceRejectExchangeResponse) Reset

func (*SeedsServiceRejectExchangeResponse) String

type SeedsServiceResetCircleSeedsResponse

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

SeedsServiceResetCircleSeedsResponse is the response for the ResetCircleSeeds method

func (*SeedsServiceResetCircleSeedsResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceResetCircleSeedsResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceResetCircleSeedsResponse) ProtoMessage

func (*SeedsServiceResetCircleSeedsResponse) ProtoMessage()

func (*SeedsServiceResetCircleSeedsResponse) ProtoReflect

func (*SeedsServiceResetCircleSeedsResponse) Reset

func (*SeedsServiceResetCircleSeedsResponse) String

type SeedsServiceServer

type SeedsServiceServer interface {
	// InitCircleSeeds initializes the circle seeds for a circle
	InitCircleSeeds(context.Context, *InitCircleSeedsRequest) (*InitCircleSeedsResponse, error)
	// ResetCircleSeeds remove all circle seeds for a circle
	ResetCircleSeeds(context.Context, *ResetCircleSeedsRequest) (*SeedsServiceResetCircleSeedsResponse, error)
	// MintCircleSeeds mints circle seeds for a user
	MintCircleSeeds(context.Context, *MintCircleSeedsRequest) (*MintCircleSeedsResponse, error)
	// GetCircleSeeds gets the circle seeds for a circle
	GetCircleSeeds(context.Context, *GetCircleSeedsRequest) (*GetCircleSeedsResponse, error)
	// InitUserMelons initializes the user melons for a user
	InitUserMelons(context.Context, *InitUserMelonsRequest) (*InitUserMelonsResponse, error)
	// MintUserMelons mints user melons for a user
	MintUserMelons(context.Context, *MintUserMelonsRequest) (*MintUserMelonsResponse, error)
	// GetUserMelons gets the user melons for a user
	GetUserMelons(context.Context, *GetUserMelonsRequest) (*GetUserMelonsResponse, error)
	// GetUserSeeds gets the user seeds for a user
	GetUserSeeds(context.Context, *GetUserSeedsRequest) (*GetUserSeedsResponse, error)
	// CreateExchange creates an exchange proposal
	CreateExchange(context.Context, *CreateExchangeRequest) (*CreateExchangeResponse, error)
	// AcceptExchange accepts an exchange proposal
	AcceptExchange(context.Context, *AcceptExchangeRequest) (*SeedsServiceAcceptExchangeResponse, error)
	// RejectExchange rejects an exchange proposal
	RejectExchange(context.Context, *RejectExchangeRequest) (*SeedsServiceRejectExchangeResponse, error)
	// CancelExchange cancels an exchange proposal
	CancelExchange(context.Context, *CancelExchangeRequest) (*SeedsServiceCancelExchangeResponse, error)
	// GetExchanges gets an exchange proposal
	GetExchanges(context.Context, *GetExchangesRequest) (*GetExchangesResponse, error)
	// TransferMelons transfers melons from one user to another
	TransferMelons(context.Context, *TransferMelonsRequest) (*SeedsServiceTransferMelonsResponse, error)
	// TransferSeeds transfers seeds from one user to another
	TransferSeeds(context.Context, *TransferSeedsRequest) (*SeedsServiceTransferSeedsResponse, error)
	// contains filtered or unexported methods
}

SeedsServiceServer is the server API for SeedsService service. All implementations must embed UnimplementedSeedsServiceServer for forward compatibility

type SeedsServiceTransferMelonsResponse

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

SeedsServiceTransferMelonsResponse is the response for the TransferMelons method

func (*SeedsServiceTransferMelonsResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceTransferMelonsResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceTransferMelonsResponse) ProtoMessage

func (*SeedsServiceTransferMelonsResponse) ProtoMessage()

func (*SeedsServiceTransferMelonsResponse) ProtoReflect

func (*SeedsServiceTransferMelonsResponse) Reset

func (*SeedsServiceTransferMelonsResponse) String

type SeedsServiceTransferSeedsResponse

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

SeedsServiceTransferSeedsResponse is the response for the TransferSeeds method

func (*SeedsServiceTransferSeedsResponse) Descriptor deprecated

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

Deprecated: Use SeedsServiceTransferSeedsResponse.ProtoReflect.Descriptor instead.

func (*SeedsServiceTransferSeedsResponse) ProtoMessage

func (*SeedsServiceTransferSeedsResponse) ProtoMessage()

func (*SeedsServiceTransferSeedsResponse) ProtoReflect

func (*SeedsServiceTransferSeedsResponse) Reset

func (*SeedsServiceTransferSeedsResponse) String

type TransferMelonsRequest

type TransferMelonsRequest struct {
	FromUserId string `protobuf:"bytes,1,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"`
	ToUserId   string `protobuf:"bytes,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	// Types that are assignable to Currency:
	//
	//	*TransferMelonsRequest_Seeds
	//	*TransferMelonsRequest_Melons
	Currency isTransferMelonsRequest_Currency `protobuf_oneof:"currency"`
	// contains filtered or unexported fields
}

TransferMelonsRequest is the request for the TransferMelons method

func (*TransferMelonsRequest) Descriptor deprecated

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

Deprecated: Use TransferMelonsRequest.ProtoReflect.Descriptor instead.

func (*TransferMelonsRequest) GetCurrency

func (m *TransferMelonsRequest) GetCurrency() isTransferMelonsRequest_Currency

func (*TransferMelonsRequest) GetFromUserId

func (x *TransferMelonsRequest) GetFromUserId() string

func (*TransferMelonsRequest) GetMelons

func (x *TransferMelonsRequest) GetMelons() *Melons

func (*TransferMelonsRequest) GetSeeds

func (x *TransferMelonsRequest) GetSeeds() *Seeds

func (*TransferMelonsRequest) GetToUserId

func (x *TransferMelonsRequest) GetToUserId() string

func (*TransferMelonsRequest) ProtoMessage

func (*TransferMelonsRequest) ProtoMessage()

func (*TransferMelonsRequest) ProtoReflect

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

func (*TransferMelonsRequest) Reset

func (x *TransferMelonsRequest) Reset()

func (*TransferMelonsRequest) String

func (x *TransferMelonsRequest) String() string

type TransferMelonsRequest_Melons

type TransferMelonsRequest_Melons struct {
	Melons *Melons `protobuf:"bytes,4,opt,name=melons,proto3,oneof"`
}

type TransferMelonsRequest_Seeds

type TransferMelonsRequest_Seeds struct {
	Seeds *Seeds `protobuf:"bytes,3,opt,name=seeds,proto3,oneof"`
}

type TransferSeedsRequest

type TransferSeedsRequest struct {
	ToUserId string `protobuf:"bytes,1,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"`
	CircleId string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	Amount   int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

TransferSeedsRequest is the request for the TransferSeeds method

func (*TransferSeedsRequest) Descriptor deprecated

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

Deprecated: Use TransferSeedsRequest.ProtoReflect.Descriptor instead.

func (*TransferSeedsRequest) GetAmount

func (x *TransferSeedsRequest) GetAmount() int64

func (*TransferSeedsRequest) GetCircleId

func (x *TransferSeedsRequest) GetCircleId() string

func (*TransferSeedsRequest) GetToUserId

func (x *TransferSeedsRequest) GetToUserId() string

func (*TransferSeedsRequest) ProtoMessage

func (*TransferSeedsRequest) ProtoMessage()

func (*TransferSeedsRequest) ProtoReflect

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

func (*TransferSeedsRequest) Reset

func (x *TransferSeedsRequest) Reset()

func (*TransferSeedsRequest) String

func (x *TransferSeedsRequest) String() string

type Type

type Type int32

buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX Type is the type of exchange

const (
	Type_TYPE_BUY  Type = 0
	Type_TYPE_SELL Type = 1
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedSeedsServiceServer

type UnimplementedSeedsServiceServer struct {
}

UnimplementedSeedsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSeedsServiceServer) CreateExchange

func (UnimplementedSeedsServiceServer) GetCircleSeeds

func (UnimplementedSeedsServiceServer) GetExchanges

func (UnimplementedSeedsServiceServer) GetUserMelons

func (UnimplementedSeedsServiceServer) GetUserSeeds

func (UnimplementedSeedsServiceServer) InitCircleSeeds

func (UnimplementedSeedsServiceServer) InitUserMelons

func (UnimplementedSeedsServiceServer) MintCircleSeeds

func (UnimplementedSeedsServiceServer) MintUserMelons

type UnsafeSeedsServiceServer

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

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

type UserMelons

type UserMelons struct {
	UserId          string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AmountAvailable int64  `protobuf:"varint,2,opt,name=amount_available,json=amountAvailable,proto3" json:"amount_available,omitempty"`
	AmountLocked    int64  `protobuf:"varint,3,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,4,opt,name=amount_total,json=amountTotal,proto3" json:"amount_total,omitempty"`
	// contains filtered or unexported fields
}

UserMelons is the melons for a user

func (*UserMelons) Descriptor deprecated

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

Deprecated: Use UserMelons.ProtoReflect.Descriptor instead.

func (*UserMelons) GetAmountAvailable

func (x *UserMelons) GetAmountAvailable() int64

func (*UserMelons) GetAmountLocked

func (x *UserMelons) GetAmountLocked() int64

func (*UserMelons) GetAmountTotal

func (x *UserMelons) GetAmountTotal() int64

func (*UserMelons) GetUserId

func (x *UserMelons) GetUserId() string

func (*UserMelons) ProtoMessage

func (*UserMelons) ProtoMessage()

func (*UserMelons) ProtoReflect

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

func (*UserMelons) Reset

func (x *UserMelons) Reset()

func (*UserMelons) String

func (x *UserMelons) String() string

type UserSeeds

type UserSeeds struct {
	UserId          string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CircleId        string `protobuf:"bytes,2,opt,name=circle_id,json=circleId,proto3" json:"circle_id,omitempty"`
	AmountAvailable int64  `protobuf:"varint,3,opt,name=amount_available,json=amountAvailable,proto3" json:"amount_available,omitempty"`
	AmountLocked    int64  `protobuf:"varint,4,opt,name=amount_locked,json=amountLocked,proto3" json:"amount_locked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,5,opt,name=amount_total,json=amountTotal,proto3" json:"amount_total,omitempty"`
	// contains filtered or unexported fields
}

UserSeeds is the seeds for a user

func (*UserSeeds) Descriptor deprecated

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

Deprecated: Use UserSeeds.ProtoReflect.Descriptor instead.

func (*UserSeeds) GetAmountAvailable

func (x *UserSeeds) GetAmountAvailable() int64

func (*UserSeeds) GetAmountLocked

func (x *UserSeeds) GetAmountLocked() int64

func (*UserSeeds) GetAmountTotal

func (x *UserSeeds) GetAmountTotal() int64

func (*UserSeeds) GetCircleId

func (x *UserSeeds) GetCircleId() string

func (*UserSeeds) GetUserId

func (x *UserSeeds) GetUserId() string

func (*UserSeeds) ProtoMessage

func (*UserSeeds) ProtoMessage()

func (*UserSeeds) ProtoReflect

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

func (*UserSeeds) Reset

func (x *UserSeeds) Reset()

func (*UserSeeds) String

func (x *UserSeeds) String() string

Jump to

Keyboard shortcuts

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