github agglayer/aggkit v0.9.0-rc1

latest releases: v0.12.0-rc4, v0.12.0-rc3, v0.12.0-rc2...
pre-release9 months ago

Release v0.9.0-rc1

🚀 What's New

This release brings significant enhancements to the bridge service, certificate management, and event indexing capabilities:

  • Bridge Service Client - Implemented a comprehensive bridge service client for improved bridge interactions (#1465)
  • Certificate Management - Aggsender is able to sends a new certificate as soon as the latest one is settled, improving settlement efficiency (#1457). To activate this feature:
[AggSender]
TriggerCertMode = "ASAP"
[AggSender.TriggerASAP]
	DelayBeetweenCertificates = "1s"
	MinimumNewCertificateInterval = "5m"
	OnNewL2Bridge = false
  • LET Event Indexing - Added support for indexing and handling both forwardLET (#1404) and BackwardLET (#1379) events
  • L1InfoTree Configurable Finality - Added configuration option to specify the finality level for L1InfoTree synchronization (#1417)
[AggSender]
BlockFinalityForL1InfoTree = "FinalizedBlock"      
  • Bridge API Enhancements:
    • Added to_address field in bridge API responses for better transaction tracking (#1405)
    • New set claims endpoint for improved claim management (#1371)
  • Hash Calculation - Hash values are now retrieved from RPC instead of being calculated locally (#1397)
  • E2E Testing - Streamlined local E2E testing workflow for easier development (#1333)
  • Dependencies - Updated to gRPC 1.78.0, protobuf 1.36.11, and quic-go 0.57.0

🐛 Bug Fixes

  • Preserved retrocompatibility of claim events indexing (#1441)
  • Fixed certificate handling to properly check InError certificates when no pending certificates exist (#1425)
  • Corrected typos in certificate function names (#1424)
  • Improved block range error parsing for "exceeded maximum block range" errors (#1413)
  • Fixed claims count logic after compaction (#1395)
  • Corrected From field synchronization for bridge events (#1372)
  • Enhanced RPC error handling for "block range too large" errors with automatic chunking (#1390)
  • Replaced BlockByNumber with more efficient HeaderByNumber calls (#1385)
  • Multiple CI/CD and reference updates for improved stability (#1406, #1370, #1373, #1369)

📋 Config Updates

AggSender Block Finality Configuration

[AggSender]                                                                                                                                                                                                                                           
BlockFinalityForL1InfoTree = "FinalizedBlock"           
  • Description: Allows configuration of the finality level to use for L1InfoTree synchronization
  • Possible values:
    • Block tags: "LatestBlock", "SafeBlock", "PendingBlock", "FinalizedBlock", "EarliestBlock"
    • Block tags with offset: "LatestBlock/-10" (10 blocks before latest), "FinalizedBlock/5" (5 blocks after finalized)
  • Default: "FinalizedBlock"
  • Note: The aggsender target finality must be >= to l1infotree finality, otherwise an error will be raised

Certificate Send Trigger Mode

  [AggSender]                                                                                                                                                                                                                                           
  TriggerCertMode = "Auto"                                                                                                                                                                                                                              
  • Description: Defines how certificate sending is triggered
  • Possible values:
    • "EpochBased": Sends certificates based on L1 epoch percentage
    • "NewBridge": Triggers on new bridge events
    • "ASAP": Sends certificates as soon as possible
    • "Auto": Automatically decides based on aggsender mode
  • Default: "Auto"

ASAP Trigger Configuration

 [AggSender]                                                                                                                                                                                                                                           
  TriggerCertMode = "ASAP"                                                                                                                                                                                                                                        
  [AggSender.TriggerASAP]                                                                                                                                                                                                                               
  DelayBeetweenCertificates = "1s"                                                                                                                                                                                                                      
  MinimumNewCertificateInterval = "1h"                                                                                                                                                                                                                  
  OnNewL2Bridge = false                                                                                                                                                                                                                                 
  • Description: Configuration for ASAP trigger mode (when TriggerCertMode = "ASAP")
  • DelayBeetweenCertificates: Delay to wait before sending a new certificate after the previous one is settled
    • Default: "1s"
  • MinimumNewCertificateInterval: Minimum interval between two new certificate triggers
    • Default: "5m"
  • OnNewL2Bridge: Whether to trigger a new certificate when a new L2 bridge exit is detected
    • Default: false

Epoch-Based Trigger Configuration

  [AggSender.TriggerEpochBased]                                                                                                                                                                                                                         
  EpochNotificationPercentage = 50                                                                                                                                                                      
  • Description: Configuration for EpochBased trigger mode (when TriggerCertMode = "EpochBased")
  • EpochNotificationPercentage: Percentage of the epoch at which the certificate should be sent (0-100)
  • Default: 50
  • Note: This setting was moved from AggSender.EpochNotificationPercentage (now deprecated)

L2 RPC Hash Configuration

[L2RPC] 
	HashFromJSON = true

[L1NetworkConfig.RPC]
        HashFromJSON = true        
  • Description: Determines how block hashes are obtained from the RPC
  • Values:
    • true - Block hash is retrieved directly from JSON RPC response (it's also faster)
    • false - Block hash is calculated using go-ethereum RLP hashing
  • Default: true

Validator Block Finality Configuration

  [Validator]                                                                                                                                                                                                                                           
  BlockFinalityForL1InfoTree = "FinalizedBlock"                                                                                                                                                                                                         
  • Description: Allows configuration of the finality level for L1InfoTree queries in the validator
  • Possible values:
    • Block tags: "LatestBlock", "SafeBlock", "PendingBlock", "FinalizedBlock", "EarliestBlock"
    • Block tags with offset: "LatestBlock/-10" (10 blocks before latest), "FinalizedBlock/5" (5 blocks after finalized)
  • Default: "FinalizedBlock"

⚠️ Breaking Changes

  • ⚠️ AggSender.EpochNotificationPercentage have been moved to AggSender.TriggerEpochBased.EpochNotificationPercentage.

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.9.0-rc1

Don't miss a new aggkit release

NewReleases is sending notifications on new releases.