Documentation ¶
Index ¶
- Constants
- type BeaconAPI
- type ChainAPI
- func (a *ChainAPI) ChainAllowNoWindowPoSt(ctx context.Context, tsk types.TipSetKey, challenge abi.ChainEpoch, ...) (bool, error)
- func (a *ChainAPI) ChainDeleteObj(ctx context.Context, obj cid.Cid) error
- func (a *ChainAPI) ChainExport(ctx context.Context, nroots abi.ChainEpoch, skipoldmsgs bool, ...) (<-chan []byte, error)
- func (a *ChainAPI) ChainGetBlock(ctx context.Context, msg cid.Cid) (*types.BlockHeader, error)
- func (a *ChainAPI) ChainGetGenesis(ctx context.Context) (*types.TipSet, error)
- func (a *ChainAPI) ChainGetNode(ctx context.Context, p string) (*api.IpldObject, 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) ChainGetPath(ctx context.Context, from types.TipSetKey, to types.TipSetKey) ([]*api.HeadChange, error)
- func (a *ChainAPI) ChainGetRandomnessFromBeacon(ctx context.Context, tsk types.TipSetKey, ...) (abi.Randomness, error)
- func (a *ChainAPI) ChainGetRandomnessFromTickets(ctx context.Context, tsk types.TipSetKey, ...) (abi.Randomness, error)
- func (a *ChainAPI) ChainSetHead(ctx context.Context, tsk types.TipSetKey) error
- func (a *ChainAPI) ChainStatObj(ctx context.Context, obj cid.Cid, base cid.Cid) (api.ObjStat, error)
- func (a *ChainAPI) ChainTipSetWeight(ctx context.Context, tsk types.TipSetKey) (types.BigInt, error)
- type ChainModule
- func (m *ChainModule) ChainGetBlockMessages(ctx context.Context, msg cid.Cid) (*api.BlockMessages, error)
- func (m *ChainModule) ChainGetMessage(ctx context.Context, mc cid.Cid) (*types.Message, error)
- func (m *ChainModule) ChainGetTipSet(ctx context.Context, key types.TipSetKey) (*types.TipSet, error)
- func (m *ChainModule) ChainGetTipSetByHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error)
- func (m *ChainModule) ChainHasObj(ctx context.Context, obj cid.Cid) (bool, error)
- func (m *ChainModule) ChainHead(context.Context) (*types.TipSet, error)
- func (m *ChainModule) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
- func (m *ChainModule) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error)
- type ChainModuleAPI
- type GasAPI
- func (a *GasAPI) GasEstimateFeeCap(ctx context.Context, msg *types.Message, maxqueueblks int64, ...) (types.BigInt, error)
- func (a *GasAPI) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message, tsk types.TipSetKey) (int64, error)
- func (a *GasAPI) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64, sender address.Address, ...) (types.BigInt, error)
- type GasModule
- func (m *GasModule) GasEstimateFeeCap(ctx context.Context, msg *types.Message, maxqueueblks int64, ...) (types.BigInt, error)
- func (m *GasModule) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message, tsk types.TipSetKey) (int64, error)
- func (m *GasModule) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64, sender address.Address, ...) (types.BigInt, error)
- func (m *GasModule) GasEstimateMessageGas(ctx context.Context, msg *types.Message, spec *api.MessageSendSpec, ...) (*types.Message, error)
- type GasModuleAPI
- type MpoolAPI
- func (a *MpoolAPI) MpoolBatchPush(ctx context.Context, smsgs []*types.SignedMessage) ([]cid.Cid, error)
- func (a *MpoolAPI) MpoolBatchPushMessage(ctx context.Context, msgs []*types.Message, spec *api.MessageSendSpec) ([]*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolBatchPushUntrusted(ctx context.Context, smsgs []*types.SignedMessage) ([]cid.Cid, error)
- func (a *MpoolAPI) MpoolClear(ctx context.Context, local bool) error
- func (a *MpoolAPI) MpoolGetConfig(context.Context) (*types.MpoolConfig, error)
- func (a *MpoolAPI) MpoolGetNonce(ctx context.Context, addr address.Address) (uint64, error)
- func (a *MpoolAPI) MpoolPending(ctx context.Context, tsk types.TipSetKey) ([]*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolPushMessage(ctx context.Context, msg *types.Message, spec *api.MessageSendSpec) (*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolPushUntrusted(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
- func (a *MpoolAPI) MpoolSelect(ctx context.Context, tsk types.TipSetKey, ticketQuality float64) ([]*types.SignedMessage, error)
- func (a *MpoolAPI) MpoolSetConfig(ctx context.Context, cfg *types.MpoolConfig) error
- func (a *MpoolAPI) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error)
- type MpoolModule
- type MpoolModuleAPI
- type MsigAPI
- func (a *MsigAPI) MsigAddApprove(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigAddCancel(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigAddPropose(ctx context.Context, msig address.Address, src address.Address, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigApprove(ctx context.Context, msig address.Address, txID uint64, src address.Address) (cid.Cid, error)
- func (a *MsigAPI) MsigApproveTxnHash(ctx context.Context, msig address.Address, txID uint64, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigCancel(ctx context.Context, msig address.Address, txID uint64, to address.Address, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigCreate(ctx context.Context, req uint64, addrs []address.Address, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigPropose(ctx context.Context, msig address.Address, to address.Address, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigRemoveSigner(ctx context.Context, msig address.Address, proposer address.Address, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigSwapApprove(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigSwapCancel(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (cid.Cid, error)
- func (a *MsigAPI) MsigSwapPropose(ctx context.Context, msig address.Address, src address.Address, ...) (cid.Cid, error)
- type StateAPI
- func (a *StateAPI) MinerCreateBlock(ctx context.Context, bt *api.BlockTemplate) (*types.BlockMsg, error)
- func (a *StateAPI) MinerGetBaseInfo(ctx context.Context, maddr address.Address, epoch abi.ChainEpoch, ...) (*api.MiningBaseInfo, error)
- func (a *StateAPI) MsigGetVestingSchedule(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MsigVesting, error)
- func (a *StateAPI) StateAllMinerFaults(ctx context.Context, lookback abi.ChainEpoch, endTsk types.TipSetKey) ([]*api.Fault, error)
- func (a *StateAPI) StateBlockReward(ctx context.Context, bid cid.Cid, tsk types.TipSetKey) (*api.BlockReward, error)
- func (a *StateAPI) StateCall(ctx context.Context, msg *types.Message, tsk types.TipSetKey) (res *api.InvocResult, err error)
- func (a *StateAPI) StateChangedActors(ctx context.Context, old cid.Cid, new cid.Cid) (map[string]types.Actor, error)
- func (a *StateAPI) StateCirculatingSupply(ctx context.Context, tsk types.TipSetKey) (abi.TokenAmount, error)
- func (a *StateAPI) StateCoinbase(ctx context.Context, coinbase address.Address, tsk types.TipSetKey) (*vesting.CoinbaseInfo, error)
- func (a *StateAPI) StateCompute(ctx context.Context, height abi.ChainEpoch, msgs []*types.Message, ...) (*api.ComputeStateOutput, error)
- func (a *StateAPI) StateDataIndex(ctx context.Context, epoch abi.ChainEpoch, tsk types.TipSetKey) ([]*api.DataIndex, error)
- func (a *StateAPI) StateDecodeParams(ctx context.Context, toAddr address.Address, method abi.MethodNum, ...) (interface{}, error)
- func (a *StateAPI) StateExpertDatas(ctx context.Context, addr address.Address, filter *bitfield.BitField, ...) ([]*expert.DataOnChainInfo, error)
- func (a *StateAPI) StateExpertFileInfo(ctx context.Context, pieceCid cid.Cid, tsk types.TipSetKey) (*api.ExpertFileInfo, error)
- func (a *StateAPI) StateExpertInfo(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.ExpertInfo, error)
- func (a *StateAPI) StateGovernParams(ctx context.Context, tsk types.TipSetKey) (*govern.GovParams, error)
- func (a *StateAPI) StateGovernSupervisor(ctx context.Context, tsk types.TipSetKey) (address.Address, error)
- func (a *StateAPI) StateGovernorList(ctx context.Context, tsk types.TipSetKey) ([]*govern.GovernorInfo, error)
- func (a *StateAPI) StateKnowledgeInfo(ctx context.Context, tsk types.TipSetKey) (*knowledge.Info, error)
- func (a *StateAPI) StateListActors(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
- func (a *StateAPI) StateListExperts(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
- func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatch, tsk types.TipSetKey, ...) ([]cid.Cid, error)
- func (a *StateAPI) StateMarketDeals(ctx context.Context, tsk types.TipSetKey) (map[string]api.MarketDeal, error)
- func (m *StateAPI) StateMarketRemainingQuota(ctx context.Context, pieceCid cid.Cid, tsk types.TipSetKey) (int64, error)
- func (a *StateAPI) StateMinerActiveSectors(ctx context.Context, maddr address.Address, tsk types.TipSetKey) ([]*miner.SectorOnChainInfo, error)
- func (a *StateAPI) StateMinerActives(ctx context.Context, addr address.Address, tsk types.TipSetKey) (bitfield.BitField, error)
- func (a *StateAPI) StateMinerDeadlines(ctx context.Context, m address.Address, tsk types.TipSetKey) ([]api.Deadline, error)
- func (a *StateAPI) StateMinerFaults(ctx context.Context, addr address.Address, tsk types.TipSetKey) (bitfield.BitField, error)
- func (a *StateAPI) StateMinerFunds(ctx context.Context, maddr address.Address, tsk types.TipSetKey) (miner.Funds, error)
- func (a *StateAPI) StateMinerPartitions(ctx context.Context, m address.Address, dlIdx uint64, tsk types.TipSetKey) ([]api.Partition, error)
- func (a *StateAPI) StateMinerRecoveries(ctx context.Context, addr address.Address, tsk types.TipSetKey) (bitfield.BitField, error)
- func (a *StateAPI) StateMinerSectorAllocated(ctx context.Context, maddr address.Address, s abi.SectorNumber, ...) (bool, error)
- func (a *StateAPI) StateMinerSectorCount(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MinerSectors, error)
- func (a *StateAPI) StateMinerSectors(ctx context.Context, addr address.Address, sectorNos *bitfield.BitField, ...) ([]*miner.SectorOnChainInfo, error)
- func (a *StateAPI) StateMinerStoredAnyPiece(ctx context.Context, maddr address.Address, pieceIDs []cid.Cid, ...) (bool, error)
- func (a *StateAPI) StateNetworkName(ctx context.Context) (dtypes.NetworkName, error)
- func (a *StateAPI) StateReadState(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*api.ActorState, error)
- func (a *StateAPI) StateReplay(ctx context.Context, tsk types.TipSetKey, mc cid.Cid) (*api.InvocResult, error)
- func (a *StateAPI) StateRetrievalInfo(ctx context.Context, tsk types.TipSetKey) (*api.RetrievalInfo, error)
- func (a *StateAPI) StateRetrievalPledge(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.RetrievalState, error)
- func (a *StateAPI) StateRetrievalPledgeFrom(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.RetrievalPledgeInfo, error)
- func (a *StateAPI) StateRetrievalPledgeList(ctx context.Context, tsk types.TipSetKey) (map[address.Address]*api.RetrievalState, error)
- func (a *StateAPI) StateSearchMsgLimited(ctx context.Context, msg cid.Cid, lookbackLimit abi.ChainEpoch) (*api.MsgLookup, error)
- func (a *StateAPI) StateSectorExpiration(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, ...) (*miner.SectorExpiration, error)
- func (a *StateAPI) StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, ...) (*miner.SectorLocation, error)
- func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, ...) (miner.SectorPreCommitOnChainInfo, error)
- func (a *StateAPI) StateTotalMinedDetail(ctx context.Context, tsk types.TipSetKey) (*reward.TotalMinedDetail, error)
- func (a *StateAPI) StateVMCirculatingSupplyInternal(ctx context.Context, tsk types.TipSetKey) (api.CirculatingSupply, error)
- func (a *StateAPI) StateVoteTally(ctx context.Context, tsk types.TipSetKey) (*vote.Tally, error)
- func (a *StateAPI) StateVoterInfo(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*vote.VoterInfo, error)
- func (a *StateAPI) StateWaitMsgLimited(ctx context.Context, msg cid.Cid, confidence uint64, ...) (*api.MsgLookup, error)
- type StateModule
- func (m *StateModule) MsigGetAvailableBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (types.BigInt, error)
- func (m *StateModule) MsigGetPending(ctx context.Context, addr address.Address, tsk types.TipSetKey) ([]*api.MsigTransaction, error)
- func (m *StateModule) MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, ...) (types.BigInt, error)
- func (m *StateModule) StateAccountKey(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func (m *StateModule) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error)
- func (m *StateModule) StateGetReceipt(ctx context.Context, msg cid.Cid, tsk types.TipSetKey) (*types.MessageReceipt, error)
- func (m *StateModule) StateListMiners(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error)
- func (m *StateModule) StateLookupID(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func (m *StateModule) StateMarketStorageDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error)
- func (m *StateModule) StateMinerInfo(ctx context.Context, actor address.Address, tsk types.TipSetKey) (miner.MinerInfo, error)
- func (m *StateModule) StateMinerPower(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.MinerPower, error)
- func (m *StateModule) StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*dline.Info, error)
- func (m *StateModule) StateNetworkVersion(ctx context.Context, tsk types.TipSetKey) (network.Version, error)
- func (m *StateModule) StateSearchMsg(ctx context.Context, msg cid.Cid) (*api.MsgLookup, error)
- func (m *StateModule) StateSectorGetInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, ...) (*miner.SectorOnChainInfo, error)
- func (m *StateModule) StateWaitMsg(ctx context.Context, msg cid.Cid, confidence uint64) (*api.MsgLookup, error)
- type StateModuleAPI
- type SyncAPI
- func (a *SyncAPI) SyncCheckBad(ctx context.Context, bcid cid.Cid) (string, error)
- func (a *SyncAPI) SyncCheckpoint(ctx context.Context, tsk types.TipSetKey) error
- 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
- func (a *SyncAPI) SyncUnmarkAllBad(ctx context.Context) error
- func (a *SyncAPI) SyncUnmarkBad(ctx context.Context, bcid cid.Cid) error
- func (a *SyncAPI) SyncValidateTipset(ctx context.Context, tsk types.TipSetKey) (bool, 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) WalletSetDefault(ctx context.Context, addr address.Address) error
- func (a *WalletAPI) WalletSign(ctx context.Context, k address.Address, msg []byte) (*crypto.Signature, error)
- func (a *WalletAPI) WalletSignMessage(ctx context.Context, k address.Address, msg *types.Message) (*types.SignedMessage, error)
- func (a *WalletAPI) WalletValidateAddress(ctx context.Context, str string) (address.Address, error)
- func (a *WalletAPI) WalletVerify(ctx context.Context, k address.Address, msg []byte, sig *crypto.Signature) (bool, error)
Constants ¶
const MaxSpendOnFeeDenom = 100
const MinGasPremium = 100e3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconAPI ¶
func (*BeaconAPI) BeaconGetEntry ¶
func (a *BeaconAPI) BeaconGetEntry(ctx context.Context, epoch abi.ChainEpoch) (*types.BeaconEntry, error)
type ChainAPI ¶
type ChainAPI struct { fx.In WalletAPI ChainModuleAPI Chain *store.ChainStore StateManager *stmgr.StateManager // ExposedBlockstore is the global monolith blockstore that is safe to // expose externally. In the future, this will be segregated into two // blockstores. ExposedBlockstore dtypes.ExposedBlockstore }
func (*ChainAPI) ChainAllowNoWindowPoSt ¶
func (*ChainAPI) ChainDeleteObj ¶
func (*ChainAPI) ChainExport ¶
func (*ChainAPI) ChainGetBlock ¶
func (*ChainAPI) ChainGetGenesis ¶
func (*ChainAPI) ChainGetNode ¶
func (*ChainAPI) ChainGetParentMessages ¶
func (*ChainAPI) ChainGetParentReceipts ¶
func (*ChainAPI) ChainGetPath ¶
func (*ChainAPI) ChainGetRandomnessFromBeacon ¶
func (a *ChainAPI) ChainGetRandomnessFromBeacon(ctx context.Context, tsk types.TipSetKey, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte) (abi.Randomness, error)
func (*ChainAPI) ChainGetRandomnessFromTickets ¶
func (a *ChainAPI) ChainGetRandomnessFromTickets(ctx context.Context, tsk types.TipSetKey, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte) (abi.Randomness, error)
func (*ChainAPI) ChainSetHead ¶
func (*ChainAPI) ChainStatObj ¶
type ChainModule ¶
type ChainModule struct { fx.In Chain *store.ChainStore // ExposedBlockstore is the global monolith blockstore that is safe to // expose externally. In the future, this will be segregated into two // blockstores. ExposedBlockstore dtypes.ExposedBlockstore }
ChainModule provides a default implementation of ChainModuleAPI. It can be swapped out with another implementation through Dependency Injection (for example with a thin RPC client).
func (*ChainModule) ChainGetBlockMessages ¶
func (m *ChainModule) ChainGetBlockMessages(ctx context.Context, msg cid.Cid) (*api.BlockMessages, error)
func (*ChainModule) ChainGetMessage ¶
func (*ChainModule) ChainGetTipSet ¶
func (*ChainModule) ChainGetTipSetByHeight ¶
func (m *ChainModule) ChainGetTipSetByHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error)
func (*ChainModule) ChainHasObj ¶
func (m *ChainModule) ChainHasObj(ctx context.Context, obj cid.Cid) (bool, error)
func (*ChainModule) ChainNotify ¶
func (m *ChainModule) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
func (*ChainModule) ChainReadObj ¶
func (m *ChainModule) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error)
type ChainModuleAPI ¶
type ChainModuleAPI interface { ChainNotify(context.Context) (<-chan []*api.HeadChange, error) ChainGetBlockMessages(context.Context, cid.Cid) (*api.BlockMessages, error) ChainHasObj(context.Context, cid.Cid) (bool, error) ChainHead(context.Context) (*types.TipSet, error) ChainGetMessage(ctx context.Context, mc cid.Cid) (*types.Message, error) ChainGetTipSet(ctx context.Context, tsk types.TipSetKey) (*types.TipSet, error) ChainGetTipSetByHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error) ChainReadObj(context.Context, cid.Cid) ([]byte, error) }
type GasAPI ¶
type GasAPI struct { fx.In GasModuleAPI Stmgr *stmgr.StateManager Chain *store.ChainStore Mpool *messagepool.MessagePool }
func (*GasAPI) GasEstimateFeeCap ¶
func (*GasAPI) GasEstimateGasLimit ¶
type GasModule ¶
type GasModule struct { fx.In Stmgr *stmgr.StateManager Chain *store.ChainStore Mpool *messagepool.MessagePool GetMaxFee dtypes.DefaultMaxFeeFunc }
GasModule provides a default implementation of GasModuleAPI. It can be swapped out with another implementation through Dependency Injection (for example with a thin RPC client).
func (*GasModule) GasEstimateFeeCap ¶
func (*GasModule) GasEstimateGasLimit ¶
func (*GasModule) GasEstimateGasPremium ¶
type GasModuleAPI ¶
type MpoolAPI ¶
type MpoolAPI struct { fx.In MpoolModuleAPI WalletAPI GasAPI MessageSigner *messagesigner.MessageSigner PushLocks *dtypes.MpoolLocker }
func (*MpoolAPI) MpoolBatchPush ¶
func (*MpoolAPI) MpoolBatchPushMessage ¶
func (a *MpoolAPI) MpoolBatchPushMessage(ctx context.Context, msgs []*types.Message, spec *api.MessageSendSpec) ([]*types.SignedMessage, error)
func (*MpoolAPI) MpoolBatchPushUntrusted ¶
func (*MpoolAPI) MpoolGetConfig ¶
func (*MpoolAPI) MpoolGetNonce ¶
func (*MpoolAPI) MpoolPending ¶
func (*MpoolAPI) MpoolPushMessage ¶
func (a *MpoolAPI) MpoolPushMessage(ctx context.Context, msg *types.Message, spec *api.MessageSendSpec) (*types.SignedMessage, error)
func (*MpoolAPI) MpoolPushUntrusted ¶
func (*MpoolAPI) MpoolSelect ¶
func (*MpoolAPI) MpoolSetConfig ¶
type MpoolModule ¶
type MpoolModule struct { fx.In Mpool *messagepool.MessagePool }
MpoolModule provides a default implementation of MpoolModuleAPI. It can be swapped out with another implementation through Dependency Injection (for example with a thin RPC client).
func (*MpoolModule) MpoolPush ¶
func (m *MpoolModule) MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
type MpoolModuleAPI ¶
type MpoolModuleAPI interface {
MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
}
type MsigAPI ¶
func (*MsigAPI) MsigAddApprove ¶
func (*MsigAPI) MsigAddCancel ¶
func (*MsigAPI) MsigAddPropose ¶
func (*MsigAPI) MsigApprove ¶
func (*MsigAPI) MsigApproveTxnHash ¶
func (*MsigAPI) MsigCancel ¶
func (*MsigAPI) MsigCreate ¶
func (a *MsigAPI) MsigCreate(ctx context.Context, req uint64, addrs []address.Address, duration abi.ChainEpoch, val types.BigInt, src address.Address, gp types.BigInt) (cid.Cid, error)
TODO: remove gp (gasPrice) from arguments TODO: Add "vesting start" to arguments.
func (*MsigAPI) MsigPropose ¶
func (*MsigAPI) MsigRemoveSigner ¶
func (*MsigAPI) MsigSwapApprove ¶
func (*MsigAPI) MsigSwapCancel ¶
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 api.WalletAPI DefWallet wallet.Default StateModuleAPI ProofVerifier ffiwrapper.Verifier StateManager *stmgr.StateManager Chain *store.ChainStore Beacon beacon.Schedule }
func (*StateAPI) MinerCreateBlock ¶
func (*StateAPI) MinerGetBaseInfo ¶
func (a *StateAPI) MinerGetBaseInfo(ctx context.Context, maddr address.Address, epoch abi.ChainEpoch, tsk types.TipSetKey) (*api.MiningBaseInfo, error)
This is on StateAPI because miner.Miner requires this, and MinerAPI requires miner.Miner
func (*StateAPI) MsigGetVestingSchedule ¶
func (*StateAPI) StateAllMinerFaults ¶
func (*StateAPI) StateBlockReward ¶
func (*StateAPI) StateChangedActors ¶
func (*StateAPI) StateCirculatingSupply ¶
func (*StateAPI) StateCoinbase ¶
func (*StateAPI) StateCompute ¶
func (*StateAPI) StateDataIndex ¶
func (*StateAPI) StateDecodeParams ¶
func (*StateAPI) StateExpertDatas ¶
func (*StateAPI) StateExpertFileInfo ¶
func (*StateAPI) StateExpertInfo ¶
func (*StateAPI) StateGovernParams ¶
func (*StateAPI) StateGovernSupervisor ¶
func (*StateAPI) StateGovernorList ¶
func (*StateAPI) StateKnowledgeInfo ¶
func (*StateAPI) StateListActors ¶
func (*StateAPI) StateListExperts ¶
func (*StateAPI) StateListMessages ¶
func (*StateAPI) StateMarketDeals ¶
func (*StateAPI) StateMarketRemainingQuota ¶
func (*StateAPI) StateMinerActiveSectors ¶
func (*StateAPI) StateMinerActives ¶
func (*StateAPI) StateMinerDeadlines ¶
func (*StateAPI) StateMinerFaults ¶
func (*StateAPI) StateMinerFunds ¶
func (*StateAPI) StateMinerPartitions ¶
func (*StateAPI) StateMinerRecoveries ¶
func (*StateAPI) StateMinerSectorAllocated ¶
func (*StateAPI) StateMinerSectorCount ¶
func (*StateAPI) StateMinerSectors ¶
func (*StateAPI) StateMinerStoredAnyPiece ¶
func (*StateAPI) StateNetworkName ¶
func (*StateAPI) StateReadState ¶
func (*StateAPI) StateReplay ¶
func (*StateAPI) StateRetrievalInfo ¶
func (*StateAPI) StateRetrievalPledge ¶
func (*StateAPI) StateRetrievalPledgeFrom ¶
func (*StateAPI) StateRetrievalPledgeList ¶
func (*StateAPI) StateSearchMsgLimited ¶
func (*StateAPI) StateSectorExpiration ¶
func (a *StateAPI) StateSectorExpiration(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorExpiration, error)
func (*StateAPI) StateSectorPartition ¶
func (a *StateAPI) StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorLocation, error)
func (*StateAPI) StateSectorPreCommitInfo ¶
func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (miner.SectorPreCommitOnChainInfo, error)
func (*StateAPI) StateTotalMinedDetail ¶
func (*StateAPI) StateVMCirculatingSupplyInternal ¶
func (*StateAPI) StateVoteTally ¶
func (*StateAPI) StateVoterInfo ¶
type StateModule ¶
type StateModule struct { fx.In StateManager *stmgr.StateManager Chain *store.ChainStore }
StateModule provides a default implementation of StateModuleAPI. It can be swapped out with another implementation through Dependency Injection (for example with a thin RPC client).
func (*StateModule) MsigGetAvailableBalance ¶
func (*StateModule) MsigGetPending ¶
func (m *StateModule) MsigGetPending(ctx context.Context, addr address.Address, tsk types.TipSetKey) ([]*api.MsigTransaction, error)
func (*StateModule) MsigGetVested ¶
func (*StateModule) StateAccountKey ¶
func (*StateModule) StateGetActor ¶
func (*StateModule) StateGetReceipt ¶
func (m *StateModule) StateGetReceipt(ctx context.Context, msg cid.Cid, tsk types.TipSetKey) (*types.MessageReceipt, error)
func (*StateModule) StateListMiners ¶
func (*StateModule) StateLookupID ¶
func (*StateModule) StateMarketStorageDeal ¶
func (m *StateModule) StateMarketStorageDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error)
func (*StateModule) StateMinerInfo ¶
func (*StateModule) StateMinerPower ¶
func (m *StateModule) StateMinerPower(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.MinerPower, error)
func (*StateModule) StateMinerProvingDeadline ¶
func (*StateModule) StateNetworkVersion ¶
func (*StateModule) StateSearchMsg ¶
func (*StateModule) StateSectorGetInfo ¶
func (m *StateModule) StateSectorGetInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error)
type StateModuleAPI ¶
type StateModuleAPI interface { MsigGetAvailableBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (types.BigInt, error) MsigGetVested(ctx context.Context, addr address.Address, start types.TipSetKey, end types.TipSetKey) (types.BigInt, error) MsigGetPending(ctx context.Context, addr address.Address, tsk types.TipSetKey) ([]*api.MsigTransaction, error) StateAccountKey(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) /* StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, tsk types.TipSetKey) (api.DealCollateralBounds, error) */ StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error) StateGetReceipt(context.Context, cid.Cid, types.TipSetKey) (*types.MessageReceipt, error) StateListMiners(ctx context.Context, tsk types.TipSetKey) ([]address.Address, error) StateLookupID(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error) // StateMarketBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MarketBalance, error) StateMarketStorageDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error) StateMinerInfo(ctx context.Context, actor address.Address, tsk types.TipSetKey) (miner.MinerInfo, error) StateMinerProvingDeadline(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*dline.Info, error) StateMinerPower(context.Context, address.Address, types.TipSetKey) (*api.MinerPower, error) StateNetworkVersion(ctx context.Context, key types.TipSetKey) (network.Version, error) StateSearchMsg(ctx context.Context, msg cid.Cid) (*api.MsgLookup, error) StateSectorGetInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error) // StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error) StateWaitMsg(ctx context.Context, msg cid.Cid, confidence uint64) (*api.MsgLookup, error) }
type SyncAPI ¶
type SyncAPI struct { fx.In SlashFilter *slashfilter.SlashFilter Syncer *chain.Syncer PubSub *pubsub.PubSub NetName dtypes.NetworkName }
func (*SyncAPI) SyncCheckBad ¶
func (*SyncAPI) SyncCheckpoint ¶
func (*SyncAPI) SyncIncomingBlocks ¶
func (*SyncAPI) SyncMarkBad ¶
func (*SyncAPI) SyncSubmitBlock ¶
func (*SyncAPI) SyncUnmarkBad ¶
type WalletAPI ¶
type WalletAPI struct { fx.In StateManagerAPI stmgr.StateManagerAPI Default wallet.Default api.WalletAPI }