v2

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthPlan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlan = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type PlanV2 added in v0.10.0

type PlanV2 struct {
	Index                    string     `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Block                    uint64     `protobuf:"varint,3,opt,name=block,proto3" json:"block,omitempty"`
	Price                    types.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price"`
	ComputeUnits             uint64     `protobuf:"varint,5,opt,name=compute_units,json=computeUnits,proto3" json:"compute_units,omitempty"`
	ComputeUnitsPerEpoch     uint64     `` /* 126-byte string literal not displayed */
	MaxProvidersToPair       uint64     `protobuf:"varint,7,opt,name=max_providers_to_pair,json=maxProvidersToPair,proto3" json:"max_providers_to_pair,omitempty"`
	AllowOveruse             bool       `protobuf:"varint,8,opt,name=allow_overuse,json=allowOveruse,proto3" json:"allow_overuse,omitempty"`
	OveruseRate              uint64     `protobuf:"varint,9,opt,name=overuse_rate,json=overuseRate,proto3" json:"overuse_rate,omitempty"`
	Description              string     `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	Type                     string     `protobuf:"bytes,12,opt,name=type,proto3" json:"type,omitempty"`
	AnnualDiscountPercentage uint64     `` /* 137-byte string literal not displayed */
}

func (*PlanV2) Descriptor added in v0.10.0

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

func (*PlanV2) Equal added in v0.10.0

func (this *PlanV2) Equal(that interface{}) bool

func (*PlanV2) GetAllowOveruse added in v0.10.0

func (m *PlanV2) GetAllowOveruse() bool

func (*PlanV2) GetAnnualDiscountPercentage added in v0.10.0

func (m *PlanV2) GetAnnualDiscountPercentage() uint64

func (*PlanV2) GetBlock added in v0.10.0

func (m *PlanV2) GetBlock() uint64

func (*PlanV2) GetComputeUnits added in v0.10.0

func (m *PlanV2) GetComputeUnits() uint64

func (*PlanV2) GetComputeUnitsPerEpoch added in v0.10.0

func (m *PlanV2) GetComputeUnitsPerEpoch() uint64

func (*PlanV2) GetDescription added in v0.10.0

func (m *PlanV2) GetDescription() string

func (*PlanV2) GetIndex added in v0.10.0

func (m *PlanV2) GetIndex() string

func (*PlanV2) GetMaxProvidersToPair added in v0.10.0

func (m *PlanV2) GetMaxProvidersToPair() uint64

func (*PlanV2) GetOveruseRate added in v0.10.0

func (m *PlanV2) GetOveruseRate() uint64

func (*PlanV2) GetPrice added in v0.10.0

func (m *PlanV2) GetPrice() types.Coin

func (*PlanV2) GetType added in v0.10.0

func (m *PlanV2) GetType() string

func (*PlanV2) Marshal added in v0.10.0

func (m *PlanV2) Marshal() (dAtA []byte, err error)

func (*PlanV2) MarshalTo added in v0.10.0

func (m *PlanV2) MarshalTo(dAtA []byte) (int, error)

func (*PlanV2) MarshalToSizedBuffer added in v0.10.0

func (m *PlanV2) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PlanV2) ProtoMessage added in v0.10.0

func (*PlanV2) ProtoMessage()

func (*PlanV2) Reset added in v0.10.0

func (m *PlanV2) Reset()

func (*PlanV2) Size added in v0.10.0

func (m *PlanV2) Size() (n int)

func (*PlanV2) String added in v0.10.0

func (m *PlanV2) String() string

func (*PlanV2) Unmarshal added in v0.10.0

func (m *PlanV2) Unmarshal(dAtA []byte) error

func (*PlanV2) XXX_DiscardUnknown added in v0.10.0

func (m *PlanV2) XXX_DiscardUnknown()

func (*PlanV2) XXX_Marshal added in v0.10.0

func (m *PlanV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlanV2) XXX_Merge added in v0.10.0

func (m *PlanV2) XXX_Merge(src proto.Message)

func (*PlanV2) XXX_Size added in v0.10.0

func (m *PlanV2) XXX_Size() int

func (*PlanV2) XXX_Unmarshal added in v0.10.0

func (m *PlanV2) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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