Documentation ¶
Index ¶
- func AddAddressToMessageIndex(ctx context.Context, msg *api.Message, ts *types.TipSet, wb *badger.WriteBatch)
- func AddressConvert(id string) (*model.Address, error)
- func AddressLookup(id string) (*model.Address, error)
- func DecodeAddress(val []byte) (address.Address, error)
- func DecodeIdAddress(val []byte) (address.Address, error)
- func DecodeLotusMessage(val []byte) (*api.Message, error)
- func DecodeMessage(val []byte) (*model.Message, error)
- func ExistsTipSet(tsk types.TipSetKey) bool
- func GetIdAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey, ...) (address.Address, error)
- func GetLotusMessage(cid gocid.Cid, ts *types.TipSet, wb *badger.WriteBatch) (*api.Message, error)
- func GetMaxHeight() uint32
- func GetMessage(cid string) (*model.Message, error)
- func GetRobustAddress(ctx context.Context, id address.Address, tsk types.TipSetKey, ...) (address.Address, error)
- func GetTipSet(tsk types.TipSetKey, wb *badger.WriteBatch) (*types.TipSet, error)
- func GetTipSetByHeight(height uint64) (*types.TipSet, error)
- func GetTipSetKeyByHeight(height uint64) (*types.TipSetKey, error)
- func GetTipSetMessages(ts *types.TipSet, wb *badger.WriteBatch) ([]api.Message, error)
- func LookupIdAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func LookupRobustAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func SearchMessagesByAddress(ctx context.Context, address string, limit *int, offset *int) ([]*model.Message, error)
- func SearchMessagesByHeight(ctx context.Context, height uint64, limit *int, offset *int) ([]*model.Message, error)
- func SetAddressIndex(ctx context.Context, addr address.Address, ulid ulid.ULID, cid cid.Cid, ...)
- func SetAddressToId(robust address.Address, id address.Address, wb *badger.WriteBatch) error
- func SetIdToAddress(id address.Address, robust address.Address, wb *badger.WriteBatch) error
- func SetMessage(message api.Message, ts *types.TipSet, wb *badger.WriteBatch) (bool, error)
- func SetMessageNoIndex(message api.Message, ts *types.TipSet, wb *badger.WriteBatch) error
- func SetTipSet(ts *types.TipSet, wb *badger.WriteBatch) error
- func SetTipSetMessages(tsk types.TipSetKey, messages []api.Message, wb *badger.WriteBatch) (bool, error)
- func Sync(p0 context.Context, _confidence uint64, _height uint64, _length uint64)
- func SyncMessages(p0 context.Context, _confidence uint64, _height uint64, _length uint64)
- func SyncMessagesFromLily(p0 context.Context, ts *types.TipSet, wb *badger.WriteBatch) error
- func SyncStatus() *model.Status
- func SyncTipSetMessages(p0 context.Context, ts *types.TipSet, wb *badger.WriteBatch) (int, error)
- func SyncTipSetTop(p0 context.Context) error
- func SyncTipsetStart(ctx context.Context, _confidence uint64, _height uint64, _length uint64)
- func SyncTipsetWorker(ctx context.Context, id int, jobs <-chan types.TipSetKey, ...)
- func SyncTipset_deleteme(p0 context.Context, _confidence uint64, _height uint64, _length uint64)
- func TipSetKeyFromString(value string) (types.TipSetKey, error)
- func UpdateTipSetMessages(ts *types.TipSet, wb *badger.WriteBatch) (bool, error)
- func ValidateMessages(height uint64)
- type Actor
- type Cache
- type LotusNode
- type LotusOptions
- type Match
- type Node
- func (t *Node) AddressGetID(id string) (address.Address, error)
- func (t *Node) AddressGetRobust(id string) (address.Address, error)
- func (t *Node) ChainGetMessagesInTipset(p0 context.Context, p1 types.TipSetKey, p3 int) ([]*api.InvocResult, error)
- func (t *Node) ChainGetTipSet(p0 context.Context, p1 types.TipSetKey) (*types.TipSet, error)
- func (t *Node) ChainHead(ctx context.Context) (*types.TipSet, error)
- func (t *Node) ChainHeadSub(ctx context.Context) (<-chan []*api.HeadChange, error)
- func (t *Node) Close()
- func (t *Node) Connect(address1 string, token string) (dtypes.NetworkName, error)
- func (t *Node) GetActor(id string) (*types.Actor, error)
- func (t *Node) GetMessage(id string) (*types.Message, error)
- func (t *Node) GetPending() ([]*types.SignedMessage, error)
- func (t *Node) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error)
- func (t *Node) MsigGetPending(addr string) ([]*api.MsigTransaction, error)
- func (t *Node) Node() *Node
- func (t *Node) SearchState(ctx context.Context, match Match, limit *int, offset *int, height int) ([]*SearchStateStruct, int, error)
- func (t *Node) StartCache()
- func (t *Node) StateListMessages(ctx context.Context, addr string, lookback int) ([]*api.InvocResult, error)
- func (t *Node) StateReplay(ctx context.Context, p1 types.TipSetKey, p2 cid.Cid) (*api.InvocResult, error)
- func (t *Node) StateSearchMsg(id string) (*api.MsgLookup, error)
- func (t *Node) SyncTimerStart(confidence uint32)
- func (t *Node) SyncTimerStop()
- type NodeInterface
- type SearchStateStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAddress ¶
func DecodeIdAddress ¶
func ExistsTipSet ¶
func GetIdAddress ¶
func GetLotusMessage ¶
func GetMaxHeight ¶
func GetMaxHeight() uint32
func GetRobustAddress ¶
func GetTipSetMessages ¶
func LookupIdAddress ¶
func LookupRobustAddress ¶
func SearchMessagesByAddress ¶
func SearchMessagesByHeight ¶
func SetAddressIndex ¶
func SetAddressToId ¶
func SetAddressToId(robust address.Address, id address.Address, wb *badger.WriteBatch) error
func SetIdToAddress ¶
func SetIdToAddress(id address.Address, robust address.Address, wb *badger.WriteBatch) error
func SetMessage ¶
func SetMessageNoIndex ¶
func SetTipSetMessages ¶
func SyncMessages ¶
func SyncMessagesFromLily ¶
func SyncStatus ¶
func SyncTipSetMessages ¶
func SyncTipSetTop ¶
func SyncTipsetStart ¶
func SyncTipsetWorker ¶
func SyncTipset_deleteme ¶
func UpdateTipSetMessages ¶
func ValidateMessages ¶
func ValidateMessages(height uint64)
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func GetCacheInstance ¶
func GetCacheInstance() *Cache
type LotusNode ¶
type LotusNode struct {
// contains filtered or unexported fields
}
func GetLotusInstance ¶
func GetLotusInstance(opts *LotusOptions) *LotusNode
type LotusOptions ¶
type LotusOptions struct {
// contains filtered or unexported fields
}
type Match ¶
type Match func(*api.InvocResult) bool
match types take an *types.Message and return a bool value.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) AddressGetID ¶
func (*Node) AddressGetRobust ¶
func (*Node) ChainGetMessagesInTipset ¶
func (*Node) ChainGetTipSet ¶
func (*Node) ChainHeadSub ¶
func (*Node) GetPending ¶
func (t *Node) GetPending() ([]*types.SignedMessage, error)
func (*Node) MsigGetPending ¶
func (t *Node) MsigGetPending(addr string) ([]*api.MsigTransaction, error)
func (*Node) SearchState ¶
func (*Node) StartCache ¶
func (t *Node) StartCache()
func (*Node) StateListMessages ¶
func (*Node) StateReplay ¶
func (*Node) SyncTimerStart ¶
func (*Node) SyncTimerStop ¶
func (t *Node) SyncTimerStop()
type NodeInterface ¶
type NodeInterface interface { GetActor(id string) (*types.Actor, error) GetPending() ([]*types.SignedMessage, error) GetMessage(cidcc string) (*types.Message, error) StateSearchMsg(id string) (*api.MsgLookup, error) MsigGetPending(addr string) ([]*api.MsigTransaction, error) SearchState(ctx context.Context, match Match, limit *int, offset *int, height int) ([]*SearchStateStruct, int, error) StateListMessages(ctx context.Context, addr string, lookback int) ([]*api.InvocResult, error) StateReplay(ctx context.Context, p1 types.TipSetKey, p2 cid.Cid) (*api.InvocResult, error) ChainHeadSub(ctx context.Context) (<-chan []*api.HeadChange, error) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error) Node() *Node }
type SearchStateStruct ¶
type SearchStateStruct struct { Tipset *types.TipSet Message api.InvocResult }
func (*SearchStateStruct) ConfirmedMessage ¶
func (state *SearchStateStruct) ConfirmedMessage() model.MessageConfirmed
func (*SearchStateStruct) CreateMessage ¶
func (state *SearchStateStruct) CreateMessage() model.Message
Click to show internal directories.
Click to hide internal directories.