strgpwr

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateStorageMinerParams

type CreateStorageMinerParams struct {
	Owner      address.Address
	Worker     address.Address
	SectorSize uint64
	PeerID     peer.ID
}

func (*CreateStorageMinerParams) MarshalCBOR

func (t *CreateStorageMinerParams) MarshalCBOR(w io.Writer) error

func (*CreateStorageMinerParams) UnmarshalCBOR

func (t *CreateStorageMinerParams) UnmarshalCBOR(r io.Reader) error

type StoragePowerState

type StoragePowerState struct {
	Miners         cid.Cid
	ProvingBuckets cid.Cid // amt[ProvingPeriodBucket]hamt[minerAddress]struct{}
	MinerCount     uint64
	LastMinerCheck uint64

	TotalStorage types.BigInt
}

type UpdateStorageParams

type UpdateStorageParams struct {
	Delta                    types.BigInt
	NextProvingPeriodEnd     uint64
	PreviousProvingPeriodEnd uint64
}

func (*UpdateStorageParams) MarshalCBOR

func (t *UpdateStorageParams) MarshalCBOR(w io.Writer) error

func (*UpdateStorageParams) UnmarshalCBOR

func (t *UpdateStorageParams) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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