Documentation ¶
Index ¶
- Variables
- type Action
- type ActionDelegate
- func (*ActionDelegate) Descriptor() ([]byte, []int)deprecated
- func (x *ActionDelegate) GetDelegateePublicKey() string
- func (x *ActionDelegate) GetDeployID() *ActionID
- func (x *ActionDelegate) GetNodeIDs() []uint32
- func (*ActionDelegate) ProtoMessage()
- func (x *ActionDelegate) ProtoReflect() protoreflect.Message
- func (x *ActionDelegate) Reset()
- func (x *ActionDelegate) String() string
- type ActionDeploy
- func (*ActionDeploy) Descriptor() ([]byte, []int)deprecated
- func (x *ActionDeploy) GetEndsAt() uint32
- func (x *ActionDeploy) GetMaxDiscountPercentage() uint32
- func (x *ActionDeploy) GetMaxPerAddress() uint32
- func (x *ActionDeploy) GetName() string
- func (x *ActionDeploy) GetSellerPublicKey() string
- func (x *ActionDeploy) GetSellerWallet() string
- func (x *ActionDeploy) GetStartsAt() uint32
- func (x *ActionDeploy) GetTiers() []*Tier
- func (*ActionDeploy) ProtoMessage()
- func (x *ActionDeploy) ProtoReflect() protoreflect.Message
- func (x *ActionDeploy) Reset()
- func (x *ActionDeploy) String() string
- type ActionID
- type ActionPurchase
- func (*ActionPurchase) Descriptor() ([]byte, []int)deprecated
- func (x *ActionPurchase) GetPayload() *PurchasePayload
- func (x *ActionPurchase) GetSellerSignature() string
- func (*ActionPurchase) ProtoMessage()
- func (x *ActionPurchase) ProtoReflect() protoreflect.Message
- func (x *ActionPurchase) Reset()
- func (x *ActionPurchase) String() string
- type NodeSaleEvent
- func (*NodeSaleEvent) Descriptor() ([]byte, []int)deprecated
- func (x *NodeSaleEvent) GetAction() Action
- func (x *NodeSaleEvent) GetDelegate() *ActionDelegate
- func (x *NodeSaleEvent) GetDeploy() *ActionDeploy
- func (x *NodeSaleEvent) GetPurchase() *ActionPurchase
- func (*NodeSaleEvent) ProtoMessage()
- func (x *NodeSaleEvent) ProtoReflect() protoreflect.Message
- func (x *NodeSaleEvent) Reset()
- func (x *NodeSaleEvent) String() string
- type PurchasePayload
- func (*PurchasePayload) Descriptor() ([]byte, []int)deprecated
- func (x *PurchasePayload) GetBuyerPublicKey() string
- func (x *PurchasePayload) GetDeployID() *ActionID
- func (x *PurchasePayload) GetNodeIDs() []uint32
- func (x *PurchasePayload) GetTimeOutBlock() uint64
- func (x *PurchasePayload) GetTotalAmountSat() int64
- func (*PurchasePayload) ProtoMessage()
- func (x *PurchasePayload) ProtoReflect() protoreflect.Message
- func (x *PurchasePayload) Reset()
- func (x *PurchasePayload) String() string
- type Tier
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Action_name = map[int32]string{ 0: "ACTION_DEPLOY", 1: "ACTION_PURCHASE", 2: "ACTION_DELEGATE", } Action_value = map[string]int32{ "ACTION_DEPLOY": 0, "ACTION_PURCHASE": 1, "ACTION_DELEGATE": 2, } )
Enum value maps for Action.
View Source
var File_modules_nodesale_protobuf_nodesale_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
type ActionDelegate ¶
type ActionDelegate struct { DelegateePublicKey string `protobuf:"bytes,1,opt,name=delegateePublicKey,proto3" json:"delegateePublicKey,omitempty"` NodeIDs []uint32 `protobuf:"varint,2,rep,packed,name=nodeIDs,proto3" json:"nodeIDs,omitempty"` DeployID *ActionID `protobuf:"bytes,3,opt,name=deployID,proto3" json:"deployID,omitempty"` // contains filtered or unexported fields }
func (*ActionDelegate) Descriptor
deprecated
func (*ActionDelegate) Descriptor() ([]byte, []int)
Deprecated: Use ActionDelegate.ProtoReflect.Descriptor instead.
func (*ActionDelegate) GetDelegateePublicKey ¶
func (x *ActionDelegate) GetDelegateePublicKey() string
func (*ActionDelegate) GetDeployID ¶
func (x *ActionDelegate) GetDeployID() *ActionID
func (*ActionDelegate) GetNodeIDs ¶
func (x *ActionDelegate) GetNodeIDs() []uint32
func (*ActionDelegate) ProtoMessage ¶
func (*ActionDelegate) ProtoMessage()
func (*ActionDelegate) ProtoReflect ¶
func (x *ActionDelegate) ProtoReflect() protoreflect.Message
func (*ActionDelegate) Reset ¶
func (x *ActionDelegate) Reset()
func (*ActionDelegate) String ¶
func (x *ActionDelegate) String() string
type ActionDeploy ¶
type ActionDeploy struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` StartsAt uint32 `protobuf:"varint,2,opt,name=startsAt,proto3" json:"startsAt,omitempty"` EndsAt uint32 `protobuf:"varint,3,opt,name=endsAt,proto3" json:"endsAt,omitempty"` Tiers []*Tier `protobuf:"bytes,4,rep,name=tiers,proto3" json:"tiers,omitempty"` SellerPublicKey string `protobuf:"bytes,5,opt,name=sellerPublicKey,proto3" json:"sellerPublicKey,omitempty"` MaxPerAddress uint32 `protobuf:"varint,6,opt,name=maxPerAddress,proto3" json:"maxPerAddress,omitempty"` MaxDiscountPercentage uint32 `protobuf:"varint,7,opt,name=maxDiscountPercentage,proto3" json:"maxDiscountPercentage,omitempty"` SellerWallet string `protobuf:"bytes,8,opt,name=sellerWallet,proto3" json:"sellerWallet,omitempty"` // contains filtered or unexported fields }
func (*ActionDeploy) Descriptor
deprecated
func (*ActionDeploy) Descriptor() ([]byte, []int)
Deprecated: Use ActionDeploy.ProtoReflect.Descriptor instead.
func (*ActionDeploy) GetEndsAt ¶
func (x *ActionDeploy) GetEndsAt() uint32
func (*ActionDeploy) GetMaxDiscountPercentage ¶
func (x *ActionDeploy) GetMaxDiscountPercentage() uint32
func (*ActionDeploy) GetMaxPerAddress ¶
func (x *ActionDeploy) GetMaxPerAddress() uint32
func (*ActionDeploy) GetName ¶
func (x *ActionDeploy) GetName() string
func (*ActionDeploy) GetSellerPublicKey ¶
func (x *ActionDeploy) GetSellerPublicKey() string
func (*ActionDeploy) GetSellerWallet ¶
func (x *ActionDeploy) GetSellerWallet() string
func (*ActionDeploy) GetStartsAt ¶
func (x *ActionDeploy) GetStartsAt() uint32
func (*ActionDeploy) GetTiers ¶
func (x *ActionDeploy) GetTiers() []*Tier
func (*ActionDeploy) ProtoMessage ¶
func (*ActionDeploy) ProtoMessage()
func (*ActionDeploy) ProtoReflect ¶
func (x *ActionDeploy) ProtoReflect() protoreflect.Message
func (*ActionDeploy) Reset ¶
func (x *ActionDeploy) Reset()
func (*ActionDeploy) String ¶
func (x *ActionDeploy) String() string
type ActionID ¶
type ActionID struct { Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"` TxIndex uint32 `protobuf:"varint,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"` // contains filtered or unexported fields }
func (*ActionID) Descriptor
deprecated
func (*ActionID) GetTxIndex ¶
func (*ActionID) ProtoMessage ¶
func (*ActionID) ProtoMessage()
func (*ActionID) ProtoReflect ¶
func (x *ActionID) ProtoReflect() protoreflect.Message
type ActionPurchase ¶
type ActionPurchase struct { Payload *PurchasePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` SellerSignature string `protobuf:"bytes,2,opt,name=sellerSignature,proto3" json:"sellerSignature,omitempty"` // contains filtered or unexported fields }
func (*ActionPurchase) Descriptor
deprecated
func (*ActionPurchase) Descriptor() ([]byte, []int)
Deprecated: Use ActionPurchase.ProtoReflect.Descriptor instead.
func (*ActionPurchase) GetPayload ¶
func (x *ActionPurchase) GetPayload() *PurchasePayload
func (*ActionPurchase) GetSellerSignature ¶
func (x *ActionPurchase) GetSellerSignature() string
func (*ActionPurchase) ProtoMessage ¶
func (*ActionPurchase) ProtoMessage()
func (*ActionPurchase) ProtoReflect ¶
func (x *ActionPurchase) ProtoReflect() protoreflect.Message
func (*ActionPurchase) Reset ¶
func (x *ActionPurchase) Reset()
func (*ActionPurchase) String ¶
func (x *ActionPurchase) String() string
type NodeSaleEvent ¶
type NodeSaleEvent struct { Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=nodesale.Action" json:"action,omitempty"` Deploy *ActionDeploy `protobuf:"bytes,2,opt,name=deploy,proto3,oneof" json:"deploy,omitempty"` Purchase *ActionPurchase `protobuf:"bytes,3,opt,name=purchase,proto3,oneof" json:"purchase,omitempty"` Delegate *ActionDelegate `protobuf:"bytes,4,opt,name=delegate,proto3,oneof" json:"delegate,omitempty"` // contains filtered or unexported fields }
func (*NodeSaleEvent) Descriptor
deprecated
func (*NodeSaleEvent) Descriptor() ([]byte, []int)
Deprecated: Use NodeSaleEvent.ProtoReflect.Descriptor instead.
func (*NodeSaleEvent) GetAction ¶
func (x *NodeSaleEvent) GetAction() Action
func (*NodeSaleEvent) GetDelegate ¶
func (x *NodeSaleEvent) GetDelegate() *ActionDelegate
func (*NodeSaleEvent) GetDeploy ¶
func (x *NodeSaleEvent) GetDeploy() *ActionDeploy
func (*NodeSaleEvent) GetPurchase ¶
func (x *NodeSaleEvent) GetPurchase() *ActionPurchase
func (*NodeSaleEvent) ProtoMessage ¶
func (*NodeSaleEvent) ProtoMessage()
func (*NodeSaleEvent) ProtoReflect ¶
func (x *NodeSaleEvent) ProtoReflect() protoreflect.Message
func (*NodeSaleEvent) Reset ¶
func (x *NodeSaleEvent) Reset()
func (*NodeSaleEvent) String ¶
func (x *NodeSaleEvent) String() string
type PurchasePayload ¶
type PurchasePayload struct { DeployID *ActionID `protobuf:"bytes,1,opt,name=deployID,proto3" json:"deployID,omitempty"` BuyerPublicKey string `protobuf:"bytes,2,opt,name=buyerPublicKey,proto3" json:"buyerPublicKey,omitempty"` NodeIDs []uint32 `protobuf:"varint,3,rep,packed,name=nodeIDs,proto3" json:"nodeIDs,omitempty"` TotalAmountSat int64 `protobuf:"varint,4,opt,name=totalAmountSat,proto3" json:"totalAmountSat,omitempty"` TimeOutBlock uint64 `protobuf:"varint,5,opt,name=timeOutBlock,proto3" json:"timeOutBlock,omitempty"` // contains filtered or unexported fields }
func (*PurchasePayload) Descriptor
deprecated
func (*PurchasePayload) Descriptor() ([]byte, []int)
Deprecated: Use PurchasePayload.ProtoReflect.Descriptor instead.
func (*PurchasePayload) GetBuyerPublicKey ¶
func (x *PurchasePayload) GetBuyerPublicKey() string
func (*PurchasePayload) GetDeployID ¶
func (x *PurchasePayload) GetDeployID() *ActionID
func (*PurchasePayload) GetNodeIDs ¶
func (x *PurchasePayload) GetNodeIDs() []uint32
func (*PurchasePayload) GetTimeOutBlock ¶
func (x *PurchasePayload) GetTimeOutBlock() uint64
func (*PurchasePayload) GetTotalAmountSat ¶
func (x *PurchasePayload) GetTotalAmountSat() int64
func (*PurchasePayload) ProtoMessage ¶
func (*PurchasePayload) ProtoMessage()
func (*PurchasePayload) ProtoReflect ¶
func (x *PurchasePayload) ProtoReflect() protoreflect.Message
func (*PurchasePayload) Reset ¶
func (x *PurchasePayload) Reset()
func (*PurchasePayload) String ¶
func (x *PurchasePayload) String() string
type Tier ¶
type Tier struct { PriceSat uint32 `protobuf:"varint,1,opt,name=priceSat,proto3" json:"priceSat,omitempty"` Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` MaxPerAddress uint32 `protobuf:"varint,3,opt,name=maxPerAddress,proto3" json:"maxPerAddress,omitempty"` // contains filtered or unexported fields }
func (*Tier) Descriptor
deprecated
func (*Tier) GetMaxPerAddress ¶
func (*Tier) GetPriceSat ¶
func (*Tier) ProtoMessage ¶
func (*Tier) ProtoMessage()
func (*Tier) ProtoReflect ¶
func (x *Tier) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.