Skip to content

Conversation

@jadepark-dev
Copy link
Contributor

  • Reverts *ton.APIClient type change
  • Clean up CTF related method signatures to enable success/failure case test suites
  • Remove retry option embedded in CLDF so that caller can extend chain type flexibly

@changeset-bot
Copy link

changeset-bot bot commented Nov 19, 2025

🦋 Changeset detected

Latest commit: 3364f9a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
60.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@jadepark-dev jadepark-dev marked this pull request as ready for review November 19, 2025 17:27
@jadepark-dev jadepark-dev requested review from a team as code owners November 19, 2025 17:27
Copilot AI review requested due to automatic review settings November 19, 2025 17:27
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 cleans up the TON chain integration by reverting the APIClient type change, refactoring CTF provider methods to return errors instead of using test assertions, and removing retry configuration from the provider layer to enable more flexible chain type extensions.

Key changes:

  • Reverted Client field type from ton.APIClientWrapped to *ton.APIClient
  • Refactored CTF provider helper methods to return errors for better testability
  • Removed RetryCount configuration option from both RPC and CTF providers

Reviewed Changes

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

Show a summary per file
File Description
chain/ton/ton_chain.go Reverted Client field type to *ton.APIClient
chain/ton/provider/rpc_provider.go Removed RetryCount config and related logic from RPC provider
chain/ton/provider/rpc_provider_test.go Removed tests for RetryCount configuration
chain/ton/provider/ctf_provider.go Refactored helper methods to return errors; removed retry config; fixed typos
chain/ton/provider/ctf_provider_test.go Updated test assertion for corrected provider name
.changeset/curvy-berries-film.md Added changeset documenting the cleanup
Comments suppressed due to low confidence (1)

chain/ton/provider/ctf_provider.go:2

  • The helper functions still use ton.APIClientWrapped as the client parameter type, but the PR reverts the chain's Client field to *ton.APIClient. This type mismatch will cause compilation errors when these functions are called with the chain's client. The client parameter types should be changed to *ton.APIClient to match the reverted type.

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

func createTonWallet(t *testing.T, client ton.APIClientWrapped, versionConfig wallet.VersionConfig, option wallet.Option) *wallet.Wallet {
t.Helper()

func createTonWallet(client ton.APIClientWrapped, versionConfig wallet.VersionConfig, option wallet.Option) (*wallet.Wallet, error) {
Copy link

Copilot AI Nov 19, 2025

Choose a reason for hiding this comment

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

The helper functions still use ton.APIClientWrapped as the client parameter type, but the PR reverts the chain's Client field to *ton.APIClient. This type mismatch will cause compilation errors when these functions are called with the chain's client. The client parameter types should be changed to *ton.APIClient to match the reverted type.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ton.APIClientWrapped is an interface from the tonutils-go library, *ton.APIClient implements this interface

@jadepark-dev jadepark-dev added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit 7760d13 Nov 20, 2025
15 of 16 checks passed
@jadepark-dev jadepark-dev deleted the ton/mod-chain-type branch November 20, 2025 11:19
github-merge-queue bot pushed a commit that referenced this pull request Nov 21, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

-
[#586](#586)
[`f3a2a36`](f3a2a36)
Thanks [@jkongie](https://github.com/jkongie)! - Updates Test Engine Sui
container to use a specific devnet image and generate different deploy
keys for each container

### Patch Changes

-
[#585](#585)
[`7760d13`](7760d13)
Thanks [@jadepark-dev](https://github.com/jadepark-dev)! - Clean up TON
CTF Provider, update test infra methods

---------

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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.

2 participants