Documentation ¶
Index ¶
- Variables
- func ActorNameAndFamilyFromCode(c cid.Cid) (name string, family string, err error)
- func GetExecutedAndBlockMessagesForTipset(ctx context.Context, cs *store.ChainStore, sm *stmgr.StateManager, ...) (*lens.TipSetMessages, error)
- func MakeGetActorCodeFunc(ctx context.Context, store adt.Store, next, current *types.TipSet) (func(a address.Address) (cid.Cid, bool), error)
- func MarshalWithOverrides(v interface{}, overrides map[reflect.Type]marshaller) (out []byte, err error)
- func MethodAndParamsForMessage(m *types.Message, destCode cid.Cid) (string, string, error)
- func ParseParams(params []byte, method abi.MethodNum, actCode cid.Cid) (string, string, error)
- type CacheConfig
- type CachingBlockstore
- func (cs *CachingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (cs *CachingBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (cs *CachingBlockstore) DeleteMany(ctx context.Context, cids []cid.Cid) error
- func (cs *CachingBlockstore) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (cs *CachingBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (cs *CachingBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (cs *CachingBlockstore) HashOnRead(enabled bool)
- func (cs *CachingBlockstore) Put(ctx context.Context, blk blocks.Block) error
- func (cs *CachingBlockstore) PutMany(ctx context.Context, blks []blocks.Block) error
- func (cs *CachingBlockstore) View(ctx context.Context, c cid.Cid, callback func([]byte) error) error
- type CachingStateStore
- type Network
- type ProxyingBlockstore
- func (pb *ProxyingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (pb *ProxyingBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
- func (pb *ProxyingBlockstore) DeleteMany(ctx context.Context, keys []cid.Cid) error
- func (pb *ProxyingBlockstore) Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
- func (pb *ProxyingBlockstore) GetCount() int64
- func (pb *ProxyingBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (pb *ProxyingBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (pb *ProxyingBlockstore) HashOnRead(enabled bool)
- func (pb *ProxyingBlockstore) Put(ctx context.Context, b blocks.Block) error
- func (pb *ProxyingBlockstore) PutMany(ctx context.Context, bs []blocks.Block) error
- func (pb *ProxyingBlockstore) ResetMetrics()
- func (pb *ProxyingBlockstore) View(ctx context.Context, key cid.Cid, callback func([]byte) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ActorRegistry *vm.ActorRegistry
View Source
var DefaultNetwork = NewNetwork(filcns.DefaultUpgradeSchedule(), build.NewestNetworkVersion)
DefaultNetwork is the filecoing network this version of lily has been built against
Functions ¶
func GetExecutedAndBlockMessagesForTipset ¶
func GetExecutedAndBlockMessagesForTipset(ctx context.Context, cs *store.ChainStore, sm *stmgr.StateManager, current, executed *types.TipSet) (*lens.TipSetMessages, error)
GetMessagesForTipset returns a list of messages sent as part of pts (parent) with receipts found in ts (child). No attempt at deduplication of messages is made. A list of blocks with their corresponding messages is also returned - it contains all messages in the block regardless if they were applied during the state change.
func MakeGetActorCodeFunc ¶
func MarshalWithOverrides ¶ added in v0.8.6
Types ¶
type CacheConfig ¶ added in v0.8.6
type CachingBlockstore ¶ added in v0.8.6
type CachingBlockstore struct {
// contains filtered or unexported fields
}
func NewCachingBlockstore ¶ added in v0.8.6
func NewCachingBlockstore(blocks blockstore.Blockstore, cacheSize int) (*CachingBlockstore, error)
func (*CachingBlockstore) AllKeysChan ¶ added in v0.8.6
func (cs *CachingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*CachingBlockstore) DeleteBlock ¶ added in v0.8.6
func (cs *CachingBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
func (*CachingBlockstore) DeleteMany ¶ added in v0.8.6
func (cs *CachingBlockstore) DeleteMany(ctx context.Context, cids []cid.Cid) error
func (*CachingBlockstore) GetSize ¶ added in v0.8.6
func (cs *CachingBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*CachingBlockstore) Has ¶ added in v0.8.6
func (cs *CachingBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
func (*CachingBlockstore) HashOnRead ¶ added in v0.8.6
func (cs *CachingBlockstore) HashOnRead(enabled bool)
type CachingStateStore ¶ added in v0.8.6
type CachingStateStore struct {
// contains filtered or unexported fields
}
func NewCachingStateStore ¶ added in v0.8.6
func NewCachingStateStore(blocks blockstore.Blockstore, cacheSize int) (*CachingStateStore, error)
func (*CachingStateStore) Context ¶ added in v0.8.6
func (cas *CachingStateStore) Context() context.Context
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
Network holds properties of the filecoin network
func NewNetwork ¶
func NewNetwork(us stmgr.UpgradeSchedule, current network.Version) *Network
type ProxyingBlockstore ¶
type ProxyingBlockstore struct {
// contains filtered or unexported fields
}
func NewCachingStore ¶
func NewCachingStore(backing blockstore.Blockstore) *ProxyingBlockstore
func (*ProxyingBlockstore) AllKeysChan ¶
func (pb *ProxyingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*ProxyingBlockstore) DeleteBlock ¶
func (pb *ProxyingBlockstore) DeleteBlock(ctx context.Context, c cid.Cid) error
func (*ProxyingBlockstore) DeleteMany ¶
func (pb *ProxyingBlockstore) DeleteMany(ctx context.Context, keys []cid.Cid) error
func (*ProxyingBlockstore) GetCount ¶
func (pb *ProxyingBlockstore) GetCount() int64
func (*ProxyingBlockstore) GetSize ¶
func (pb *ProxyingBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*ProxyingBlockstore) Has ¶
func (pb *ProxyingBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
func (*ProxyingBlockstore) HashOnRead ¶
func (pb *ProxyingBlockstore) HashOnRead(enabled bool)
func (*ProxyingBlockstore) ResetMetrics ¶
func (pb *ProxyingBlockstore) ResetMetrics()
Click to show internal directories.
Click to hide internal directories.