Skip to content

NONEVM-3034: TON schema update#20972

Merged
jadepark-dev merged 5 commits intodevelopfrom
jade/ton-lp-table-fixes
Feb 3, 2026
Merged

NONEVM-3034: TON schema update#20972
jadepark-dev merged 5 commits intodevelopfrom
jade/ton-lp-table-fixes

Conversation

@jadepark-dev
Copy link
Contributor

@jadepark-dev jadepark-dev commented Jan 30, 2026

Summary

  • Bump chainlink-ton to v0.0.0-20260203093043-43c83cc5f442 which includes TON log poller schema updates for pruning support
  • Bump chain-selectors to v1.0.91 and fix test compatibility with the new NetworkType field in ChainDetails
  • Update TON CCIP contracts version to 3430b5c9dad8

Changes

TON Log Poller Schema (0289_ton_logpoller_schema_updates.sql):

  • Add log_retention and max_logs_kept columns for per-filter pruning configuration
  • Update unique constraint on logs to include filter_id (allows multiple filters to store same event)
  • Add expires_at column and index for time-based pruning
  • Add checkpoint resumption index on master_block_seqno

Test Fixes (for chain-selectors v1.0.91):

  • chain-selectors v1.0.91 added NetworkType field to ChainDetails struct
  • Fix deployment/environment_test.go: Add NetworkType to expected ChainDetails map keys
  • Fix deployment/environment/test/nodes.go: Populate full ChainDetails (including ChainName and NetworkType) when creating test nodes, instead of only setting ChainSelector

@github-actions
Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@trunk-io
Copy link

trunk-io bot commented Jan 30, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

CORA - Pending Reviewers

All codeowners have approved! ✅

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@jadepark-dev jadepark-dev force-pushed the jade/ton-lp-table-fixes branch from 4fc4489 to d7fd0e2 Compare February 3, 2026 09:11
@jadepark-dev jadepark-dev reopened this Feb 3, 2026
@cl-sonarqube-production
Copy link

@jadepark-dev jadepark-dev marked this pull request as ready for review February 3, 2026 11:33
Copilot AI review requested due to automatic review settings February 3, 2026 11:33
@jadepark-dev jadepark-dev requested review from a team as code owners February 3, 2026 11:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TON (The Open Network) schema and related dependencies across the codebase. The changes include a database migration to enhance the TON log poller with pruning capabilities and retention policies, along with dependency version updates.

Changes:

  • Added a SQL migration to introduce pruning configuration and improved indexing for TON log poller
  • Updated multiple dependencies including chainlink-ton, chainlink-testing-framework, and various other chainlink-related packages
  • Enhanced test setup to populate chain network type information from chain selectors
  • Updated TON contract version reference in test helpers

Reviewed changes

Copilot reviewed 12 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
core/store/migrate/migrations/0289_ton_logpoller_schema_updates.sql New database migration adding pruning columns, updated indexes for multi-chain support, and time-based log expiration
deployment/environment/test/nodes.go Enhanced test node creation to automatically populate chain details (name, network type) from selectors
deployment/environment_test.go Added NetworkType field to chain details in test cases to match updated schema requirements
deployment/ccip/changeset/testhelpers/test_environment.go Updated TON contract version reference from 74edaa830fa4 to 3430b5c9dad8
go.mod Updated golang-jwt/jwt and chain-selectors versions, along with various chainlink dependency updates
deployment/go.mod Updated chain-selectors and multiple chainlink-related dependencies to newer versions
core/scripts/go.mod Updated chainlink-testing-framework and related dependencies to match main go.mod versions
integration-tests/go.mod Updated chainlink dependencies to align with other modules
integration-tests/load/go.mod Updated chainlink dependencies to maintain consistency across integration tests
system-tests/lib/go.mod Updated chain-selectors and chainlink dependencies for system test library
system-tests/tests/go.mod Updated dependencies to match versions used across other test modules
plugins/plugins.public.yaml Updated TON plugin gitRef to match the new dependency version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jadepark-dev jadepark-dev added this pull request to the merge queue Feb 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2026
@jadepark-dev jadepark-dev added this pull request to the merge queue Feb 3, 2026
Merged via the queue into develop with commit e3e04c1 Feb 3, 2026
225 checks passed
@jadepark-dev jadepark-dev deleted the jade/ton-lp-table-fixes branch February 3, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments