Documentation ¶
Index ¶
- Constants
- Variables
- func EthTxHashGC(ctx context.Context, retentionDays int, manager *EthTxHashManager)
- func WaitForMpoolUpdates(ctx context.Context, ch <-chan api.MpoolUpdate, manager *EthTxHashManager)
- type ActorEventAPI
- type ActorEventDummy
- type ActorEventHandler
- type ActorEventsAPI
- type ChainAPI
- func (a *ChainAPI) ChainBlockstoreInfo(ctx context.Context) (map[string]interface{}, error)
- func (a *ChainAPI) ChainCheckBlockstore(ctx context.Context) 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) ChainExportRangeInternal(ctx context.Context, head, tail types.TipSetKey, cfg api.ChainExportConfig) error
- func (a *ChainAPI) ChainGetBlock(ctx context.Context, msg cid.Cid) (*types.BlockHeader, error)
- func (a *ChainAPI) ChainGetEvents(ctx context.Context, root cid.Cid) ([]types.Event, error)
- func (a *ChainAPI) ChainGetGenesis(ctx context.Context) (*types.TipSet, error)
- func (a *ChainAPI) ChainGetMessagesInTipset(ctx context.Context, tsk types.TipSetKey) ([]api.Message, 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) ChainHotGC(ctx context.Context, opts api.HotGCOpts) error
- func (a *ChainAPI) ChainPrune(ctx context.Context, opts api.PruneOpts) error
- func (a *ChainAPI) ChainPutObj(ctx context.Context, obj blocks.Block) 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 ChainAccessor
- 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) ChainGetPath(ctx context.Context, from, to types.TipSetKey) ([]*api.HeadChange, error)
- func (m *ChainModule) ChainGetTipSet(ctx context.Context, key types.TipSetKey) (*types.TipSet, error)
- func (m *ChainModule) ChainGetTipSetAfterHeight(ctx context.Context, h abi.ChainEpoch, tsk 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 EthAPI
- func (a *EthAPI) EthAddressToFilecoinAddress(ctx context.Context, ethAddress ethtypes.EthAddress) (address.Address, error)
- func (a *EthAPI) EthGetTransactionByBlockHashAndIndex(context.Context, ethtypes.EthHash, ethtypes.EthUint64) (ethtypes.EthTx, error)
- func (a *EthAPI) EthGetTransactionByBlockNumberAndIndex(context.Context, ethtypes.EthUint64, ethtypes.EthUint64) (ethtypes.EthTx, error)
- func (a *EthAPI) FilecoinAddressToEthAddress(ctx context.Context, filecoinAddress address.Address) (ethtypes.EthAddress, error)
- type EthEventAPI
- type EthEventHandler
- func (e *EthEventHandler) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
- func (e *EthEventHandler) EthGetFilterLogs(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
- func (e *EthEventHandler) EthGetLogs(ctx context.Context, filterSpec *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error)
- func (e *EthEventHandler) EthNewBlockFilter(ctx context.Context) (ethtypes.EthFilterID, error)
- func (e *EthEventHandler) EthNewFilter(ctx context.Context, filterSpec *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error)
- func (e *EthEventHandler) EthNewPendingTransactionFilter(ctx context.Context) (ethtypes.EthFilterID, error)
- func (e *EthEventHandler) EthSubscribe(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error)
- func (e *EthEventHandler) EthUninstallFilter(ctx context.Context, id ethtypes.EthFilterID) (bool, error)
- func (e *EthEventHandler) EthUnsubscribe(ctx context.Context, id ethtypes.EthSubscriptionID) (bool, error)
- func (e *EthEventHandler) GC(ctx context.Context, ttl time.Duration)
- type EthModule
- func (a *EthModule) EthAccounts(context.Context) ([]ethtypes.EthAddress, error)
- func (a *EthModule) EthBlockNumber(ctx context.Context) (ethtypes.EthUint64, error)
- func (a *EthModule) EthCall(ctx context.Context, tx ethtypes.EthCall, ...) (ethtypes.EthBytes, error)
- func (a *EthModule) EthChainId(ctx context.Context) (ethtypes.EthUint64, error)
- func (a *EthModule) EthEstimateGas(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthUint64, error)
- func (a *EthModule) EthFeeHistory(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthFeeHistory, error)
- func (a *EthModule) EthGasPrice(ctx context.Context) (ethtypes.EthBigInt, error)
- func (a *EthModule) EthGetBalance(ctx context.Context, address ethtypes.EthAddress, ...) (ethtypes.EthBigInt, error)
- func (a *EthModule) EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthHash, fullTxInfo bool) (ethtypes.EthBlock, error)
- func (a *EthModule) EthGetBlockByNumber(ctx context.Context, blkParam string, fullTxInfo bool) (ethtypes.EthBlock, error)
- func (a *EthModule) EthGetBlockTransactionCountByHash(ctx context.Context, blkHash ethtypes.EthHash) (ethtypes.EthUint64, error)
- func (a *EthModule) EthGetBlockTransactionCountByNumber(ctx context.Context, blkNum ethtypes.EthUint64) (ethtypes.EthUint64, error)
- func (a *EthModule) EthGetCode(ctx context.Context, ethAddr ethtypes.EthAddress, ...) (ethtypes.EthBytes, error)
- func (a *EthModule) EthGetMessageCidByTransactionHash(ctx context.Context, txHash *ethtypes.EthHash) (*cid.Cid, error)
- func (a *EthModule) EthGetStorageAt(ctx context.Context, ethAddr ethtypes.EthAddress, position ethtypes.EthBytes, ...) (ethtypes.EthBytes, error)
- func (a *EthModule) EthGetTransactionByHash(ctx context.Context, txHash *ethtypes.EthHash) (*ethtypes.EthTx, error)
- func (a *EthModule) EthGetTransactionByHashLimited(ctx context.Context, txHash *ethtypes.EthHash, limit abi.ChainEpoch) (*ethtypes.EthTx, error)
- func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.EthAddress, ...) (ethtypes.EthUint64, error)
- func (a *EthModule) EthGetTransactionHashByCid(ctx context.Context, cid cid.Cid) (*ethtypes.EthHash, error)
- func (a *EthModule) EthGetTransactionReceipt(ctx context.Context, txHash ethtypes.EthHash) (*api.EthTxReceipt, error)
- func (a *EthModule) EthGetTransactionReceiptLimited(ctx context.Context, txHash ethtypes.EthHash, limit abi.ChainEpoch) (*api.EthTxReceipt, error)
- func (a *EthModule) EthMaxPriorityFeePerGas(ctx context.Context) (ethtypes.EthBigInt, error)
- func (a *EthModule) EthProtocolVersion(ctx context.Context) (ethtypes.EthUint64, error)
- func (a *EthModule) EthSendRawTransaction(ctx context.Context, rawTx ethtypes.EthBytes) (ethtypes.EthHash, error)
- func (a *EthModule) EthSyncing(ctx context.Context) (ethtypes.EthSyncingResult, error)
- func (a *EthModule) EthTraceBlock(ctx context.Context, blkNum string) ([]*ethtypes.EthTraceBlock, error)
- func (a *EthModule) EthTraceReplayBlockTransactions(ctx context.Context, blkNum string, traceTypes []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error)
- func (a *EthModule) NetListening(ctx context.Context) (bool, error)
- func (a *EthModule) NetVersion(_ context.Context) (string, error)
- func (a *EthModule) StateNetworkName(ctx context.Context) (dtypes.NetworkName, error)
- func (a *EthModule) Web3ClientVersion(ctx context.Context) (string, error)
- type EthModuleAPI
- type EthModuleDummy
- func (e *EthModuleDummy) EthAccounts(ctx context.Context) ([]ethtypes.EthAddress, error)
- func (e *EthModuleDummy) EthAddressToFilecoinAddress(ctx context.Context, ethAddress ethtypes.EthAddress) (address.Address, error)
- func (e *EthModuleDummy) EthBlockNumber(ctx context.Context) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthCall(ctx context.Context, tx ethtypes.EthCall, ...) (ethtypes.EthBytes, error)
- func (e *EthModuleDummy) EthChainId(ctx context.Context) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthEstimateGas(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthFeeHistory(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthFeeHistory, error)
- func (e *EthModuleDummy) EthGasPrice(ctx context.Context) (ethtypes.EthBigInt, error)
- func (e *EthModuleDummy) EthGetBalance(ctx context.Context, address ethtypes.EthAddress, ...) (ethtypes.EthBigInt, error)
- func (e *EthModuleDummy) EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthHash, fullTxInfo bool) (ethtypes.EthBlock, error)
- func (e *EthModuleDummy) EthGetBlockByNumber(ctx context.Context, blkNum string, fullTxInfo bool) (ethtypes.EthBlock, error)
- func (e *EthModuleDummy) EthGetBlockTransactionCountByHash(ctx context.Context, blkHash ethtypes.EthHash) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthGetBlockTransactionCountByNumber(ctx context.Context, blkNum ethtypes.EthUint64) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthGetCode(ctx context.Context, address ethtypes.EthAddress, ...) (ethtypes.EthBytes, error)
- func (e *EthModuleDummy) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
- func (e *EthModuleDummy) EthGetFilterLogs(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
- func (e *EthModuleDummy) EthGetLogs(ctx context.Context, filter *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error)
- func (e *EthModuleDummy) EthGetMessageCidByTransactionHash(ctx context.Context, txHash *ethtypes.EthHash) (*cid.Cid, error)
- func (e *EthModuleDummy) EthGetStorageAt(ctx context.Context, address ethtypes.EthAddress, position ethtypes.EthBytes, ...) (ethtypes.EthBytes, error)
- func (e *EthModuleDummy) EthGetTransactionByBlockHashAndIndex(ctx context.Context, blkHash ethtypes.EthHash, txIndex ethtypes.EthUint64) (ethtypes.EthTx, error)
- func (e *EthModuleDummy) EthGetTransactionByBlockNumberAndIndex(ctx context.Context, blkNum ethtypes.EthUint64, txIndex ethtypes.EthUint64) (ethtypes.EthTx, error)
- func (e *EthModuleDummy) EthGetTransactionByHash(ctx context.Context, txHash *ethtypes.EthHash) (*ethtypes.EthTx, error)
- func (e *EthModuleDummy) EthGetTransactionByHashLimited(ctx context.Context, txHash *ethtypes.EthHash, limit abi.ChainEpoch) (*ethtypes.EthTx, error)
- func (e *EthModuleDummy) EthGetTransactionCount(ctx context.Context, sender ethtypes.EthAddress, ...) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthGetTransactionHashByCid(ctx context.Context, cid cid.Cid) (*ethtypes.EthHash, error)
- func (e *EthModuleDummy) EthGetTransactionReceipt(ctx context.Context, txHash ethtypes.EthHash) (*api.EthTxReceipt, error)
- func (e *EthModuleDummy) EthGetTransactionReceiptLimited(ctx context.Context, txHash ethtypes.EthHash, limit abi.ChainEpoch) (*api.EthTxReceipt, error)
- func (e *EthModuleDummy) EthMaxPriorityFeePerGas(ctx context.Context) (ethtypes.EthBigInt, error)
- func (e *EthModuleDummy) EthNewBlockFilter(ctx context.Context) (ethtypes.EthFilterID, error)
- func (e *EthModuleDummy) EthNewFilter(ctx context.Context, filter *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error)
- func (e *EthModuleDummy) EthNewPendingTransactionFilter(ctx context.Context) (ethtypes.EthFilterID, error)
- func (e *EthModuleDummy) EthProtocolVersion(ctx context.Context) (ethtypes.EthUint64, error)
- func (e *EthModuleDummy) EthSendRawTransaction(ctx context.Context, rawTx ethtypes.EthBytes) (ethtypes.EthHash, error)
- func (e *EthModuleDummy) EthSubscribe(ctx context.Context, params jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error)
- func (e *EthModuleDummy) EthSyncing(ctx context.Context) (ethtypes.EthSyncingResult, error)
- func (e *EthModuleDummy) EthTraceBlock(ctx context.Context, blkNum string) ([]*ethtypes.EthTraceBlock, error)
- func (e *EthModuleDummy) EthTraceReplayBlockTransactions(ctx context.Context, blkNum string, traceTypes []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error)
- func (e *EthModuleDummy) EthUninstallFilter(ctx context.Context, id ethtypes.EthFilterID) (bool, error)
- func (e *EthModuleDummy) EthUnsubscribe(ctx context.Context, id ethtypes.EthSubscriptionID) (bool, error)
- func (e *EthModuleDummy) NetListening(ctx context.Context) (bool, error)
- func (e *EthModuleDummy) NetVersion(ctx context.Context) (string, error)
- func (e *EthModuleDummy) Web3ClientVersion(ctx context.Context) (string, error)
- type EthSubscriptionManager
- type EthTxHashManager
- func (m *EthTxHashManager) Apply(ctx context.Context, from, to *types.TipSet) error
- func (m *EthTxHashManager) PopulateExistingMappings(ctx context.Context, minHeight abi.ChainEpoch) error
- func (m *EthTxHashManager) ProcessSignedMessage(ctx context.Context, msg *types.SignedMessage)
- func (m *EthTxHashManager) Revert(ctx context.Context, from, to *types.TipSet) error
- type EventFilterManager
- 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 GasMeta
- 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 GasPriceCache
- 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) MpoolCheckMessages(ctx context.Context, protos []*api.MessagePrototype) ([][]api.MessageCheckStatus, error)
- func (a *MpoolAPI) MpoolCheckPendingMessages(ctx context.Context, from address.Address) ([][]api.MessageCheckStatus, error)
- func (a *MpoolAPI) MpoolCheckReplaceMessages(ctx context.Context, msgs []*types.Message) ([][]api.MessageCheckStatus, 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, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigAddCancel(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigAddPropose(ctx context.Context, msig address.Address, src address.Address, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigApprove(ctx context.Context, msig address.Address, txID uint64, src address.Address) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigApproveTxnHash(ctx context.Context, msig address.Address, txID uint64, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigCancel(ctx context.Context, msig address.Address, txID uint64, src address.Address) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigCancelTxnHash(ctx context.Context, msig address.Address, txID uint64, to address.Address, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigCreate(ctx context.Context, req uint64, addrs []address.Address, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigPropose(ctx context.Context, msig address.Address, to address.Address, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigRemoveSigner(ctx context.Context, msig address.Address, proposer address.Address, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigSwapApprove(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigSwapCancel(ctx context.Context, msig address.Address, src address.Address, txID uint64, ...) (*api.MessagePrototype, error)
- func (a *MsigAPI) MsigSwapPropose(ctx context.Context, msig address.Address, src address.Address, ...) (*api.MessagePrototype, error)
- type RaftAPI
- func (r *RaftAPI) GetRaftState(ctx context.Context) (*api.RaftStateData, error)
- func (r *RaftAPI) IsLeader(ctx context.Context) bool
- func (r *RaftAPI) Leader(ctx context.Context) (peer.ID, error)
- func (r *RaftAPI) RedirectToLeader(ctx context.Context, method string, arg interface{}, ret interface{}) (bool, 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) StateActorCodeCIDs(ctx context.Context, nv network.Version) (map[string]cid.Cid, error)
- func (a *StateAPI) StateActorManifestCID(ctx context.Context, nv network.Version) (cid.Cid, error)
- func (a *StateAPI) StateAllMinerFaults(ctx context.Context, lookback abi.ChainEpoch, endTsk types.TipSetKey) ([]*api.Fault, 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) StateCompute(ctx context.Context, height abi.ChainEpoch, msgs []*types.Message, ...) (*api.ComputeStateOutput, error)
- func (a *StateAPI) StateComputeDataCID(ctx context.Context, maddr address.Address, sectorType abi.RegisteredSealProof, ...) (cid.Cid, error)
- func (a *StateAPI) StateDecodeParams(ctx context.Context, toAddr address.Address, method abi.MethodNum, ...) (interface{}, error)
- func (a *StateAPI) StateEncodeParams(ctx context.Context, toActCode cid.Cid, method abi.MethodNum, ...) ([]byte, error)
- func (a *StateAPI) StateGetAllAllocations(ctx context.Context, tsk types.TipSetKey) (map[verifreg.AllocationId]verifreg.Allocation, error)
- func (a *StateAPI) StateGetAllClaims(ctx context.Context, tsk types.TipSetKey) (map[verifreg.ClaimId]verifreg.Claim, error)
- func (a *StateAPI) StateGetAllocation(ctx context.Context, clientAddr address.Address, ...) (*verifreg.Allocation, error)
- func (a *StateAPI) StateGetAllocationForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*verifreg.Allocation, error)
- func (a *StateAPI) StateGetAllocationIdForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (verifreg.AllocationId, error)
- func (a *StateAPI) StateGetAllocations(ctx context.Context, clientAddr address.Address, tsk types.TipSetKey) (map[verifreg.AllocationId]verifreg.Allocation, error)
- func (a *StateAPI) StateGetBeaconEntry(ctx context.Context, epoch abi.ChainEpoch) (*types.BeaconEntry, error)
- func (a *StateAPI) StateGetClaim(ctx context.Context, providerAddr address.Address, claimId verifreg.ClaimId, ...) (*verifreg.Claim, error)
- func (a *StateAPI) StateGetClaims(ctx context.Context, providerAddr address.Address, tsk types.TipSetKey) (map[verifreg.ClaimId]verifreg.Claim, error)
- func (a *StateAPI) StateGetNetworkParams(ctx context.Context) (*api.NetworkParams, error)
- func (a *StateAPI) StateGetRandomnessDigestFromBeacon(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
- func (a *StateAPI) StateGetRandomnessDigestFromTickets(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
- func (a *StateAPI) StateGetRandomnessFromBeacon(ctx context.Context, personalization crypto.DomainSeparationTag, ...) (abi.Randomness, error)
- func (a *StateAPI) StateGetRandomnessFromTickets(ctx context.Context, personalization crypto.DomainSeparationTag, ...) (abi.Randomness, error)
- func (a *StateAPI) StateListActors(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) StateLookupRobustAddress(ctx context.Context, addr address.Address, tsk types.TipSetKey) (address.Address, error)
- func (a *StateAPI) StateMarketDeals(ctx context.Context, tsk types.TipSetKey) (map[string]*api.MarketDeal, error)
- func (a *StateAPI) StateMarketParticipants(ctx context.Context, tsk types.TipSetKey) (map[string]api.MarketBalance, error)
- func (a *StateAPI) StateMinerActiveSectors(ctx context.Context, maddr address.Address, tsk types.TipSetKey) ([]*miner.SectorOnChainInfo, error)
- func (a *StateAPI) StateMinerAllocated(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*bitfield.BitField, error)
- func (a *StateAPI) StateMinerAvailableBalance(ctx context.Context, maddr address.Address, tsk types.TipSetKey) (types.BigInt, 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) StateMinerInitialPledgeCollateral(ctx context.Context, maddr address.Address, pci miner.SectorPreCommitInfo, ...) (types.BigInt, error)
- func (a *StateAPI) StateMinerPartitions(ctx context.Context, m address.Address, dlIdx uint64, tsk types.TipSetKey) ([]api.Partition, error)
- func (a *StateAPI) StateMinerPreCommitDepositForPower(ctx context.Context, maddr address.Address, pci miner.SectorPreCommitInfo, ...) (types.BigInt, 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) 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) 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) StateVMCirculatingSupplyInternal(ctx context.Context, tsk types.TipSetKey) (api.CirculatingSupply, error)
- func (a *StateAPI) StateVerifiedRegistryRootKey(ctx context.Context, tsk types.TipSetKey) (address.Address, error)
- func (a *StateAPI) StateVerifierStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, 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) StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, ...) (api.DealCollateralBounds, error)
- func (m *StateModule) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (a *types.Actor, err 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) StateMarketBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MarketBalance, 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) (api.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, tsk types.TipSetKey, 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) StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, 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 ( EthSubscribeEventTypeHeads = "newHeads" EthSubscribeEventTypeLogs = "logs" EthSubscribeEventTypePendingTransactions = "newPendingTransactions" )
const MaxSpendOnFeeDenom = 100
const MinGasPremium = 100e3
Variables ¶
var ErrActorEventModuleDisabled = errors.New("module disabled, enable with Fevm.EnableActorEventsAPI")
var ErrModuleDisabled = errors.New("module disabled, enable with Fevm.EnableEthRPC / LOTUS_FEVM_ENABLEETHRPC")
var ErrNullRound = errors.New("requested epoch was a null round")
var ErrUnsupported = errors.New("unsupported method")
Functions ¶
func EthTxHashGC ¶ added in v1.20.0
func EthTxHashGC(ctx context.Context, retentionDays int, manager *EthTxHashManager)
func WaitForMpoolUpdates ¶ added in v1.20.0
func WaitForMpoolUpdates(ctx context.Context, ch <-chan api.MpoolUpdate, manager *EthTxHashManager)
Types ¶
type ActorEventAPI ¶ added in v1.26.0
type ActorEventAPI interface { GetActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) ([]*types.ActorEvent, error) SubscribeActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) (<-chan *types.ActorEvent, error) }
type ActorEventDummy ¶ added in v1.26.0
type ActorEventDummy struct{}
func (*ActorEventDummy) GetActorEventsRaw ¶ added in v1.26.0
func (a *ActorEventDummy) GetActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) ([]*types.ActorEvent, error)
func (*ActorEventDummy) SubscribeActorEventsRaw ¶ added in v1.26.0
func (a *ActorEventDummy) SubscribeActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) (<-chan *types.ActorEvent, error)
type ActorEventHandler ¶ added in v1.26.0
type ActorEventHandler struct {
// contains filtered or unexported fields
}
func NewActorEventHandler ¶ added in v1.26.0
func NewActorEventHandler( chain ChainAccessor, eventFilterManager EventFilterManager, blockDelay time.Duration, maxFilterHeightRange abi.ChainEpoch, ) *ActorEventHandler
func NewActorEventHandlerWithClock ¶ added in v1.26.0
func NewActorEventHandlerWithClock( chain ChainAccessor, eventFilterManager EventFilterManager, blockDelay time.Duration, maxFilterHeightRange abi.ChainEpoch, clock clock.Clock, ) *ActorEventHandler
func (*ActorEventHandler) GetActorEventsRaw ¶ added in v1.26.0
func (a *ActorEventHandler) GetActorEventsRaw(ctx context.Context, evtFilter *types.ActorEventFilter) ([]*types.ActorEvent, error)
func (*ActorEventHandler) SubscribeActorEventsRaw ¶ added in v1.26.0
func (a *ActorEventHandler) SubscribeActorEventsRaw(ctx context.Context, evtFilter *types.ActorEventFilter) (<-chan *types.ActorEvent, error)
type ActorEventsAPI ¶ added in v1.26.0
type ActorEventsAPI struct { fx.In ActorEventAPI }
type ChainAPI ¶
type ChainAPI struct { fx.In WalletAPI ChainModuleAPI Chain *store.ChainStore TsExec stmgr.Executor // 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 // BaseBlockstore is the underlying blockstore BaseBlockstore dtypes.BaseBlockstore Repo repo.LockedRepo }
func (*ChainAPI) ChainBlockstoreInfo ¶ added in v1.11.1
func (*ChainAPI) ChainCheckBlockstore ¶ added in v1.11.1
func (*ChainAPI) ChainDeleteObj ¶ added in v0.7.2
func (*ChainAPI) ChainExport ¶ added in v0.2.6
func (ChainAPI) ChainExportRangeInternal ¶ added in v1.23.0
func (*ChainAPI) ChainGetBlock ¶
func (*ChainAPI) ChainGetEvents ¶ added in v1.20.0
ChainGetEvents returns the events under an event AMT root CID.
TODO (raulk) make copies of this logic elsewhere use this (e.g. itests, CLI, events filter).
func (*ChainAPI) ChainGetGenesis ¶
func (*ChainAPI) ChainGetMessagesInTipset ¶ added in v1.11.1
func (*ChainAPI) ChainGetNode ¶ added in v0.1.5
func (*ChainAPI) ChainGetParentMessages ¶
func (*ChainAPI) ChainGetParentReceipts ¶
func (*ChainAPI) ChainGetPath ¶ added in v0.2.5
func (*ChainAPI) ChainHotGC ¶ added in v1.23.0
func (*ChainAPI) ChainPrune ¶ added in v1.17.1
func (*ChainAPI) ChainPutObj ¶ added in v1.16.0
func (*ChainAPI) ChainSetHead ¶
func (*ChainAPI) ChainStatObj ¶ added in v0.3.0
type ChainAccessor ¶ added in v1.26.0
type ChainModule ¶ added in v0.9.1
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 ¶ added in v1.1.1
func (m *ChainModule) ChainGetBlockMessages(ctx context.Context, msg cid.Cid) (*api.BlockMessages, error)
func (*ChainModule) ChainGetMessage ¶ added in v1.1.1
func (*ChainModule) ChainGetPath ¶ added in v1.13.0
func (m *ChainModule) ChainGetPath(ctx context.Context, from, to types.TipSetKey) ([]*api.HeadChange, error)
func (*ChainModule) ChainGetTipSet ¶ added in v0.9.1
func (*ChainModule) ChainGetTipSetAfterHeight ¶ added in v1.11.2
func (m *ChainModule) ChainGetTipSetAfterHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error)
func (*ChainModule) ChainGetTipSetByHeight ¶ added in v0.9.1
func (m *ChainModule) ChainGetTipSetByHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error)
func (*ChainModule) ChainHasObj ¶ added in v1.0.0
func (m *ChainModule) ChainHasObj(ctx context.Context, obj cid.Cid) (bool, error)
func (*ChainModule) ChainNotify ¶ added in v1.1.1
func (m *ChainModule) ChainNotify(ctx context.Context) (<-chan []*api.HeadChange, error)
func (*ChainModule) ChainReadObj ¶ added in v1.0.0
func (m *ChainModule) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error)
type ChainModuleAPI ¶ added in v0.9.1
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) ChainGetTipSetAfterHeight(ctx context.Context, h abi.ChainEpoch, tsk types.TipSetKey) (*types.TipSet, error) ChainReadObj(context.Context, cid.Cid) ([]byte, error) ChainGetPath(ctx context.Context, from, to types.TipSetKey) ([]*api.HeadChange, error) }
type EthAPI ¶ added in v1.20.0
type EthAPI struct { fx.In Chain *store.ChainStore EthModuleAPI EthEventAPI }
func (*EthAPI) EthAddressToFilecoinAddress ¶ added in v1.20.0
func (*EthAPI) EthGetTransactionByBlockHashAndIndex ¶ added in v1.23.0
func (*EthAPI) EthGetTransactionByBlockNumberAndIndex ¶ added in v1.23.0
func (*EthAPI) FilecoinAddressToEthAddress ¶ added in v1.20.0
type EthEventAPI ¶ added in v1.20.0
type EthEventAPI interface { EthGetLogs(ctx context.Context, filter *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) EthGetFilterLogs(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error) EthNewFilter(ctx context.Context, filter *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error) EthNewBlockFilter(ctx context.Context) (ethtypes.EthFilterID, error) EthNewPendingTransactionFilter(ctx context.Context) (ethtypes.EthFilterID, error) EthUninstallFilter(ctx context.Context, id ethtypes.EthFilterID) (bool, error) EthSubscribe(ctx context.Context, params jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error) EthUnsubscribe(ctx context.Context, id ethtypes.EthSubscriptionID) (bool, error) }
type EthEventHandler ¶ added in v1.26.0
type EthEventHandler struct { Chain *store.ChainStore EventFilterManager *filter.EventFilterManager TipSetFilterManager *filter.TipSetFilterManager MemPoolFilterManager *filter.MemPoolFilterManager FilterStore filter.FilterStore SubManager *EthSubscriptionManager MaxFilterHeightRange abi.ChainEpoch SubscribtionCtx context.Context }
func (*EthEventHandler) EthGetFilterChanges ¶ added in v1.26.0
func (e *EthEventHandler) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
func (*EthEventHandler) EthGetFilterLogs ¶ added in v1.26.0
func (e *EthEventHandler) EthGetFilterLogs(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
func (*EthEventHandler) EthGetLogs ¶ added in v1.26.0
func (e *EthEventHandler) EthGetLogs(ctx context.Context, filterSpec *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error)
func (*EthEventHandler) EthNewBlockFilter ¶ added in v1.26.0
func (e *EthEventHandler) EthNewBlockFilter(ctx context.Context) (ethtypes.EthFilterID, error)
func (*EthEventHandler) EthNewFilter ¶ added in v1.26.0
func (e *EthEventHandler) EthNewFilter(ctx context.Context, filterSpec *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error)
func (*EthEventHandler) EthNewPendingTransactionFilter ¶ added in v1.26.0
func (e *EthEventHandler) EthNewPendingTransactionFilter(ctx context.Context) (ethtypes.EthFilterID, error)
func (*EthEventHandler) EthSubscribe ¶ added in v1.26.0
func (e *EthEventHandler) EthSubscribe(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error)
func (*EthEventHandler) EthUninstallFilter ¶ added in v1.26.0
func (e *EthEventHandler) EthUninstallFilter(ctx context.Context, id ethtypes.EthFilterID) (bool, error)
func (*EthEventHandler) EthUnsubscribe ¶ added in v1.26.0
func (e *EthEventHandler) EthUnsubscribe(ctx context.Context, id ethtypes.EthSubscriptionID) (bool, error)
type EthModule ¶ added in v1.20.0
type EthModule struct { Chain *store.ChainStore Mpool *messagepool.MessagePool StateManager *stmgr.StateManager EthTxHashManager *EthTxHashManager ChainAPI MpoolAPI StateAPI SyncAPI }
EthModule provides the default implementation of the standard Ethereum JSON-RPC API.
Execution model reconciliation ¶
Ethereum relies on an immediate block-based execution model. The block that includes a transaction is also the block that executes it. Each block specifies the state root resulting from executing all transactions within it (output state).
In Filecoin, at every epoch there is an unknown number of round winners all of whom are entitled to publish a block. Blocks are collected into a tipset. A tipset is committed only when the subsequent tipset is built on it (i.e. it becomes a parent). Block producers execute the parent tipset and specify the resulting state root in the block being produced. In other words, contrary to Ethereum, each block specifies the input state root.
Ethereum clients expect transactions returned via eth_getBlock* to have a receipt (due to immediate execution). For this reason:
- eth_blockNumber returns the latest executed epoch (head - 1)
- The 'latest' block refers to the latest executed epoch (head - 1)
- The 'pending' block refers to the current speculative tipset (head)
- eth_getTransactionByHash returns the inclusion tipset of a message, but only after it has executed.
- eth_getTransactionReceipt ditto.
"Latest executed epoch" refers to the tipset that this node currently accepts as the best parent tipset, based on the blocks it is accumulating within the HEAD tipset.
func (*EthModule) EthAccounts ¶ added in v1.20.0
func (*EthModule) EthBlockNumber ¶ added in v1.20.0
func (*EthModule) EthChainId ¶ added in v1.20.0
func (*EthModule) EthEstimateGas ¶ added in v1.20.0
func (*EthModule) EthFeeHistory ¶ added in v1.20.0
func (*EthModule) EthGasPrice ¶ added in v1.20.0
func (*EthModule) EthGetBalance ¶ added in v1.20.0
func (a *EthModule) EthGetBalance(ctx context.Context, address ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error)
func (*EthModule) EthGetBlockByHash ¶ added in v1.20.0
func (*EthModule) EthGetBlockByNumber ¶ added in v1.20.0
func (*EthModule) EthGetBlockTransactionCountByHash ¶ added in v1.20.0
func (*EthModule) EthGetBlockTransactionCountByNumber ¶ added in v1.20.0
func (*EthModule) EthGetCode ¶ added in v1.20.0
func (a *EthModule) EthGetCode(ctx context.Context, ethAddr ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error)
EthGetCode returns string value of the compiled bytecode
func (*EthModule) EthGetMessageCidByTransactionHash ¶ added in v1.20.0
func (*EthModule) EthGetStorageAt ¶ added in v1.20.0
func (*EthModule) EthGetTransactionByHash ¶ added in v1.20.0
func (*EthModule) EthGetTransactionByHashLimited ¶ added in v1.23.0
func (*EthModule) EthGetTransactionCount ¶ added in v1.20.0
func (a *EthModule) EthGetTransactionCount(ctx context.Context, sender ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error)
func (*EthModule) EthGetTransactionHashByCid ¶ added in v1.20.0
func (*EthModule) EthGetTransactionReceipt ¶ added in v1.20.0
func (*EthModule) EthGetTransactionReceiptLimited ¶ added in v1.23.0
func (a *EthModule) EthGetTransactionReceiptLimited(ctx context.Context, txHash ethtypes.EthHash, limit abi.ChainEpoch) (*api.EthTxReceipt, error)
func (*EthModule) EthMaxPriorityFeePerGas ¶ added in v1.20.0
func (*EthModule) EthProtocolVersion ¶ added in v1.20.0
func (*EthModule) EthSendRawTransaction ¶ added in v1.20.0
func (*EthModule) EthSyncing ¶ added in v1.23.3
func (*EthModule) EthTraceBlock ¶ added in v1.25.0
func (*EthModule) EthTraceReplayBlockTransactions ¶ added in v1.25.0
func (*EthModule) NetListening ¶ added in v1.20.0
func (*EthModule) NetVersion ¶ added in v1.20.0
func (*EthModule) StateNetworkName ¶ added in v1.20.0
type EthModuleAPI ¶ added in v1.20.0
type EthModuleAPI interface { EthBlockNumber(ctx context.Context) (ethtypes.EthUint64, error) EthAccounts(ctx context.Context) ([]ethtypes.EthAddress, error) EthGetBlockTransactionCountByNumber(ctx context.Context, blkNum ethtypes.EthUint64) (ethtypes.EthUint64, error) EthGetBlockTransactionCountByHash(ctx context.Context, blkHash ethtypes.EthHash) (ethtypes.EthUint64, error) EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthHash, fullTxInfo bool) (ethtypes.EthBlock, error) EthGetBlockByNumber(ctx context.Context, blkNum string, fullTxInfo bool) (ethtypes.EthBlock, error) EthGetTransactionByHash(ctx context.Context, txHash *ethtypes.EthHash) (*ethtypes.EthTx, error) EthGetTransactionByHashLimited(ctx context.Context, txHash *ethtypes.EthHash, limit abi.ChainEpoch) (*ethtypes.EthTx, error) EthGetMessageCidByTransactionHash(ctx context.Context, txHash *ethtypes.EthHash) (*cid.Cid, error) EthGetTransactionHashByCid(ctx context.Context, cid cid.Cid) (*ethtypes.EthHash, error) EthGetTransactionCount(ctx context.Context, sender ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error) EthGetTransactionReceipt(ctx context.Context, txHash ethtypes.EthHash) (*api.EthTxReceipt, error) EthGetTransactionReceiptLimited(ctx context.Context, txHash ethtypes.EthHash, limit abi.ChainEpoch) (*api.EthTxReceipt, error) EthGetCode(ctx context.Context, address ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) EthGetStorageAt(ctx context.Context, address ethtypes.EthAddress, position ethtypes.EthBytes, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) EthGetBalance(ctx context.Context, address ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error) EthFeeHistory(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthFeeHistory, error) EthChainId(ctx context.Context) (ethtypes.EthUint64, error) EthSyncing(ctx context.Context) (ethtypes.EthSyncingResult, error) NetVersion(ctx context.Context) (string, error) NetListening(ctx context.Context) (bool, error) EthProtocolVersion(ctx context.Context) (ethtypes.EthUint64, error) EthGasPrice(ctx context.Context) (ethtypes.EthBigInt, error) EthEstimateGas(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthUint64, error) EthCall(ctx context.Context, tx ethtypes.EthCall, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error) EthMaxPriorityFeePerGas(ctx context.Context) (ethtypes.EthBigInt, error) EthSendRawTransaction(ctx context.Context, rawTx ethtypes.EthBytes) (ethtypes.EthHash, error) Web3ClientVersion(ctx context.Context) (string, error) EthTraceBlock(ctx context.Context, blkNum string) ([]*ethtypes.EthTraceBlock, error) EthTraceReplayBlockTransactions(ctx context.Context, blkNum string, traceTypes []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error) }
type EthModuleDummy ¶ added in v1.20.0
type EthModuleDummy struct{}
func (*EthModuleDummy) EthAccounts ¶ added in v1.20.0
func (e *EthModuleDummy) EthAccounts(ctx context.Context) ([]ethtypes.EthAddress, error)
func (*EthModuleDummy) EthAddressToFilecoinAddress ¶ added in v1.20.0
func (e *EthModuleDummy) EthAddressToFilecoinAddress(ctx context.Context, ethAddress ethtypes.EthAddress) (address.Address, error)
func (*EthModuleDummy) EthBlockNumber ¶ added in v1.20.0
func (*EthModuleDummy) EthCall ¶ added in v1.20.0
func (e *EthModuleDummy) EthCall(ctx context.Context, tx ethtypes.EthCall, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error)
func (*EthModuleDummy) EthChainId ¶ added in v1.20.0
func (*EthModuleDummy) EthEstimateGas ¶ added in v1.20.0
func (*EthModuleDummy) EthFeeHistory ¶ added in v1.20.0
func (e *EthModuleDummy) EthFeeHistory(ctx context.Context, p jsonrpc.RawParams) (ethtypes.EthFeeHistory, error)
func (*EthModuleDummy) EthGasPrice ¶ added in v1.20.0
func (*EthModuleDummy) EthGetBalance ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetBalance(ctx context.Context, address ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBigInt, error)
func (*EthModuleDummy) EthGetBlockByHash ¶ added in v1.20.0
func (*EthModuleDummy) EthGetBlockByNumber ¶ added in v1.20.0
func (*EthModuleDummy) EthGetBlockTransactionCountByHash ¶ added in v1.20.0
func (*EthModuleDummy) EthGetBlockTransactionCountByNumber ¶ added in v1.20.0
func (*EthModuleDummy) EthGetCode ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetCode(ctx context.Context, address ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error)
func (*EthModuleDummy) EthGetFilterChanges ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetFilterChanges(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
func (*EthModuleDummy) EthGetFilterLogs ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetFilterLogs(ctx context.Context, id ethtypes.EthFilterID) (*ethtypes.EthFilterResult, error)
func (*EthModuleDummy) EthGetLogs ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetLogs(ctx context.Context, filter *ethtypes.EthFilterSpec) (*ethtypes.EthFilterResult, error)
func (*EthModuleDummy) EthGetMessageCidByTransactionHash ¶ added in v1.20.0
func (*EthModuleDummy) EthGetStorageAt ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetStorageAt(ctx context.Context, address ethtypes.EthAddress, position ethtypes.EthBytes, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthBytes, error)
func (*EthModuleDummy) EthGetTransactionByBlockHashAndIndex ¶ added in v1.20.0
func (*EthModuleDummy) EthGetTransactionByBlockNumberAndIndex ¶ added in v1.20.0
func (*EthModuleDummy) EthGetTransactionByHash ¶ added in v1.20.0
func (*EthModuleDummy) EthGetTransactionByHashLimited ¶ added in v1.23.0
func (e *EthModuleDummy) EthGetTransactionByHashLimited(ctx context.Context, txHash *ethtypes.EthHash, limit abi.ChainEpoch) (*ethtypes.EthTx, error)
func (*EthModuleDummy) EthGetTransactionCount ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetTransactionCount(ctx context.Context, sender ethtypes.EthAddress, blkParam ethtypes.EthBlockNumberOrHash) (ethtypes.EthUint64, error)
func (*EthModuleDummy) EthGetTransactionHashByCid ¶ added in v1.20.0
func (*EthModuleDummy) EthGetTransactionReceipt ¶ added in v1.20.0
func (e *EthModuleDummy) EthGetTransactionReceipt(ctx context.Context, txHash ethtypes.EthHash) (*api.EthTxReceipt, error)
func (*EthModuleDummy) EthGetTransactionReceiptLimited ¶ added in v1.23.0
func (e *EthModuleDummy) EthGetTransactionReceiptLimited(ctx context.Context, txHash ethtypes.EthHash, limit abi.ChainEpoch) (*api.EthTxReceipt, error)
func (*EthModuleDummy) EthMaxPriorityFeePerGas ¶ added in v1.20.0
func (*EthModuleDummy) EthNewBlockFilter ¶ added in v1.20.0
func (e *EthModuleDummy) EthNewBlockFilter(ctx context.Context) (ethtypes.EthFilterID, error)
func (*EthModuleDummy) EthNewFilter ¶ added in v1.20.0
func (e *EthModuleDummy) EthNewFilter(ctx context.Context, filter *ethtypes.EthFilterSpec) (ethtypes.EthFilterID, error)
func (*EthModuleDummy) EthNewPendingTransactionFilter ¶ added in v1.20.0
func (e *EthModuleDummy) EthNewPendingTransactionFilter(ctx context.Context) (ethtypes.EthFilterID, error)
func (*EthModuleDummy) EthProtocolVersion ¶ added in v1.20.0
func (*EthModuleDummy) EthSendRawTransaction ¶ added in v1.20.0
func (*EthModuleDummy) EthSubscribe ¶ added in v1.20.0
func (e *EthModuleDummy) EthSubscribe(ctx context.Context, params jsonrpc.RawParams) (ethtypes.EthSubscriptionID, error)
func (*EthModuleDummy) EthSyncing ¶ added in v1.23.3
func (e *EthModuleDummy) EthSyncing(ctx context.Context) (ethtypes.EthSyncingResult, error)
func (*EthModuleDummy) EthTraceBlock ¶ added in v1.25.0
func (e *EthModuleDummy) EthTraceBlock(ctx context.Context, blkNum string) ([]*ethtypes.EthTraceBlock, error)
func (*EthModuleDummy) EthTraceReplayBlockTransactions ¶ added in v1.25.0
func (e *EthModuleDummy) EthTraceReplayBlockTransactions(ctx context.Context, blkNum string, traceTypes []string) ([]*ethtypes.EthTraceReplayBlockTransaction, error)
func (*EthModuleDummy) EthUninstallFilter ¶ added in v1.20.0
func (e *EthModuleDummy) EthUninstallFilter(ctx context.Context, id ethtypes.EthFilterID) (bool, error)
func (*EthModuleDummy) EthUnsubscribe ¶ added in v1.20.0
func (e *EthModuleDummy) EthUnsubscribe(ctx context.Context, id ethtypes.EthSubscriptionID) (bool, error)
func (*EthModuleDummy) NetListening ¶ added in v1.20.0
func (e *EthModuleDummy) NetListening(ctx context.Context) (bool, error)
func (*EthModuleDummy) NetVersion ¶ added in v1.20.0
func (e *EthModuleDummy) NetVersion(ctx context.Context) (string, error)
func (*EthModuleDummy) Web3ClientVersion ¶ added in v1.20.0
func (e *EthModuleDummy) Web3ClientVersion(ctx context.Context) (string, error)
type EthSubscriptionManager ¶ added in v1.20.0
type EthSubscriptionManager struct { Chain *store.ChainStore StateAPI StateAPI ChainAPI ChainAPI // contains filtered or unexported fields }
func (*EthSubscriptionManager) StartSubscription ¶ added in v1.20.0
func (*EthSubscriptionManager) StopSubscription ¶ added in v1.20.0
func (e *EthSubscriptionManager) StopSubscription(ctx context.Context, id ethtypes.EthSubscriptionID) error
type EthTxHashManager ¶ added in v1.20.0
type EthTxHashManager struct { StateAPI StateAPI TransactionHashLookup *ethhashlookup.EthTxHashLookup }
func (*EthTxHashManager) PopulateExistingMappings ¶ added in v1.20.0
func (m *EthTxHashManager) PopulateExistingMappings(ctx context.Context, minHeight abi.ChainEpoch) error
func (*EthTxHashManager) ProcessSignedMessage ¶ added in v1.20.0
func (m *EthTxHashManager) ProcessSignedMessage(ctx context.Context, msg *types.SignedMessage)
type EventFilterManager ¶ added in v1.26.0
type EventFilterManager interface { Install( ctx context.Context, minHeight, maxHeight abi.ChainEpoch, tipsetCid cid.Cid, addresses []address.Address, keysWithCodec map[string][]types.ActorEventBlock, excludeReverted bool, ) (filter.EventFilter, error) Remove(ctx context.Context, id types.FilterID) error }
type GasAPI ¶ added in v0.5.0
type GasAPI struct { fx.In GasModuleAPI Stmgr *stmgr.StateManager Chain *store.ChainStore Mpool *messagepool.MessagePool PriceCache *GasPriceCache }
func (*GasAPI) GasEstimateFeeCap ¶ added in v0.5.0
func (*GasAPI) GasEstimateGasLimit ¶ added in v0.5.0
type GasModule ¶ added in v0.9.1
type GasModule struct { fx.In Stmgr *stmgr.StateManager Chain *store.ChainStore Mpool *messagepool.MessagePool GetMaxFee dtypes.DefaultMaxFeeFunc PriceCache *GasPriceCache }
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 ¶ added in v0.9.1
func (*GasModule) GasEstimateGasLimit ¶ added in v0.9.1
func (*GasModule) GasEstimateGasPremium ¶ added in v0.9.1
type GasModuleAPI ¶ added in v0.9.1
type GasPriceCache ¶ added in v1.9.0
type GasPriceCache struct {
// contains filtered or unexported fields
}
func NewGasPriceCache ¶ added in v1.9.0
func NewGasPriceCache() *GasPriceCache
func (*GasPriceCache) GetTSGasStats ¶ added in v1.9.0
func (g *GasPriceCache) GetTSGasStats(ctx context.Context, cstore *store.ChainStore, ts *types.TipSet) ([]GasMeta, error)
type MpoolAPI ¶
type MpoolAPI struct { fx.In MpoolModuleAPI WalletAPI GasAPI RaftAPI MessageSigner messagesigner.MsgSigner PushLocks *dtypes.MpoolLocker }
func (*MpoolAPI) MpoolBatchPush ¶ added in v1.1.1
func (*MpoolAPI) MpoolBatchPushMessage ¶ added in v1.1.1
func (a *MpoolAPI) MpoolBatchPushMessage(ctx context.Context, msgs []*types.Message, spec *api.MessageSendSpec) ([]*types.SignedMessage, error)
func (*MpoolAPI) MpoolBatchPushUntrusted ¶ added in v1.1.1
func (*MpoolAPI) MpoolCheckMessages ¶ added in v1.11.0
func (a *MpoolAPI) MpoolCheckMessages(ctx context.Context, protos []*api.MessagePrototype) ([][]api.MessageCheckStatus, error)
func (*MpoolAPI) MpoolCheckPendingMessages ¶ added in v1.11.0
func (*MpoolAPI) MpoolCheckReplaceMessages ¶ added in v1.11.0
func (*MpoolAPI) MpoolClear ¶ added in v0.5.0
func (*MpoolAPI) MpoolGetConfig ¶ added in v0.5.0
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 ¶ added in v0.9.0
func (*MpoolAPI) MpoolSelect ¶ added in v0.5.0
func (*MpoolAPI) MpoolSetConfig ¶ added in v0.5.0
type MpoolModule ¶ added in v0.9.1
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 ¶ added in v0.9.1
func (m *MpoolModule) MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
type MpoolModuleAPI ¶ added in v0.9.1
type MpoolModuleAPI interface {
MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
}
type MsigAPI ¶ added in v0.3.0
func (*MsigAPI) MsigAddApprove ¶ added in v0.7.0
func (*MsigAPI) MsigAddCancel ¶ added in v0.7.0
func (*MsigAPI) MsigAddPropose ¶ added in v0.7.0
func (*MsigAPI) MsigApprove ¶ added in v0.3.0
func (*MsigAPI) MsigApproveTxnHash ¶ added in v0.10.0
func (*MsigAPI) MsigCancel ¶ added in v0.3.0
func (*MsigAPI) MsigCancelTxnHash ¶ added in v1.13.2
func (*MsigAPI) MsigCreate ¶ added in v0.3.0
func (a *MsigAPI) MsigCreate(ctx context.Context, req uint64, addrs []address.Address, duration abi.ChainEpoch, val types.BigInt, src address.Address, gp types.BigInt) (*api.MessagePrototype, error)
TODO: remove gp (gasPrice) from arguments TODO: Add "vesting start" to arguments.
func (*MsigAPI) MsigPropose ¶ added in v0.3.0
func (*MsigAPI) MsigRemoveSigner ¶ added in v0.10.0
func (*MsigAPI) MsigSwapApprove ¶ added in v0.5.0
func (*MsigAPI) MsigSwapCancel ¶ added in v0.5.0
func (*MsigAPI) MsigSwapPropose ¶ added in v0.5.0
type RaftAPI ¶ added in v1.19.0
type RaftAPI struct { fx.In MessageSigner *messagesigner.MessageSignerConsensus `optional:"true"` }
func (*RaftAPI) GetRaftState ¶ added in v1.19.0
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.Wallet DefWallet wallet.Default StateModuleAPI ProofVerifier storiface.Verifier StateManager *stmgr.StateManager Chain *store.ChainStore Beacon beacon.Schedule Consensus consensus.Consensus TsExec stmgr.Executor }
func (*StateAPI) MinerCreateBlock ¶
func (*StateAPI) MinerGetBaseInfo ¶ added in v0.3.0
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 ¶ added in v0.9.1
func (*StateAPI) StateActorCodeCIDs ¶ added in v1.16.0
func (*StateAPI) StateActorManifestCID ¶ added in v1.17.2
func (*StateAPI) StateAllMinerFaults ¶ added in v0.3.1
func (*StateAPI) StateChangedActors ¶
func (*StateAPI) StateCirculatingSupply ¶ added in v0.5.0
func (*StateAPI) StateCompute ¶ added in v0.2.5
func (*StateAPI) StateComputeDataCID ¶ added in v1.17.0
func (*StateAPI) StateDecodeParams ¶ added in v1.1.3
func (*StateAPI) StateEncodeParams ¶ added in v1.11.2
func (*StateAPI) StateGetAllAllocations ¶ added in v1.26.0
func (a *StateAPI) StateGetAllAllocations(ctx context.Context, tsk types.TipSetKey) (map[verifreg.AllocationId]verifreg.Allocation, error)
func (*StateAPI) StateGetAllClaims ¶ added in v1.26.0
func (*StateAPI) StateGetAllocation ¶ added in v1.18.0
func (a *StateAPI) StateGetAllocation(ctx context.Context, clientAddr address.Address, allocationId verifreg.AllocationId, tsk types.TipSetKey) (*verifreg.Allocation, error)
func (*StateAPI) StateGetAllocationForPendingDeal ¶ added in v1.18.0
func (*StateAPI) StateGetAllocationIdForPendingDeal ¶ added in v1.26.0
func (*StateAPI) StateGetAllocations ¶ added in v1.18.0
func (a *StateAPI) StateGetAllocations(ctx context.Context, clientAddr address.Address, tsk types.TipSetKey) (map[verifreg.AllocationId]verifreg.Allocation, error)
func (*StateAPI) StateGetBeaconEntry ¶ added in v1.16.0
func (a *StateAPI) StateGetBeaconEntry(ctx context.Context, epoch abi.ChainEpoch) (*types.BeaconEntry, error)
func (*StateAPI) StateGetClaim ¶ added in v1.18.0
func (*StateAPI) StateGetClaims ¶ added in v1.18.0
func (*StateAPI) StateGetNetworkParams ¶ added in v1.15.3
func (*StateAPI) StateGetRandomnessDigestFromBeacon ¶ added in v1.24.0
func (a *StateAPI) StateGetRandomnessDigestFromBeacon(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
func (*StateAPI) StateGetRandomnessDigestFromTickets ¶ added in v1.24.0
func (a *StateAPI) StateGetRandomnessDigestFromTickets(ctx context.Context, randEpoch abi.ChainEpoch, tsk types.TipSetKey) (abi.Randomness, error)
func (*StateAPI) StateGetRandomnessFromBeacon ¶ added in v1.12.0
func (a *StateAPI) StateGetRandomnessFromBeacon(ctx context.Context, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte, tsk types.TipSetKey) (abi.Randomness, error)
func (*StateAPI) StateGetRandomnessFromTickets ¶ added in v1.12.0
func (a *StateAPI) StateGetRandomnessFromTickets(ctx context.Context, personalization crypto.DomainSeparationTag, randEpoch abi.ChainEpoch, entropy []byte, tsk types.TipSetKey) (abi.Randomness, error)
func (*StateAPI) StateListActors ¶
func (*StateAPI) StateListMessages ¶ added in v0.1.6
func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatch, tsk types.TipSetKey, toheight abi.ChainEpoch) ([]cid.Cid, error)
func (*StateAPI) StateLookupRobustAddress ¶ added in v1.15.3
func (*StateAPI) StateMarketDeals ¶
func (*StateAPI) StateMarketParticipants ¶
func (*StateAPI) StateMinerActiveSectors ¶ added in v0.5.0
func (*StateAPI) StateMinerAllocated ¶ added in v1.17.2
func (*StateAPI) StateMinerAvailableBalance ¶ added in v0.3.0
func (*StateAPI) StateMinerDeadlines ¶ added in v0.3.0
func (*StateAPI) StateMinerFaults ¶ added in v0.2.8
func (*StateAPI) StateMinerInitialPledgeCollateral ¶ added in v0.3.0
func (*StateAPI) StateMinerPartitions ¶ added in v0.5.0
func (*StateAPI) StateMinerPreCommitDepositForPower ¶ added in v0.5.0
func (*StateAPI) StateMinerRecoveries ¶ added in v0.3.1
func (*StateAPI) StateMinerSectorAllocated ¶ added in v1.1.3
func (*StateAPI) StateMinerSectorCount ¶ added in v0.1.5
func (*StateAPI) StateMinerSectors ¶
func (*StateAPI) StateNetworkName ¶ added in v0.3.0
func (*StateAPI) StateReadState ¶
func (*StateAPI) StateReplay ¶
func (*StateAPI) StateSectorExpiration ¶ added in v0.5.0
func (a *StateAPI) StateSectorExpiration(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorExpiration, error)
func (*StateAPI) StateSectorPartition ¶ added in v0.5.0
func (a *StateAPI) StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorLocation, error)
func (*StateAPI) StateSectorPreCommitInfo ¶ added in v0.3.0
func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error)
func (*StateAPI) StateVMCirculatingSupplyInternal ¶ added in v0.10.1
func (*StateAPI) StateVerifiedRegistryRootKey ¶ added in v0.9.0
func (*StateAPI) StateVerifierStatus ¶ added in v0.9.0
func (a *StateAPI) StateVerifierStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error)
StateVerifiedClientStatus returns the data cap for the given address. Returns zero if there is no entry in the data cap table for the address.
type StateModule ¶ added in v0.9.1
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 ¶ added in v0.9.1
func (*StateModule) MsigGetPending ¶ added in v1.4.2
func (m *StateModule) MsigGetPending(ctx context.Context, addr address.Address, tsk types.TipSetKey) ([]*api.MsigTransaction, error)
func (*StateModule) MsigGetVested ¶ added in v0.9.1
func (*StateModule) StateAccountKey ¶ added in v0.9.1
func (*StateModule) StateDealProviderCollateralBounds ¶ added in v1.1.1
func (m *StateModule) StateDealProviderCollateralBounds(ctx context.Context, size abi.PaddedPieceSize, verified bool, tsk types.TipSetKey) (api.DealCollateralBounds, error)
StateDealProviderCollateralBounds returns the min and max collateral a storage provider can issue. It takes the deal size and verified status as parameters.
func (*StateModule) StateGetActor ¶ added in v0.9.1
func (*StateModule) StateListMiners ¶ added in v1.1.1
func (*StateModule) StateLookupID ¶ added in v0.9.1
func (*StateModule) StateMarketBalance ¶ added in v1.1.1
func (m *StateModule) StateMarketBalance(ctx context.Context, addr address.Address, tsk types.TipSetKey) (api.MarketBalance, error)
func (*StateModule) StateMarketStorageDeal ¶ added in v1.1.1
func (m *StateModule) StateMarketStorageDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (*api.MarketDeal, error)
func (*StateModule) StateMinerInfo ¶ added in v1.1.1
func (*StateModule) StateMinerPower ¶ added in v1.1.1
func (m *StateModule) StateMinerPower(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*api.MinerPower, error)
func (*StateModule) StateMinerProvingDeadline ¶ added in v1.1.1
func (*StateModule) StateNetworkVersion ¶ added in v1.1.1
func (*StateModule) StateSearchMsg ¶ added in v1.4.1
func (*StateModule) StateSectorGetInfo ¶ added in v1.2.2
func (m *StateModule) StateSectorGetInfo(ctx context.Context, maddr address.Address, n abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error)
Returns nil, nil if sector is not found
func (*StateModule) StateVerifiedClientStatus ¶ added in v1.1.1
func (m *StateModule) StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error)
StateVerifiedClientStatus returns the data cap for the given address. Returns zero if there is no entry in the data cap table for the address.
func (*StateModule) StateWaitMsg ¶ added in v0.9.1
func (m *StateModule) StateWaitMsg(ctx context.Context, msg cid.Cid, confidence uint64, lookbackLimit abi.ChainEpoch, allowReplaced bool) (*api.MsgLookup, error)
type StateModuleAPI ¶ added in v0.9.1
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) 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) (api.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) 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) StateSearchMsg(ctx context.Context, from types.TipSetKey, msg cid.Cid, limit abi.ChainEpoch, allowReplaced bool) (*api.MsgLookup, error) StateWaitMsg(ctx context.Context, cid cid.Cid, confidence uint64, limit abi.ChainEpoch, allowReplaced bool) (*api.MsgLookup, error) }
type SyncAPI ¶
type SyncAPI struct { fx.In SlashFilter *slashfilter.SlashFilter `optional:"true"` Syncer *chain.Syncer PubSub *pubsub.PubSub NetName dtypes.NetworkName }
func (*SyncAPI) SyncCheckBad ¶ added in v0.2.8
func (*SyncAPI) SyncCheckpoint ¶ added in v0.6.2
func (*SyncAPI) SyncIncomingBlocks ¶
func (*SyncAPI) SyncMarkBad ¶ added in v0.1.6
func (*SyncAPI) SyncSubmitBlock ¶
func (*SyncAPI) SyncUnmarkAllBad ¶ added in v0.10.0
func (*SyncAPI) SyncUnmarkBad ¶ added in v0.6.2
type WalletAPI ¶
type WalletAPI struct { fx.In StateManagerAPI stmgr.StateManagerAPI Default wallet.Default api.Wallet }