Documentation ¶
Index ¶
- type ChainAPI
- func (a *ChainAPI) ChainGetBlock(ctx context.Context, msg cid.Cid) (*types.BlockHeader, error)
- func (a *ChainAPI) ChainGetBlockMessages(ctx context.Context, msg cid.Cid) (*api.BlockMessages, error)
- func (a *ChainAPI) ChainGetGenesis(ctx context.Context) (*types.TipSet, error)
- func (a *ChainAPI) ChainGetMessage(ctx context.Context, mc cid.Cid) (*types.Message, error)
- func (a *ChainAPI) ChainGetNode(ctx context.Context, p string) (interface{}, error)
- func (a *ChainAPI) ChainGetParentMessages(ctx context.Context, bcid cid.Cid) ([]api.Message, error)
- func (a *ChainAPI) ChainGetParentReceipts(ctx context.Context, bcid cid.Cid) ([]*types.MessageReceipt, error)
- func (a *ChainAPI) ChainGetRandomness(ctx context.Context, pts types.TipSetKey, round int64) ([]byte, error)
- func (a *ChainAPI) ChainGetTipSet(ctx context.Context, key types.TipSetKey) (*types.TipSet, error)
- func (a *ChainAPI) ChainGetTipSetByHeight(ctx context.Context, h uint64, ts *types.TipSet) (*types.TipSet, error)
- func (a *ChainAPI) ChainHead(context.Context) (*types.TipSet, error)
- func (a *ChainAPI) ChainNotify(ctx context.Context) (<-chan []*store.HeadChange, error)
- func (a *ChainAPI) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error)
- func (a *ChainAPI) ChainSetHead(ctx context.Context, ts *types.TipSet) error
- func (a *ChainAPI) ChainTipSetWeight(ctx context.Context, ts *types.TipSet) (types.BigInt, error)
- type MpoolAPI
- func (a *MpoolAPI) MpoolGetNonce(ctx context.Context, addr address.Address) (uint64, error)
- func (a *MpoolAPI) MpoolPending(ctx context.Context, ts *types.TipSet) ([]*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
- func (a *MpoolAPI) MpoolPushMessage(ctx context.Context, msg *types.Message) (*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error)
- type StateAPI
- func (a *StateAPI) MinerCreateBlock(ctx context.Context, addr address.Address, parents *types.TipSet, ...) (*types.BlockMsg, error)
- func (a *StateAPI) StateCall(ctx context.Context, msg *types.Message, ts *types.TipSet) (*types.MessageReceipt, error)
- func (a *StateAPI) StateChangedActors(ctx context.Context, old cid.Cid, new cid.Cid) (map[string]types.Actor, error)
- func (a *StateAPI) StateGetActor(ctx context.Context, actor address.Address, ts *types.TipSet) (*types.Actor, error)
- func (a *StateAPI) StateGetReceipt(ctx context.Context, msg cid.Cid, ts *types.TipSet) (*types.MessageReceipt, error)
- func (a *StateAPI) StateListActors(ctx context.Context, ts *types.TipSet) ([]address.Address, error)
- func (a *StateAPI) StateListMessages(ctx context.Context, match *types.Message, ts *types.TipSet, toheight uint64) ([]cid.Cid, error)
- func (a *StateAPI) StateListMiners(ctx context.Context, ts *types.TipSet) ([]address.Address, error)
- func (a *StateAPI) StateLookupID(ctx context.Context, addr address.Address, ts *types.TipSet) (address.Address, error)
- func (a *StateAPI) StateMarketBalance(ctx context.Context, addr address.Address, ts *types.TipSet) (actors.StorageParticipantBalance, error)
- func (a *StateAPI) StateMarketDeals(ctx context.Context, ts *types.TipSet) (map[string]actors.OnChainDeal, error)
- func (a *StateAPI) StateMarketParticipants(ctx context.Context, ts *types.TipSet) (map[string]actors.StorageParticipantBalance, error)
- func (a *StateAPI) StateMarketStorageDeal(ctx context.Context, dealId uint64, ts *types.TipSet) (*actors.OnChainDeal, error)
- func (a *StateAPI) StateMinerElectionPeriodStart(ctx context.Context, actor address.Address, ts *types.TipSet) (uint64, error)
- func (a *StateAPI) StateMinerPeerID(ctx context.Context, m address.Address, ts *types.TipSet) (peer.ID, error)
- func (a *StateAPI) StateMinerPower(ctx context.Context, maddr address.Address, ts *types.TipSet) (api.MinerPower, error)
- func (a *StateAPI) StateMinerProvingSet(ctx context.Context, addr address.Address, ts *types.TipSet) ([]*api.ChainSectorInfo, error)
- func (a *StateAPI) StateMinerSectorCount(ctx context.Context, addr address.Address, ts *types.TipSet) (api.MinerSectors, error)
- func (a *StateAPI) StateMinerSectorSize(ctx context.Context, actor address.Address, ts *types.TipSet) (uint64, error)
- func (a *StateAPI) StateMinerSectors(ctx context.Context, addr address.Address, ts *types.TipSet) ([]*api.ChainSectorInfo, error)
- func (a *StateAPI) StateMinerWorker(ctx context.Context, m address.Address, ts *types.TipSet) (address.Address, error)
- func (a *StateAPI) StatePledgeCollateral(ctx context.Context, ts *types.TipSet) (types.BigInt, error)
- func (a *StateAPI) StateReadState(ctx context.Context, act *types.Actor, ts *types.TipSet) (*api.ActorState, error)
- func (a *StateAPI) StateReplay(ctx context.Context, ts *types.TipSet, mc cid.Cid) (*api.ReplayResults, error)
- func (a *StateAPI) StateWaitMsg(ctx context.Context, msg cid.Cid) (*api.MsgWait, error)
- type SyncAPI
- func (a *SyncAPI) SyncIncomingBlocks(ctx context.Context) (<-chan *types.BlockHeader, error)
- func (a *SyncAPI) SyncMarkBad(ctx context.Context, bcid cid.Cid) error
- func (a *SyncAPI) SyncState(ctx context.Context) (*api.SyncState, error)
- func (a *SyncAPI) SyncSubmitBlock(ctx context.Context, blk *types.BlockMsg) error
- type WalletAPI
- func (a *WalletAPI) WalletBalance(ctx context.Context, addr address.Address) (types.BigInt, error)
- func (a *WalletAPI) WalletDefaultAddress(ctx context.Context) (address.Address, error)
- func (a *WalletAPI) WalletExport(ctx context.Context, addr address.Address) (*types.KeyInfo, error)
- func (a *WalletAPI) WalletHas(ctx context.Context, addr address.Address) (bool, error)
- func (a *WalletAPI) WalletImport(ctx context.Context, ki *types.KeyInfo) (address.Address, error)
- func (a *WalletAPI) WalletList(ctx context.Context) ([]address.Address, error)
- func (a *WalletAPI) WalletNew(ctx context.Context, typ string) (address.Address, error)
- func (a *WalletAPI) WalletSetDefault(ctx context.Context, addr address.Address) error
- func (a *WalletAPI) WalletSign(ctx context.Context, k address.Address, msg []byte) (*types.Signature, error)
- func (a *WalletAPI) WalletSignMessage(ctx context.Context, k address.Address, msg *types.Message) (*types.SignedMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainAPI ¶
type ChainAPI struct { fx.In WalletAPI Chain *store.ChainStore }
func (*ChainAPI) ChainGetBlock ¶
func (*ChainAPI) ChainGetBlockMessages ¶
func (*ChainAPI) ChainGetGenesis ¶
func (*ChainAPI) ChainGetMessage ¶ added in v0.1.6
func (*ChainAPI) ChainGetNode ¶ added in v0.1.5
func (*ChainAPI) ChainGetParentMessages ¶
func (*ChainAPI) ChainGetParentReceipts ¶
func (*ChainAPI) ChainGetRandomness ¶
func (*ChainAPI) ChainGetTipSet ¶
func (*ChainAPI) ChainGetTipSetByHeight ¶
func (*ChainAPI) ChainNotify ¶
func (*ChainAPI) ChainReadObj ¶
func (*ChainAPI) ChainSetHead ¶
type MpoolAPI ¶
type MpoolAPI struct { fx.In WalletAPI Chain *store.ChainStore Mpool *messagepool.MessagePool }
func (*MpoolAPI) MpoolGetNonce ¶
func (*MpoolAPI) MpoolPending ¶
func (*MpoolAPI) MpoolPushMessage ¶
type StateAPI ¶
type StateAPI struct { fx.In // TODO: the wallet here is only needed because we have the MinerCreateBlock // API attached to the state API. It probably should live somewhere better Wallet *wallet.Wallet StateManager *stmgr.StateManager Chain *store.ChainStore }
func (*StateAPI) MinerCreateBlock ¶
func (a *StateAPI) MinerCreateBlock(ctx context.Context, addr address.Address, parents *types.TipSet, ticket *types.Ticket, proof *types.EPostProof, msgs []*types.SignedMessage, height, ts uint64) (*types.BlockMsg, error)
This is on StateAPI because miner.Miner requires this, and MinerAPI requires miner.Miner
func (*StateAPI) StateChangedActors ¶
func (*StateAPI) StateGetActor ¶
func (*StateAPI) StateGetReceipt ¶
func (*StateAPI) StateListActors ¶
func (*StateAPI) StateListMessages ¶ added in v0.1.6
func (*StateAPI) StateListMiners ¶
func (*StateAPI) StateLookupID ¶
func (*StateAPI) StateMarketBalance ¶
func (*StateAPI) StateMarketDeals ¶
func (*StateAPI) StateMarketParticipants ¶
func (*StateAPI) StateMarketStorageDeal ¶
func (*StateAPI) StateMinerElectionPeriodStart ¶
func (*StateAPI) StateMinerPeerID ¶
func (*StateAPI) StateMinerPower ¶
func (*StateAPI) StateMinerProvingSet ¶
func (*StateAPI) StateMinerSectorCount ¶ added in v0.1.5
func (*StateAPI) StateMinerSectorSize ¶
func (*StateAPI) StateMinerSectors ¶
func (*StateAPI) StateMinerWorker ¶
func (*StateAPI) StatePledgeCollateral ¶
func (*StateAPI) StateReadState ¶
func (*StateAPI) StateReplay ¶
type SyncAPI ¶
func (*SyncAPI) SyncIncomingBlocks ¶
func (*SyncAPI) SyncMarkBad ¶ added in v0.1.6
type WalletAPI ¶
func (*WalletAPI) WalletBalance ¶
func (*WalletAPI) WalletDefaultAddress ¶
func (*WalletAPI) WalletExport ¶
func (*WalletAPI) WalletImport ¶
func (*WalletAPI) WalletList ¶
func (*WalletAPI) WalletSetDefault ¶
func (*WalletAPI) WalletSign ¶
func (*WalletAPI) WalletSignMessage ¶
Click to show internal directories.
Click to hide internal directories.