utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromOnChainDeal

func FromOnChainDeal(deal actors.OnChainDeal) storagemarket.StorageDeal

func FromSharedSignature

func FromSharedSignature(in *sharedtypes.Signature) (*types.Signature, error)

func FromSharedSignedVoucher

func FromSharedSignedVoucher(in *sharedtypes.SignedVoucher) (*types.SignedVoucher, error)

func FromSharedStorageDealProposal

func FromSharedStorageDealProposal(proposal *storagemarket.StorageDealProposal) (*actors.StorageDealProposal, error)

func FromSharedTokenAmount

func FromSharedTokenAmount(in sharedamount.TokenAmount) types.BigInt

func NewStorageProviderInfo

func NewStorageProviderInfo(address address.Address, miner address.Address, sectorSize uint64, peer peer.ID) storagemarket.StorageProviderInfo

func ToSharedSignature

func ToSharedSignature(in *types.Signature) (*sharedtypes.Signature, error)

func ToSharedSignedVoucher

func ToSharedSignedVoucher(in *types.SignedVoucher) (*sharedtypes.SignedVoucher, error)

func ToSharedStorageDealProposal

func ToSharedStorageDealProposal(proposal *actors.StorageDealProposal) (*storagemarket.StorageDealProposal, error)

func ToSharedTokenAmount

func ToSharedTokenAmount(in types.BigInt) sharedamount.TokenAmount

Types

This section is empty.

Jump to

Keyboard shortcuts

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