Versions in this module Expand all Collapse all v0 v0.2.0 Sep 6, 2022 GO-2025-3583 GO-2025-3583: Nethermind Juno Potential Denial of Service (DoS) via Integer Overflow in github.com/NethermindEth/juno Changes in this version + var ErrorFactAlreadySaved = errors.New("fact already saved") + var ErrorMemoryPageNotFound = errors.New("memory page not found") + func NewApiCollector(manager *sync.Manager, feeder *feeder.Client) *apiCollector + func NewL1Collector(manager *sync.Manager, feeder *feeder.Client, l1client L1Client, chainID int) *l1Collector + type CollectorDiff struct + Code map[string]*starknetTypes.Contract + type L1Client interface + BlockNumber func(ctx context.Context) (uint64, error) + ChainID func(ctx context.Context) (*big.Int, error) + FilterLogs func(ctx context.Context, q ethereum.FilterQuery) ([]ethtypes.Log, error) + SubscribeFilterLogs func(ctx context.Context, q ethereum.FilterQuery, ch chan<- ethtypes.Log) (ethereum.Subscription, error) + TransactionByHash func(ctx context.Context, hash common.Hash) (tx *ethtypes.Transaction, isPending bool, err error) + type StateDiffCollector interface + Close func() + GetChannel func() chan *CollectorDiff + LatestBlock func() *feeder.StarknetBlock + PendingBlock func() *feeder.StarknetBlock + Run func() + type Synchronizer struct + Running bool + func NewSynchronizer(n utils.Network, ethNode string, feederClient *feeder.Client, ...) *Synchronizer + func (s *Synchronizer) ChainID() *big.Int + func (s *Synchronizer) Close() + func (s *Synchronizer) GetLatestBlockOnChain() int64 + func (s *Synchronizer) GetPendingBlock() *feeder.StarknetBlock + func (s *Synchronizer) GetStateDiff(blockHash *felt.Felt) (*types.StateUpdate, error) + func (s *Synchronizer) LatestBlockSynced() (blockNumber int64, blockHash *felt.Felt) + func (s *Synchronizer) Run() + func (s *Synchronizer) SetCode(collectedDiff *CollectorDiff, deployedContract *types.DeployedContract) error + func (s *Synchronizer) Status() *types.SyncStatus