v2

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EpochPaymentsKeyPrefix is the prefix to retrieve all EpochPayments
	EpochPaymentsKeyPrefix                      = "EpochPayments/value/"
	ProviderPaymentStorageKeyPrefix             = "ProviderPaymentStorage/value/"
	UniquePaymentStorageClientProviderKeyPrefix = "UniquePaymentStorageClientProvider/value/"
)

Variables

View Source
var (
	ErrInvalidLengthEpochPayments        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEpochPayments          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEpochPayments = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProviderPaymentStorage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProviderPaymentStorage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProviderPaymentStorage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUniquePaymentStorageClientProvider        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUniquePaymentStorageClientProvider          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUniquePaymentStorageClientProvider = fmt.Errorf("proto: unexpected end of group")
)

Functions

func EpochPaymentsKey

func EpochPaymentsKey(
	index string,
) []byte

EpochPaymentsKey returns the store key to retrieve a EpochPayments from the index fields

func ProviderPaymentStorageKey

func ProviderPaymentStorageKey(
	index string,
) []byte

ProviderPaymentStorageKey returns the store key to retrieve a ProviderPaymentStorage from the index fields

func RemoveAllEpochPayments

func RemoveAllEpochPayments(ctx sdk.Context, storeKey storetypes.StoreKey)

RemoveAllEpochPayments removes all epochPayments

func RemoveAllProviderPaymentStorage

func RemoveAllProviderPaymentStorage(ctx sdk.Context, storeKey storetypes.StoreKey)

RemoveAllProviderPaymentStorage removes all providerPaymentStorage

func RemoveAllUniquePaymentStorageClientProvider

func RemoveAllUniquePaymentStorageClientProvider(ctx sdk.Context, storeKey storetypes.StoreKey)

RemoveAllUniquePaymentStorageClientProvider removes all uniquePaymentStorageClientProvider

func UniquePaymentStorageClientProviderKey

func UniquePaymentStorageClientProviderKey(
	index string,
) []byte

Types

type EpochPayments

type EpochPayments struct {
	Index                      string   `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	ProviderPaymentStorageKeys []string `protobuf:"bytes,3,rep,name=providerPaymentStorageKeys,proto3" json:"providerPaymentStorageKeys,omitempty"`
}

func (*EpochPayments) Descriptor

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

func (*EpochPayments) GetIndex

func (m *EpochPayments) GetIndex() string

func (*EpochPayments) GetProviderPaymentStorageKeys

func (m *EpochPayments) GetProviderPaymentStorageKeys() []string

func (*EpochPayments) Marshal

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

func (*EpochPayments) MarshalTo

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

func (*EpochPayments) MarshalToSizedBuffer

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

func (*EpochPayments) ProtoMessage

func (*EpochPayments) ProtoMessage()

func (*EpochPayments) Reset

func (m *EpochPayments) Reset()

func (*EpochPayments) Size

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

func (*EpochPayments) String

func (m *EpochPayments) String() string

func (*EpochPayments) Unmarshal

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

func (*EpochPayments) XXX_DiscardUnknown

func (m *EpochPayments) XXX_DiscardUnknown()

func (*EpochPayments) XXX_Marshal

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

func (*EpochPayments) XXX_Merge

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

func (*EpochPayments) XXX_Size

func (m *EpochPayments) XXX_Size() int

func (*EpochPayments) XXX_Unmarshal

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

type ProviderPaymentStorage

type ProviderPaymentStorage struct {
	Index                                  string   `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Epoch                                  uint64   `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
	UniquePaymentStorageClientProviderKeys []string `` /* 129-byte string literal not displayed */
	ComplainersTotalCu                     uint64   `protobuf:"varint,6,opt,name=complainersTotalCu,proto3" json:"complainersTotalCu,omitempty"`
}

func (*ProviderPaymentStorage) Descriptor

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

func (*ProviderPaymentStorage) GetComplainersTotalCu

func (m *ProviderPaymentStorage) GetComplainersTotalCu() uint64

func (*ProviderPaymentStorage) GetEpoch

func (m *ProviderPaymentStorage) GetEpoch() uint64

func (*ProviderPaymentStorage) GetIndex

func (m *ProviderPaymentStorage) GetIndex() string

func (*ProviderPaymentStorage) GetUniquePaymentStorageClientProviderKeys

func (m *ProviderPaymentStorage) GetUniquePaymentStorageClientProviderKeys() []string

func (*ProviderPaymentStorage) Marshal

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

func (*ProviderPaymentStorage) MarshalTo

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

func (*ProviderPaymentStorage) MarshalToSizedBuffer

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

func (*ProviderPaymentStorage) ProtoMessage

func (*ProviderPaymentStorage) ProtoMessage()

func (*ProviderPaymentStorage) Reset

func (m *ProviderPaymentStorage) Reset()

func (*ProviderPaymentStorage) Size

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

func (*ProviderPaymentStorage) String

func (m *ProviderPaymentStorage) String() string

func (*ProviderPaymentStorage) Unmarshal

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

func (*ProviderPaymentStorage) XXX_DiscardUnknown

func (m *ProviderPaymentStorage) XXX_DiscardUnknown()

func (*ProviderPaymentStorage) XXX_Marshal

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

func (*ProviderPaymentStorage) XXX_Merge

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

func (*ProviderPaymentStorage) XXX_Size

func (m *ProviderPaymentStorage) XXX_Size() int

func (*ProviderPaymentStorage) XXX_Unmarshal

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

type UniquePaymentStorageClientProvider

type UniquePaymentStorageClientProvider struct {
	Index  string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Block  uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	UsedCU uint64 `protobuf:"varint,3,opt,name=usedCU,proto3" json:"usedCU,omitempty"`
}

func (*UniquePaymentStorageClientProvider) Descriptor

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

func (*UniquePaymentStorageClientProvider) GetBlock

func (*UniquePaymentStorageClientProvider) GetIndex

func (*UniquePaymentStorageClientProvider) GetUsedCU

func (*UniquePaymentStorageClientProvider) Marshal

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

func (*UniquePaymentStorageClientProvider) MarshalTo

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

func (*UniquePaymentStorageClientProvider) MarshalToSizedBuffer

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

func (*UniquePaymentStorageClientProvider) ProtoMessage

func (*UniquePaymentStorageClientProvider) ProtoMessage()

func (*UniquePaymentStorageClientProvider) Reset

func (*UniquePaymentStorageClientProvider) Size

func (*UniquePaymentStorageClientProvider) String

func (*UniquePaymentStorageClientProvider) Unmarshal

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

func (*UniquePaymentStorageClientProvider) XXX_DiscardUnknown

func (m *UniquePaymentStorageClientProvider) XXX_DiscardUnknown()

func (*UniquePaymentStorageClientProvider) XXX_Marshal

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

func (*UniquePaymentStorageClientProvider) XXX_Merge

func (*UniquePaymentStorageClientProvider) XXX_Size

func (*UniquePaymentStorageClientProvider) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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