Versions in this module Expand all Collapse all v0 v0.1.1 Jan 11, 2022 Changes in this version + const FilecoinPrecision + var EmptyInt = BigInt + var EmptyTSK = TipSetKey + func SizeStr(bi BigInt) string + type API interface + ChainGetMessage func(context.Context, cid.Cid) (*Message, error) + ChainHead func(context.Context) (*TipSet, error) + ChainReadObj func(context.Context, cid.Cid) ([]byte, error) + Close func() + GasEstimateMessageGas func(context.Context, *Message, *MessageSendSpec, TipSetKey) (*Message, error) + MpoolPush func(context.Context, *SignedMessage) (cid.Cid, error) + StateAccountKey func(context.Context, address.Address, TipSetKey) (address.Address, error) + StateCall func(context.Context, *Message, TipSetKey) (*InvocResult, error) + StateDealProviderCollateralBounds func(context.Context, abi.PaddedPieceSize, bool, TipSetKey) (DealCollateralBounds, error) + StateGetActor func(context.Context, address.Address, TipSetKey) (*Actor, error) + StateLookupID func(context.Context, address.Address, TipSetKey) (address.Address, error) + StateMarketBalance func(context.Context, address.Address, TipSetKey) (MarketBalance, error) + StateMinerInfo func(context.Context, address.Address, TipSetKey) (MinerInfo, error) + StateMinerProvingDeadline func(context.Context, address.Address, TipSetKey) (*dline.Info, error) + StateNetworkVersion func(context.Context, TipSetKey) (network.Version, error) + StateReadState func(context.Context, address.Address, TipSetKey) (*ActorState, error) + StateSearchMsg func(context.Context, cid.Cid) (*MsgLookup, error) + StateWaitMsg func(context.Context, cid.Cid, uint64) (*MsgLookup, error) + func NewLotusRPC(ctx context.Context, addr string, header http.Header) (API, error) + type APIEndpoint struct + Address string + Header http.Header + type Actor struct + Balance BigInt + Code cid.Cid + Head cid.Cid + Nonce uint64 + func (t *Actor) MarshalCBOR(w io.Writer) error + func (t *Actor) UnmarshalCBOR(r io.Reader) error + type ActorState struct + Balance BigInt + State interface{} + type BeaconEntry struct + Data []byte + Round uint64 + func (t *BeaconEntry) MarshalCBOR(w io.Writer) error + func (t *BeaconEntry) UnmarshalCBOR(r io.Reader) error + type BigInt = big2.Int + func BigAdd(a, b BigInt) BigInt + func BigDiv(a, b BigInt) BigInt + func BigMul(a, b BigInt) BigInt + func BigSub(a, b BigInt) BigInt + func NewInt(i uint64) BigInt + type BlockHeader struct + BLSAggregate *crypto.Signature + BeaconEntries []BeaconEntry + BlockSig *crypto.Signature + ElectionProof *ElectionProof + ForkSignaling uint64 + Height abi.ChainEpoch + Messages cid.Cid + Miner address.Address + ParentBaseFee abi.TokenAmount + ParentMessageReceipts cid.Cid + ParentStateRoot cid.Cid + ParentWeight BigInt + Parents []cid.Cid + Ticket *Ticket + Timestamp uint64 + WinPoStProof []proof.PoStProof + func (blk *BlockHeader) Cid() cid.Cid + func (blk *BlockHeader) LastTicket() *Ticket + func (blk *BlockHeader) Serialize() ([]byte, error) + func (blk *BlockHeader) ToStorageBlock() (block.Block, error) + func (t *BlockHeader) MarshalCBOR(w io.Writer) error + func (t *BlockHeader) UnmarshalCBOR(r io.Reader) error + type DealCollateralBounds struct + Max abi.TokenAmount + Min abi.TokenAmount + type ElectionProof struct + VRFProof []byte + WinCount int64 + func (t *ElectionProof) MarshalCBOR(w io.Writer) error + func (t *ElectionProof) UnmarshalCBOR(r io.Reader) error + type ExecutionTrace struct + Duration time.Duration + Error string + GasCharges []*GasTrace + Msg *Message + MsgRct *MessageReceipt + Subcalls []ExecutionTrace + type ExpTipSet struct + Blocks []*BlockHeader + Cids []cid.Cid + Height abi.ChainEpoch + func (t *ExpTipSet) MarshalCBOR(w io.Writer) error + func (t *ExpTipSet) UnmarshalCBOR(r io.Reader) error + type FIL BigInt + func ParseFIL(s string) (FIL, error) + func (f FIL) Short() string + func (f FIL) String() string + func (f FIL) Unitless() string + type GasTrace struct + Callers []uintptr + ComputeGas int64 + Extra interface{} + Location []Loc + Name string + StorageGas int64 + TimeTaken time.Duration + TotalGas int64 + TotalVirtualGas int64 + VirtualComputeGas int64 + VirtualStorageGas int64 + type InvocResult struct + Duration time.Duration + Error string + ExecutionTrace ExecutionTrace + GasCost MsgGasCost + Msg *Message + MsgCid cid.Cid + MsgRct *MessageReceipt + type Loc struct + File string + Function string + Line int + type LotusAPI struct + Methods struct{ ... } + func (a *LotusAPI) ChainGetMessage(ctx context.Context, c cid.Cid) (*Message, error) + func (a *LotusAPI) ChainHead(ctx context.Context) (*TipSet, error) + func (a *LotusAPI) ChainReadObj(ctx context.Context, c cid.Cid) ([]byte, error) + func (a *LotusAPI) Close() + func (a *LotusAPI) GasEstimateMessageGas(ctx context.Context, m *Message, mss *MessageSendSpec, tsk TipSetKey) (*Message, error) + func (a *LotusAPI) MpoolPush(ctx context.Context, sm *SignedMessage) (cid.Cid, error) + func (a *LotusAPI) StateAccountKey(ctx context.Context, addr address.Address, tsk TipSetKey) (address.Address, error) + func (a *LotusAPI) StateCall(ctx context.Context, msg *Message, tsk TipSetKey) (*InvocResult, error) + func (a *LotusAPI) StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, tsk TipSetKey) (DealCollateralBounds, error) + func (a *LotusAPI) StateGetActor(ctx context.Context, addr address.Address, tsk TipSetKey) (*Actor, error) + func (a *LotusAPI) StateLookupID(ctx context.Context, addr address.Address, tsk TipSetKey) (address.Address, error) + func (a *LotusAPI) StateMarketBalance(ctx context.Context, addr address.Address, tsk TipSetKey) (MarketBalance, error) + func (a *LotusAPI) StateMinerInfo(ctx context.Context, addr address.Address, tsk TipSetKey) (MinerInfo, error) + func (a *LotusAPI) StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk TipSetKey) (*dline.Info, error) + func (a *LotusAPI) StateNetworkVersion(ctx context.Context, tsk TipSetKey) (network.Version, error) + func (a *LotusAPI) StateReadState(ctx context.Context, addr address.Address, tsk TipSetKey) (*ActorState, error) + func (a *LotusAPI) StateSearchMsg(ctx context.Context, c cid.Cid) (*MsgLookup, error) + func (a *LotusAPI) StateWaitMsg(ctx context.Context, c cid.Cid, conf uint64) (*MsgLookup, error) + type MarketBalance struct + Escrow big2.Int + Locked big2.Int + type Message struct + From address.Address + GasFeeCap abi.TokenAmount + GasLimit int64 + GasPremium abi.TokenAmount + Method abi.MethodNum + Nonce uint64 + Params []byte + To address.Address + Value abi.TokenAmount + Version uint64 + func (m *Message) Caller() address.Address + func (m *Message) Cid() cid.Cid + func (m *Message) MarshalJSON() ([]byte, error) + func (m *Message) Receiver() address.Address + func (m *Message) Serialize() ([]byte, error) + func (m *Message) ToStorageBlock() (block.Block, error) + func (m *Message) ValueReceived() abi.TokenAmount + func (t *Message) MarshalCBOR(w io.Writer) error + func (t *Message) UnmarshalCBOR(r io.Reader) error + type MessageReceipt struct + ExitCode exitcode.ExitCode + GasUsed int64 + Return []byte + type MessageSendSpec struct + MaxFee abi.TokenAmount + type MinerInfo struct + ConsensusFaultElapsed abi.ChainEpoch + ControlAddresses []address.Address + Multiaddrs []abi.Multiaddrs + NewWorker address.Address + Owner address.Address + PeerId *peer.ID + SectorSize abi.SectorSize + WindowPoStPartitionSectors uint64 + WindowPoStProofType abi.RegisteredPoStProof + Worker address.Address + WorkerChangeEpoch abi.ChainEpoch + type MockLotusAPI struct + func NewMockLotusAPI() *MockLotusAPI + func (m *MockLotusAPI) ChainGetMessage(ctx context.Context, c cid.Cid) (*Message, error) + func (m *MockLotusAPI) ChainHead(context.Context) (*TipSet, error) + func (m *MockLotusAPI) ChainReadObj(ctx context.Context, c cid.Cid) ([]byte, error) + func (m *MockLotusAPI) Close() + func (m *MockLotusAPI) GasEstimateMessageGas(ctx context.Context, msg *Message, spec *MessageSendSpec, tsk TipSetKey) (*Message, error) + func (m *MockLotusAPI) MpoolPush(ctx context.Context, smsg *SignedMessage) (cid.Cid, error) + func (m *MockLotusAPI) SetAccountKey(addr address.Address, key address.Address) + func (m *MockLotusAPI) SetActor(act *Actor) + func (m *MockLotusAPI) SetActorState(state *ActorState) + func (m *MockLotusAPI) SetInvocResult(i *InvocResult) + func (m *MockLotusAPI) SetMsgLookup(lkp *MsgLookup) + func (m *MockLotusAPI) SetObject(obj []byte) + func (m *MockLotusAPI) SetObjectReader(r func(cid.Cid) []byte) + func (m *MockLotusAPI) StateAccountKey(ctx context.Context, addr address.Address, tsk TipSetKey) (address.Address, error) + func (m *MockLotusAPI) StateCall(ctx context.Context, msg *Message, tsk TipSetKey) (*InvocResult, error) + func (m *MockLotusAPI) StateDealProviderCollateralBounds(ctx context.Context, s abi.PaddedPieceSize, b bool, tsk TipSetKey) (DealCollateralBounds, error) + func (m *MockLotusAPI) StateGetActor(ctx context.Context, addr address.Address, tsk TipSetKey) (*Actor, error) + func (m *MockLotusAPI) StateLookupID(ctx context.Context, addr address.Address, tsk TipSetKey) (address.Address, error) + func (m *MockLotusAPI) StateMarketBalance(ctx context.Context, addr address.Address, tsk TipSetKey) (MarketBalance, error) + func (m *MockLotusAPI) StateMinerInfo(ctx context.Context, addr address.Address, tsk TipSetKey) (MinerInfo, error) + func (m *MockLotusAPI) StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk TipSetKey) (*dline.Info, error) + func (m *MockLotusAPI) StateNetworkVersion(ctx context.Context, tsk TipSetKey) (network.Version, error) + func (m *MockLotusAPI) StateReadState(ctx context.Context, addr address.Address, tsk TipSetKey) (*ActorState, error) + func (m *MockLotusAPI) StateSearchMsg(ctx context.Context, c cid.Cid) (*MsgLookup, error) + func (m *MockLotusAPI) StateWaitMsg(ctx context.Context, c cid.Cid, conf uint64) (*MsgLookup, error) + type MsgGasCost struct + BaseFeeBurn abi.TokenAmount + GasUsed abi.TokenAmount + Message cid.Cid + MinerPenalty abi.TokenAmount + MinerTip abi.TokenAmount + OverEstimationBurn abi.TokenAmount + Refund abi.TokenAmount + TotalCost abi.TokenAmount + type MsgLookup struct + Height abi.ChainEpoch + Message cid.Cid + Receipt MessageReceipt + ReturnDec interface{} + TipSet TipSetKey + type RawMessage Message + type RawSignedMessage SignedMessage + type SignedMessage struct + Message Message + Signature crypto.Signature + func (sm *SignedMessage) Cid() cid.Cid + func (sm *SignedMessage) MarshalJSON() ([]byte, error) + func (sm *SignedMessage) Serialize() ([]byte, error) + func (sm *SignedMessage) ToStorageBlock() (block.Block, error) + func (t *SignedMessage) MarshalCBOR(w io.Writer) error + func (t *SignedMessage) UnmarshalCBOR(r io.Reader) error + type Ticket struct + VRFProof []byte + func (t *Ticket) Equals(ot *Ticket) bool + func (t *Ticket) Less(o *Ticket) bool + func (t *Ticket) MarshalCBOR(w io.Writer) error + func (t *Ticket) UnmarshalCBOR(r io.Reader) error + type TipSet struct + func NewTipSet(blks []*BlockHeader) (*TipSet, error) + func (ts *TipSet) Height() abi.ChainEpoch + func (ts *TipSet) Key() TipSetKey + func (ts *TipSet) MarshalJSON() ([]byte, error) + func (ts *TipSet) UnmarshalJSON(b []byte) error + type TipSetKey struct + func NewTipSetKey(cids ...cid.Cid) TipSetKey + func TipSetKeyFromBytes(encoded []byte) (TipSetKey, error) + func (k *TipSetKey) UnmarshalJSON(b []byte) error + func (k TipSetKey) Bytes() []byte + func (k TipSetKey) Cids() []cid.Cid + func (k TipSetKey) MarshalJSON() ([]byte, error)