types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyInfoNotFound = fmt.Errorf("key info not found")
	ErrKeyExists       = fmt.Errorf("key already exists")
)
View Source
var AssertCidsEqual = internal.AssertCidsEqual
View Source
var AssertHaveSameCid = internal.AssertHaveSameCid
View Source
var AttoFil = internal.AttoFil
View Source
var BigAdd = internal.BigAdd
View Source
var BigCmp = internal.BigCmp
View Source
var BigDiv = internal.BigDiv
View Source
var BigDivFloat = internal.BigDivFloat
View Source
var BigFromBytes = internal.BigFromBytes
View Source
var BigFromString = internal.BigFromString
View Source
var BigMod = internal.BigMod
View Source
var BigMul = internal.BigMul
View Source
var BigSub = internal.BigSub
View Source
var BlocksPerEpoch = internal.BlocksPerEpoch
View Source
var CidArrsEqual = internal.CidArrsEqual
View Source
var CidFromString = internal.CidFromString
View Source
var DeciStr = internal.DeciStr
View Source
var DecodeBlock = internal.DecodeBlock
View Source
var DecodeMessage = internal.DecodeMessage
View Source
var DefaultMessageSendSpec = MessageSendSpec{

	MaxFee: abi.NewTokenAmount(int64(constants.FilecoinPrecision) / 10),
}
View Source
var EmptyInt = internal.EmptyInt
View Source
var EmptyReceipts = internal.EmptyReceipts
View Source
var EmptyTSK = internal.EmptyTSK
View Source
var EmptyTokenAmount = internal.EmptyTokenAmount
View Source
var ErrActorNotFound = internal.ErrActorNotFound
View Source
var ErrNotFound = internal.ErrNotFound
View Source
var FemtoFil = internal.FemtoFil
View Source
var FromFil = internal.FromFil
View Source
var MaxWinCount = internal.MaxWinCount
View Source
var MessageVersion = internal.MessageVersion
View Source
var MustGenerateBLSKeyInfo = internal.MustGenerateBLSKeyInfo
View Source
var MustGenerateKeyInfo = internal.MustGenerateKeyInfo
View Source
var MustGenerateMixedKeyInfo = internal.MustGenerateMixedKeyInfo
View Source
var MustParseFIL = internal.MustParseFIL
View Source
var NanoFil = internal.NanoFil
View Source
var NewActor = internal.NewActor
View Source
var NewAttoFIL = internal.NewAttoFIL
View Source
var NewAttoFILFromFIL = internal.NewAttoFILFromFIL
View Source
var NewAttoFILFromFILString = internal.NewAttoFILFromFILString
View Source
var NewAttoFILFromString = internal.NewAttoFILFromString
View Source
var NewCidForTestGetter = internal.NewCidForTestGetter
View Source
var NewForTestGetter = internal.NewForTestGetter
View Source
var NewFullTipSet = internal.NewFullTipSet
View Source
var NewGasFeeCap = internal.NewGasFeeCap
View Source
var NewGasPremium = internal.NewGasPremium
View Source
var NewInt = internal.NewInt
View Source
var NewMessageForTestGetter = internal.NewMessageForTestGetter
View Source
var NewMessageMaker = internal.NewMessageMaker
View Source
var NewMeteredMessage = internal.NewMeteredMessage
View Source
var NewMockSigner = internal.NewMockSigner
View Source
var NewMockSignersAndKeyInfo = internal.NewMockSignersAndKeyInfo
View Source
var NewMsgs = internal.NewMsgs
View Source
var NewMsgsWithAddrs = internal.NewMsgsWithAddrs
View Source
var NewReceiptMaker = internal.NewReceiptMaker
View Source
var NewSignedMessage = internal.NewSignedMessage
View Source
var NewSignedMessageForTestGetter = internal.NewSignedMessageForTestGetter
View Source
var NewSignedMsgs = internal.NewSignedMsgs
View Source
var NewTipSet = internal.NewTipSet
View Source
var NewTipSetKey = internal.NewTipSetKey
View Source
var NewUnsignedMessage = internal.NewUnsignedMessage
View Source
var ParseFIL = internal.ParseFIL

func redefine

View Source
var PicoFil = internal.PicoFil
View Source
var RequireIDAddress = internal.RequireIDAddress
View Source
var RequireNewTipSet = internal.RequireNewTipSet
View Source
var ReverseFullBlock = internal.ReverseFullBlock
View Source
var ReverseTipSet = internal.ReverseTipSet
View Source
var SignMsgs = internal.SignMsgs
View Source
var SizeStr = internal.SizeStr
View Source
var TipSetKeyFromBytes = internal.TipSetKeyFromBytes
View Source
var TotalFilecoinInt = internal.TotalFilecoinInt
View Source
var UndefTipSet = internal.UndefTipSet
View Source
var ZeroAddress = internal.ZeroAddress
View Source
var ZeroFIL = internal.ZeroFIL

value redefine

Functions

This section is empty.

Types

type Actor

type Actor = internal.Actor

type BeaconEntry added in v0.9.1

type BeaconEntry = internal.BeaconEntry

type BigInt added in v0.9.1

type BigInt = internal.BigInt

type BlockHeader added in v0.9.1

type BlockHeader = internal.BlockHeader

type BlockMessagesInfo added in v0.9.1

type BlockMessagesInfo = internal.BlockMessagesInfo

type redefine

type BlockMsg added in v0.9.1

type BlockMsg = internal.BlockMsg

type ChainInfo added in v0.9.1

type ChainInfo struct {
	// The originator of the TipSetKey propagation wave.
	Source peer.ID
	// The peer that sent us the TipSetKey message.
	Sender peer.ID
	Head   *internal.TipSet
}

ChainInfo is used to track metadata about a peer and its chain.

func NewChainInfo added in v0.9.1

func NewChainInfo(source peer.ID, sender peer.ID, head *internal.TipSet) *ChainInfo

NewChainInfo creates a chain info from a peer id a head tipset key and a chain height.

func (*ChainInfo) String added in v0.9.1

func (i *ChainInfo) String() string

String returns a human-readable string representation of a chain info

type ChainMsg

type ChainMsg = internal.ChainMsg

type ChainSectorInfo added in v1.1.0

type ChainSectorInfo struct {
	Info miner.SectorOnChainInfo
	ID   abi.SectorNumber
}

type CirculatingSupply added in v1.1.0

type CirculatingSupply struct {
	FilVested      abi.TokenAmount
	FilMined       abi.TokenAmount
	FilBurnt       abi.TokenAmount
	FilLocked      abi.TokenAmount
	FilCirculating abi.TokenAmount
}

type DealCollateralBounds added in v1.1.0

type DealCollateralBounds struct {
	Min abi.TokenAmount
	Max abi.TokenAmount
}

type ElectionProof added in v0.9.1

type ElectionProof = internal.ElectionProof

type EstimateMessage added in v0.9.7

type EstimateMessage struct {
	Msg  *Message
	Spec *MessageSendSpec
}

type EstimateResult added in v0.9.7

type EstimateResult struct {
	Msg *Message
	Err string
}

type ExecutionTrace

type ExecutionTrace struct {
	Msg        *internal.UnsignedMessage
	MsgRct     *internal.MessageReceipt
	Error      string
	Duration   time.Duration
	GasCharges []*GasTrace

	Subcalls []ExecutionTrace
}

type FIL

type FIL = internal.FIL

type FullBlock added in v0.9.1

type FullBlock = internal.FullBlock

type FullTipSet added in v0.9.1

type FullTipSet = internal.FullTipSet

type GasTrace

type GasTrace struct {
	Name string

	Location          []Loc `json:"loc"`
	TotalGas          int64 `json:"tg"`
	ComputeGas        int64 `json:"cg"`
	StorageGas        int64 `json:"sg"`
	TotalVirtualGas   int64 `json:"vtg"`
	VirtualComputeGas int64 `json:"vcg"`
	VirtualStorageGas int64 `json:"vsg"`

	TimeTaken time.Duration `json:"tt"`
	Extra     interface{}   `json:"ex,omitempty"`

	Callers []uintptr `json:"-"`
}

func (*GasTrace) MarshalJSON

func (gt *GasTrace) MarshalJSON() ([]byte, error)

type HasCid

type HasCid = internal.HasCid

type InvocResult added in v0.9.1

type InvocResult struct {
	MsgCid         cid.Cid
	Msg            *internal.UnsignedMessage
	MsgRct         *internal.MessageReceipt
	GasCost        *MsgGasCost
	ExecutionTrace *ExecutionTrace
	Error          string
	Duration       time.Duration
}

type KeyType added in v0.9.1

type KeyType string

KeyType defines a type of a key

const (
	KTBLS             KeyType = "bls"
	KTSecp256k1       KeyType = "secp256k1"
	KTSecp256k1Ledger KeyType = "secp256k1-ledger"
)

func (*KeyType) UnmarshalJSON added in v0.9.1

func (kt *KeyType) UnmarshalJSON(bb []byte) error

type Loc

type Loc struct {
	File     string
	Line     int
	Function string
}

func (Loc) Important

func (l Loc) Important() bool

func (Loc) Show

func (l Loc) Show() bool

func (Loc) String

func (l Loc) String() string

type MarketDeal added in v1.1.0

type MarketDeal struct {
	Proposal market.DealProposal
	State    market.DealState
}

type Message added in v0.9.1

type Message = internal.Message

type MessageMaker

type MessageMaker = internal.MessageMaker

type MessageReceipt

type MessageReceipt = internal.MessageReceipt

type MessageSendSpec

type MessageSendSpec struct {
	MaxFee            abi.TokenAmount
	GasOverEstimation float64
}

func (*MessageSendSpec) Get

func (ms *MessageSendSpec) Get() MessageSendSpec

type MockSigner

type MockSigner = internal.MockSigner

type MsgGasCost added in v0.9.1

type MsgGasCost struct {
	Message            cid.Cid // Can be different than requested, in case it was replaced, but only gas values changed
	GasUsed            abi.TokenAmount
	BaseFeeBurn        abi.TokenAmount
	OverEstimationBurn abi.TokenAmount
	MinerPenalty       abi.TokenAmount
	MinerTip           abi.TokenAmount
	Refund             abi.TokenAmount
	TotalCost          abi.TokenAmount
}

type NetworkPower added in v1.1.0

type NetworkPower struct {
	RawBytePower         abi.StoragePower
	QualityAdjustedPower abi.StoragePower
	MinerCount           int64
	MinPowerMinerCount   int64
}

type PCHDir added in v0.9.1

type PCHDir int
const (
	PCHUndef PCHDir = iota
	PCHInbound
	PCHOutbound
)

type PaychStatus added in v0.9.1

type PaychStatus struct {
	ControlAddr address.Address
	Direction   PCHDir
}

type ReceiptMaker

type ReceiptMaker = internal.ReceiptMaker

type SignedMessage

type SignedMessage = internal.SignedMessage

type Signer

type Signer = internal.Signer

type Ticket added in v0.9.1

type Ticket = internal.Ticket

type TipSet added in v0.9.1

type TipSet = internal.TipSet

type TipSetKey added in v0.9.1

type TipSetKey = internal.TipSetKey

type TxMeta

type TxMeta = internal.TxMeta

type UnsignedMessage

type UnsignedMessage = internal.UnsignedMessage

type VRFPi added in v0.9.1

type VRFPi = internal.VRFPi

Jump to

Keyboard shortcuts

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