filtypes

package
v0.0.0-...-69d8405 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package filtypes carries definitions for the modern fil-market protocols While they were pioneered by Boost, we are trying to avoid a hard dependency on the suite of libs, which are much more SP-centric.

Index

Constants

View Source
const (
	RetrievalQueryAsk   = "/fil/retrieval/qry/1.0.0"        // use the 1.0 protocol even if we do not care about PCIDs
	RetrievalTransports = "/fil/retrieval/transports/1.0.0" // this is boost-specific, do not bring extra dependency
	StorageProposalV120 = "/fil/storage/mk/1.2.0"           // same: boost-specific
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RetrievalTransports100RawResponse

type RetrievalTransports100RawResponse struct {
	Protocols []struct {
		Name      string
		Addresses [][]byte
	}
}

RetrievalTransports100RawResponse is a copy of https://github.com/filecoin-project/boost/blob/v1.5.0/retrievalmarket/types/transports.go#L12-L21

func (*RetrievalTransports100RawResponse) UnmarshalCBOR

func (rs *RetrievalTransports100RawResponse) UnmarshalCBOR(r io.Reader) error

cbor-gen does not like [][]byte, so just do things the old way here

type StorageProposalV120Response

type StorageProposalV120Response struct {
	Accepted bool
	// Message is the reason the deal proposal was rejected.
	// It is empty if the deal was accepted 🤦
	Message string
}

StorageProposalV120Response is a copy of https://github.com/filecoin-project/boost/blob/v1.5.0/storagemarket/types/types.go#L142-L147

func (*StorageProposalV120Response) MarshalCBOR

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

func (*StorageProposalV120Response) UnmarshalCBOR

func (t *StorageProposalV120Response) UnmarshalCBOR(r io.Reader) (err error)

type StorageProposalV12xParams

type StorageProposalV12xParams struct {
	DealUUID           uuid.UUID
	IsOffline          bool
	ClientDealProposal filmarket.ClientDealProposal
	DealDataRoot       cid.Cid
	RemoveUnsealedCopy bool
	SkipIPNIAnnounce   bool
}

StorageProposalV12xParams is an amalgam of https://github.com/filecoin-project/boost/blob/v1.5.0/storagemarket/types/types.go#L80-L84 and https://github.com/filecoin-project/boost/blob/v1.5.1-rc3/storagemarket/types/types.go#L80-L88

func (*StorageProposalV12xParams) MarshalCBOR

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

func (*StorageProposalV12xParams) UnmarshalCBOR

func (t *StorageProposalV12xParams) UnmarshalCBOR(r io.Reader) (err error)

Jump to

Keyboard shortcuts

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