|
8 | 8 | "github.com/filecoin-project/go-state-types/abi"
|
9 | 9 | "github.com/filecoin-project/lotus/api"
|
10 | 10 | "github.com/filecoin-project/lotus/chain/types"
|
| 11 | + "github.com/filecoin-project/lotus/chain/types/ethtypes" |
11 | 12 | "github.com/ipfs/go-cid"
|
12 | 13 | "github.com/libp2p/go-libp2p/core/peer"
|
13 | 14 |
|
@@ -40,20 +41,21 @@ type LilyAPI interface {
|
40 | 41 | // SyncState returns the current status of the chain sync system.
|
41 | 42 | SyncState(context.Context) (*api.SyncState, error) //perm:read
|
42 | 43 |
|
43 |
| - ChainHead(context.Context) (*types.TipSet, error) //perm:read |
44 |
| - ChainGetBlock(context.Context, cid.Cid) (*types.BlockHeader, error) //perm:read |
45 |
| - ChainReadObj(context.Context, cid.Cid) ([]byte, error) //perm:read |
46 |
| - ChainStatObj(context.Context, cid.Cid, cid.Cid) (api.ObjStat, error) //perm:read |
47 |
| - ChainGetTipSet(context.Context, types.TipSetKey) (*types.TipSet, error) //perm:read |
48 |
| - ChainGetTipSetByHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error) //perm:read |
49 |
| - ChainGetTipSetAfterHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error) //perm:read |
50 |
| - ChainGetBlockMessages(context.Context, cid.Cid) (*api.BlockMessages, error) //perm:read |
51 |
| - ChainGetParentReceipts(context.Context, cid.Cid) ([]*types.MessageReceipt, error) //perm:read |
52 |
| - ChainGetParentMessages(context.Context, cid.Cid) ([]api.Message, error) //perm:read |
53 |
| - ChainSetHead(context.Context, types.TipSetKey) error //perm:read |
54 |
| - ChainGetGenesis(context.Context) (*types.TipSet, error) //perm:read |
55 |
| - ChainPrune(ctx context.Context, opts api.PruneOpts) error //perm:read |
56 |
| - ChainHotGC(ctx context.Context, opts api.HotGCOpts) error //perm:read |
| 44 | + ChainHead(context.Context) (*types.TipSet, error) //perm:read |
| 45 | + ChainGetBlock(context.Context, cid.Cid) (*types.BlockHeader, error) //perm:read |
| 46 | + ChainReadObj(context.Context, cid.Cid) ([]byte, error) //perm:read |
| 47 | + ChainStatObj(context.Context, cid.Cid, cid.Cid) (api.ObjStat, error) //perm:read |
| 48 | + ChainGetTipSet(context.Context, types.TipSetKey) (*types.TipSet, error) //perm:read |
| 49 | + ChainGetTipSetByHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error) //perm:read |
| 50 | + ChainGetTipSetAfterHeight(context.Context, abi.ChainEpoch, types.TipSetKey) (*types.TipSet, error) //perm:read |
| 51 | + ChainGetBlockMessages(context.Context, cid.Cid) (*api.BlockMessages, error) //perm:read |
| 52 | + ChainGetParentReceipts(context.Context, cid.Cid) ([]*types.MessageReceipt, error) //perm:read |
| 53 | + ChainGetParentMessages(context.Context, cid.Cid) ([]api.Message, error) //perm:read |
| 54 | + ChainSetHead(context.Context, types.TipSetKey) error //perm:read |
| 55 | + ChainGetGenesis(context.Context) (*types.TipSet, error) //perm:read |
| 56 | + ChainPrune(ctx context.Context, opts api.PruneOpts) error //perm:read |
| 57 | + ChainHotGC(ctx context.Context, opts api.HotGCOpts) error //perm:read |
| 58 | + EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthHash, fullTxInfo bool) (ethtypes.EthBlock, error) //perm:read |
57 | 59 |
|
58 | 60 | // trigger graceful shutdown
|
59 | 61 | Shutdown(context.Context) error
|
|
0 commit comments