gateway

package
v1.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeProofRequest

type ComputeProofRequest struct {
	SectorInfos []builtin.ExtendedSectorInfo
	Rand        abi.PoStRandomness
	Height      abi.ChainEpoch
	NWVersion   network.Version
}

type ConnectState

type ConnectState struct {
	Addrs        []address.Address
	ChannelID    types.UUID `json:"ChannelId"`
	IP           string     `json:"Ip"`
	RequestCount int
	CreateTime   time.Time
}

type ConnectedCompleted

type ConnectedCompleted struct {
	ChannelId types.UUID // nolint
}

type ConnectionStates

type ConnectionStates struct {
	Connections     []*ConnectState
	ConnectionCount int
}

type MarketConnectionState

type MarketConnectionState struct {
	Addr address.Address
	Conn ConnectionStates
}

type MarketRegisterPolicy

type MarketRegisterPolicy struct {
	Miner address.Address
}

type MinerState

type MinerState struct {
	Connections     []*ConnectState
	ConnectionCount int
}

type ProofRegisterPolicy

type ProofRegisterPolicy struct {
	MinerAddress address.Address
}

type RequestEvent

type RequestEvent struct {
	ID         types.UUID `json:"Id"`
	Method     string
	Payload    []byte
	CreateTime time.Time           `json:"-"`
	Result     chan *ResponseEvent `json:"-"`
}

type ResponseEvent

type ResponseEvent struct {
	ID      types.UUID `json:"Id"`
	Payload []byte
	Error   string
}

type UnsealRequest

type UnsealRequest struct {
	PieceCid cid.Cid
	Miner    address.Address
	Sid      abi.SectorNumber
	Offset   types.UnpaddedByteIndex
	Size     abi.UnpaddedPieceSize
	Dest     string
}

type UnsealState added in v1.12.0

type UnsealState string
const (
	UnsealStateSet       UnsealState = "set_up"
	UnsealStateFinished  UnsealState = "finished"
	UnsealStateFailed    UnsealState = "failed"
	UnsealStateUnsealing UnsealState = "unsealing"
	UnsealStateUploading UnsealState = "uploading"
)

type WalletDetail

type WalletDetail struct {
	Account         string
	SupportAccounts []string
	ConnectStates   []ConnectState
}

type WalletRegisterPolicy

type WalletRegisterPolicy struct {
	SupportAccounts []string
	// a slice byte provide by wallet, using to verify address is really exist
	SignBytes []byte
}

type WalletSignRequest

type WalletSignRequest struct {
	Signer address.Address
	ToSign []byte
	Meta   types.MsgMeta
}

Jump to

Keyboard shortcuts

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