v1

package
v0.3.54 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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: "Buy",
		1: "Sell",
	}
	Type_value = map[string]int32{
		"Buy":  0,
		"Sell": 1,
	}
)

Enum value maps for Type.

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

Enum value maps for PageDir.

View Source
var (
	ExchangeProposal_State_name = map[int32]string{
		0: "Created",
		1: "Accepted",
		2: "Processing",
		3: "Finalised",
		4: "Rejected",
		5: "Canceled",
		6: "Failed",
	}
	ExchangeProposal_State_value = map[string]int32{
		"Created":    0,
		"Accepted":   1,
		"Processing": 2,
		"Finalised":  3,
		"Rejected":   4,
		"Canceled":   5,
		"Failed":     6,
	}
)

Enum value maps for ExchangeProposal_State.

View Source
var File_seeds_api_seeds_v1_seeds_proto protoreflect.FileDescriptor
View Source
var SeedsAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "seeds_api.v1.SeedsAPI",
	HandlerType: (*SeedsAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InitCircleSeeds",
			Handler:    _SeedsAPI_InitCircleSeeds_Handler,
		},
		{
			MethodName: "ResetCircleSeeds",
			Handler:    _SeedsAPI_ResetCircleSeeds_Handler,
		},
		{
			MethodName: "MintCircleSeeds",
			Handler:    _SeedsAPI_MintCircleSeeds_Handler,
		},
		{
			MethodName: "GetCircleSeeds",
			Handler:    _SeedsAPI_GetCircleSeeds_Handler,
		},
		{
			MethodName: "InitUserMelons",
			Handler:    _SeedsAPI_InitUserMelons_Handler,
		},
		{
			MethodName: "MintUserMelons",
			Handler:    _SeedsAPI_MintUserMelons_Handler,
		},
		{
			MethodName: "GetUserMelons",
			Handler:    _SeedsAPI_GetUserMelons_Handler,
		},
		{
			MethodName: "GetUserSeeds",
			Handler:    _SeedsAPI_GetUserSeeds_Handler,
		},
		{
			MethodName: "CreateExchange",
			Handler:    _SeedsAPI_CreateExchange_Handler,
		},
		{
			MethodName: "AcceptExchange",
			Handler:    _SeedsAPI_AcceptExchange_Handler,
		},
		{
			MethodName: "RejectExchange",
			Handler:    _SeedsAPI_RejectExchange_Handler,
		},
		{
			MethodName: "CancelExchange",
			Handler:    _SeedsAPI_CancelExchange_Handler,
		},
		{
			MethodName: "GetExchanges",
			Handler:    _SeedsAPI_GetExchanges_Handler,
		},
		{
			MethodName: "TransferMelons",
			Handler:    _SeedsAPI_TransferMelons_Handler,
		},
		{
			MethodName: "TransferSeeds",
			Handler:    _SeedsAPI_TransferSeeds_Handler,
		},
		{
			MethodName: "SumUserSeeds",
			Handler:    _SeedsAPI_SumUserSeeds_Handler,
		},
		{
			MethodName: "LockSeeds",
			Handler:    _SeedsAPI_LockSeeds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "seeds-api/seeds/v1/seeds.proto",
}

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

Functions

func RegisterSeedsAPIServer added in v0.2.22

func RegisterSeedsAPIServer(s grpc.ServiceRegistrar, srv SeedsAPIServer)

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=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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=pageInfo,proto3" json:"pageInfo,omitempty"`
	// contains filtered or unexported fields
}

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=circleId,proto3" json:"circleId,omitempty"`
	AmountAvailable int64  `protobuf:"varint,2,opt,name=amountAvailable,proto3" json:"amountAvailable,omitempty"`
	AmountLocked    int64  `protobuf:"varint,3,opt,name=amountLocked,proto3" json:"amountLocked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,4,opt,name=amountTotal,proto3" json:"amountTotal,omitempty"`
	// contains filtered or unexported fields
}

TODO

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=fromUserId,proto3" json:"fromUserId,omitempty"`
	// TODO possibly optional or is set once proposal has been accepted
	ToUserId string  `protobuf:"bytes,2,opt,name=toUserId,proto3" json:"toUserId,omitempty"`
	Type     Type    `protobuf:"varint,3,opt,name=type,proto3,enum=seeds_api.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
}

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
}

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 Empty added in v0.2.22

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

func (*Empty) Descriptor deprecated added in v0.2.22

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage added in v0.2.22

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect added in v0.2.22

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

func (*Empty) Reset added in v0.2.22

func (x *Empty) Reset()

func (*Empty) String added in v0.2.22

func (x *Empty) 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=fromUserId,proto3" json:"fromUserId,omitempty"`
	ToUserId   string                 `protobuf:"bytes,3,opt,name=toUserId,proto3" json:"toUserId,omitempty"`
	Type       Type                   `protobuf:"varint,4,opt,name=type,proto3,enum=seeds_api.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_api.v1.ExchangeProposal_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

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
const (
	ExchangeProposal_Created    ExchangeProposal_State = 0
	ExchangeProposal_Accepted   ExchangeProposal_State = 1
	ExchangeProposal_Processing ExchangeProposal_State = 2
	ExchangeProposal_Finalised  ExchangeProposal_State = 3
	ExchangeProposal_Rejected   ExchangeProposal_State = 4
	ExchangeProposal_Canceled   ExchangeProposal_State = 5
	ExchangeProposal_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=circleId,proto3" json:"circleId,omitempty"`
	GetHolders *bool       `protobuf:"varint,2,opt,name=getHolders,proto3,oneof" json:"getHolders,omitempty"`
	Cursor     *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

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=totalAmount,proto3" json:"totalAmount,omitempty"`
	Holders     *CircleSeedHolders `protobuf:"bytes,2,opt,name=holders,proto3,oneof" json:"holders,omitempty"`
	// contains filtered or unexported fields
}

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
}

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
}

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=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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
}

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=userId,proto3" json:"userId,omitempty"`
	CircleId *string     `protobuf:"bytes,2,opt,name=circleId,proto3,oneof" json:"circleId,omitempty"`
	Cursor   *PageCursor `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// contains filtered or unexported fields
}

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=pageInfo,proto3" json:"pageInfo,omitempty"`
	// contains filtered or unexported fields
}

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=circleId,proto3" json:"circleId,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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
}

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=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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
}

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 LockSeedsRequest added in v0.2.22

type LockSeedsRequest struct {
	UserID       string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
	CircleID     string `protobuf:"bytes,2,opt,name=circleID,proto3" json:"circleID,omitempty"`
	AmountToLock int64  `protobuf:"varint,3,opt,name=amountToLock,proto3" json:"amountToLock,omitempty"`
	Unlock       bool   `protobuf:"varint,4,opt,name=unlock,proto3" json:"unlock,omitempty"`
	// contains filtered or unexported fields
}

func (*LockSeedsRequest) Descriptor deprecated added in v0.2.22

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

Deprecated: Use LockSeedsRequest.ProtoReflect.Descriptor instead.

func (*LockSeedsRequest) GetAmountToLock added in v0.2.22

func (x *LockSeedsRequest) GetAmountToLock() int64

func (*LockSeedsRequest) GetCircleID added in v0.2.22

func (x *LockSeedsRequest) GetCircleID() string

func (*LockSeedsRequest) GetUnlock added in v0.2.22

func (x *LockSeedsRequest) GetUnlock() bool

func (*LockSeedsRequest) GetUserID added in v0.2.22

func (x *LockSeedsRequest) GetUserID() string

func (*LockSeedsRequest) ProtoMessage added in v0.2.22

func (*LockSeedsRequest) ProtoMessage()

func (*LockSeedsRequest) ProtoReflect added in v0.2.22

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

func (*LockSeedsRequest) Reset added in v0.2.22

func (x *LockSeedsRequest) Reset()

func (*LockSeedsRequest) String added in v0.2.22

func (x *LockSeedsRequest) String() string

type LockSeedsResponse added in v0.2.22

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

func (*LockSeedsResponse) Descriptor deprecated added in v0.2.22

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

Deprecated: Use LockSeedsResponse.ProtoReflect.Descriptor instead.

func (*LockSeedsResponse) GetSuccess added in v0.2.22

func (x *LockSeedsResponse) GetSuccess() bool

func (*LockSeedsResponse) ProtoMessage added in v0.2.22

func (*LockSeedsResponse) ProtoMessage()

func (*LockSeedsResponse) ProtoReflect added in v0.2.22

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

func (*LockSeedsResponse) Reset added in v0.2.22

func (x *LockSeedsResponse) Reset()

func (*LockSeedsResponse) String added in v0.2.22

func (x *LockSeedsResponse) String() string

type Melons

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

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=circleId,proto3" json:"circleId,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Amount   int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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=circleSeeds,proto3" json:"circleSeeds,omitempty"`
	UserSeeds   *UserSeeds   `protobuf:"bytes,2,opt,name=userSeeds,proto3" json:"userSeeds,omitempty"`
	// contains filtered or unexported fields
}

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=userId,proto3" json:"userId,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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
}

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=cursorId,proto3" json:"cursorId,omitempty"`
	Limit    uint32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Dir      PageDir `protobuf:"varint,3,opt,name=dir,proto3,enum=seeds_api.v1.PageDir" json:"dir,omitempty"`
	// contains filtered or unexported fields
}

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
const (
	PageDir_Forward  PageDir = 0
	PageDir_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=firstId,proto3,oneof" json:"firstId,omitempty"`
	LastId  *string `protobuf:"bytes,2,opt,name=lastId,proto3,oneof" json:"lastId,omitempty"`
	HasPrev bool    `protobuf:"varint,3,opt,name=hasPrev,proto3" json:"hasPrev,omitempty"`
	HasNext bool    `protobuf:"varint,4,opt,name=hasNext,proto3" json:"hasNext,omitempty"`
	Length  uint32  `protobuf:"varint,5,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

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=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

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=circleId,proto3" json:"circleId,omitempty"`
	// contains filtered or unexported fields
}

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=circleId,proto3" json:"circleId,omitempty"`
	Amount   int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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 SeedsAPIClient added in v0.2.22

type SeedsAPIClient interface {
	InitCircleSeeds(ctx context.Context, in *InitCircleSeedsRequest, opts ...grpc.CallOption) (*InitCircleSeedsResponse, error)
	ResetCircleSeeds(ctx context.Context, in *ResetCircleSeedsRequest, opts ...grpc.CallOption) (*Empty, error)
	MintCircleSeeds(ctx context.Context, in *MintCircleSeedsRequest, opts ...grpc.CallOption) (*MintCircleSeedsResponse, error)
	GetCircleSeeds(ctx context.Context, in *GetCircleSeedsRequest, opts ...grpc.CallOption) (*GetCircleSeedsResponse, error)
	InitUserMelons(ctx context.Context, in *InitUserMelonsRequest, opts ...grpc.CallOption) (*InitUserMelonsResponse, error)
	MintUserMelons(ctx context.Context, in *MintUserMelonsRequest, opts ...grpc.CallOption) (*MintUserMelonsResponse, error)
	GetUserMelons(ctx context.Context, in *GetUserMelonsRequest, opts ...grpc.CallOption) (*GetUserMelonsResponse, error)
	GetUserSeeds(ctx context.Context, in *GetUserSeedsRequest, opts ...grpc.CallOption) (*GetUserSeedsResponse, error)
	CreateExchange(ctx context.Context, in *CreateExchangeRequest, opts ...grpc.CallOption) (*CreateExchangeResponse, error)
	AcceptExchange(ctx context.Context, in *AcceptExchangeRequest, opts ...grpc.CallOption) (*Empty, error)
	RejectExchange(ctx context.Context, in *RejectExchangeRequest, opts ...grpc.CallOption) (*Empty, error)
	CancelExchange(ctx context.Context, in *CancelExchangeRequest, opts ...grpc.CallOption) (*Empty, error)
	GetExchanges(ctx context.Context, in *GetExchangesRequest, opts ...grpc.CallOption) (*GetExchangesResponse, error)
	TransferMelons(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*Empty, error)
	TransferSeeds(ctx context.Context, in *TransferSeedsRequest, opts ...grpc.CallOption) (*Empty, error)
	SumUserSeeds(ctx context.Context, in *SumUserSeedsRequest, opts ...grpc.CallOption) (*SumUserSeedsResponse, error)
	LockSeeds(ctx context.Context, in *LockSeedsRequest, opts ...grpc.CallOption) (*LockSeedsResponse, error)
}

SeedsAPIClient is the client API for SeedsAPI 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 NewSeedsAPIClient added in v0.2.22

func NewSeedsAPIClient(cc grpc.ClientConnInterface) SeedsAPIClient

type SeedsAPIServer added in v0.2.22

SeedsAPIServer is the server API for SeedsAPI service. All implementations must embed UnimplementedSeedsAPIServer for forward compatibility

type SumUserSeedsRequest added in v0.2.22

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

func (*SumUserSeedsRequest) Descriptor deprecated added in v0.2.22

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

Deprecated: Use SumUserSeedsRequest.ProtoReflect.Descriptor instead.

func (*SumUserSeedsRequest) GetUserId added in v0.2.22

func (x *SumUserSeedsRequest) GetUserId() string

func (*SumUserSeedsRequest) ProtoMessage added in v0.2.22

func (*SumUserSeedsRequest) ProtoMessage()

func (*SumUserSeedsRequest) ProtoReflect added in v0.2.22

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

func (*SumUserSeedsRequest) Reset added in v0.2.22

func (x *SumUserSeedsRequest) Reset()

func (*SumUserSeedsRequest) String added in v0.2.22

func (x *SumUserSeedsRequest) String() string

type SumUserSeedsResponse added in v0.2.22

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

func (*SumUserSeedsResponse) Descriptor deprecated added in v0.2.22

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

Deprecated: Use SumUserSeedsResponse.ProtoReflect.Descriptor instead.

func (*SumUserSeedsResponse) GetAmount added in v0.2.22

func (x *SumUserSeedsResponse) GetAmount() int64

func (*SumUserSeedsResponse) ProtoMessage added in v0.2.22

func (*SumUserSeedsResponse) ProtoMessage()

func (*SumUserSeedsResponse) ProtoReflect added in v0.2.22

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

func (*SumUserSeedsResponse) Reset added in v0.2.22

func (x *SumUserSeedsResponse) Reset()

func (*SumUserSeedsResponse) String added in v0.2.22

func (x *SumUserSeedsResponse) String() string

type TransferRequest added in v0.2.22

type TransferRequest struct {
	FromUserId string `protobuf:"bytes,1,opt,name=fromUserId,proto3" json:"fromUserId,omitempty"`
	ToUserId   string `protobuf:"bytes,2,opt,name=toUserId,proto3" json:"toUserId,omitempty"`
	// Types that are assignable to Currency:
	//
	//	*TransferRequest_Seeds
	//	*TransferRequest_Melons
	Currency isTransferRequest_Currency `protobuf_oneof:"currency"`
	// contains filtered or unexported fields
}

func (*TransferRequest) Descriptor deprecated added in v0.2.22

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

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetCurrency added in v0.2.22

func (m *TransferRequest) GetCurrency() isTransferRequest_Currency

func (*TransferRequest) GetFromUserId added in v0.2.22

func (x *TransferRequest) GetFromUserId() string

func (*TransferRequest) GetMelons added in v0.2.22

func (x *TransferRequest) GetMelons() *Melons

func (*TransferRequest) GetSeeds added in v0.2.22

func (x *TransferRequest) GetSeeds() *Seeds

func (*TransferRequest) GetToUserId added in v0.2.22

func (x *TransferRequest) GetToUserId() string

func (*TransferRequest) ProtoMessage added in v0.2.22

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect added in v0.2.22

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

func (*TransferRequest) Reset added in v0.2.22

func (x *TransferRequest) Reset()

func (*TransferRequest) String added in v0.2.22

func (x *TransferRequest) String() string

type TransferRequest_Melons added in v0.2.22

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

type TransferRequest_Seeds added in v0.2.22

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

type TransferSeedsRequest

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

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
const (
	Type_Buy  Type = 0
	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 UnimplementedSeedsAPIServer added in v0.2.22

type UnimplementedSeedsAPIServer struct {
}

UnimplementedSeedsAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedSeedsAPIServer) AcceptExchange added in v0.2.22

func (UnimplementedSeedsAPIServer) CancelExchange added in v0.2.22

func (UnimplementedSeedsAPIServer) CreateExchange added in v0.2.22

func (UnimplementedSeedsAPIServer) GetCircleSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) GetExchanges added in v0.2.22

func (UnimplementedSeedsAPIServer) GetUserMelons added in v0.2.22

func (UnimplementedSeedsAPIServer) GetUserSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) InitCircleSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) InitUserMelons added in v0.2.22

func (UnimplementedSeedsAPIServer) LockSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) MintCircleSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) MintUserMelons added in v0.2.22

func (UnimplementedSeedsAPIServer) RejectExchange added in v0.2.22

func (UnimplementedSeedsAPIServer) ResetCircleSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) SumUserSeeds added in v0.2.22

func (UnimplementedSeedsAPIServer) TransferMelons added in v0.2.22

func (UnimplementedSeedsAPIServer) TransferSeeds added in v0.2.22

type UnsafeSeedsAPIServer added in v0.2.22

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

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

type UserMelons

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

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=userId,proto3" json:"userId,omitempty"`
	CircleId        string `protobuf:"bytes,2,opt,name=circleId,proto3" json:"circleId,omitempty"`
	AmountAvailable int64  `protobuf:"varint,3,opt,name=amountAvailable,proto3" json:"amountAvailable,omitempty"`
	AmountLocked    int64  `protobuf:"varint,4,opt,name=amountLocked,proto3" json:"amountLocked,omitempty"`
	AmountTotal     int64  `protobuf:"varint,5,opt,name=amountTotal,proto3" json:"amountTotal,omitempty"`
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis
Package seeds_mock is a generated GoMock package.
Package seeds_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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