Versions in this module Expand all Collapse all v0 v0.2.0 Feb 7, 2024 Changes in this version + var ErrNotFound = errors.New("Not found") + type Block struct + BlockHash common.Hash + BlockNumber uint64 + Claims []Claim + Deposits []Deposit + GlobalExitRoots []GlobalExitRoot + ID uint64 + NetworkID uint + ParentHash common.Hash + ReceivedAt time.Time + Tokens []TokenWrapped + type Claim struct + Amount *big.Int + BlockID uint64 + BlockNumber uint64 + DestinationAddress common.Address + Index uint + NetworkID uint + OriginalAddress common.Address + OriginalNetwork uint + TxHash common.Hash + type Client struct + EtherClient ethClienter + PolygonBridge *polygonzkevmbridge.Polygonzkevmbridge + PolygonZkEVMGlobalExitRoot *polygonzkevmglobalexitroot.Polygonzkevmglobalexitroot + SCAddresses []common.Address + func NewClient(cfg Config, ...) (*Client, error) + func NewL2Client(url string, bridgeAddr common.Address) (*Client, error) + func NewSimulatedEtherman(cfg Config, auth *bind.TransactOpts) (etherman *Client, ethBackend *backends.SimulatedBackend, ...) + func (etherMan *Client) EthBlockByNumber(ctx context.Context, blockNumber uint64) (*types.Block, error) + func (etherMan *Client) GetNetworkID(ctx context.Context) (uint, error) + func (etherMan *Client) GetRollupInfoByBlockRange(ctx context.Context, fromBlock uint64, toBlock *uint64) ([]Block, map[common.Hash][]Order, error) + func (etherMan *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) + type Config struct + L1URL string + L2URLs []string + type Deposit struct + Amount *big.Int + BlockID uint64 + BlockNumber uint64 + DepositCount uint + DestinationAddress common.Address + DestinationNetwork uint + LeafType uint8 + Metadata []byte + NetworkID uint + OriginalAddress common.Address + OriginalNetwork uint + ReadyForClaim bool + TxHash common.Hash + type EventOrder string + const ClaimsOrder + const DepositsOrder + const GlobalExitRootsOrder + const TokensOrder + type GlobalExitRoot struct + BlockID uint64 + BlockNumber uint64 + ExitRoots []common.Hash + GlobalExitRoot common.Hash + type Order struct + Name EventOrder + Pos int + type TokenMetadata struct + Decimals uint8 + Name string + Symbol string + type TokenWrapped struct + BlockID uint64 + BlockNumber uint64 + NetworkID uint + OriginalNetwork uint + OriginalTokenAddress common.Address + WrappedTokenAddress common.Address