Skip to content

Bump chainlink-tron/relayer and import gotron-sdk from it - #576

Merged
JohnChangUK merged 1 commit into
developfrom
fix/gotron-sdk-import
Oct 21, 2026
Merged

JohnChangUK merged 1 commit into
developfrom
fix/gotron-sdk-import

Conversation

@JohnChangUK

Copy link
Copy Markdown
Contributor

What

  • Import the tron address package from github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk instead of github.com/fbsobreira/gotron-sdk (pkg/transmitter/tron_transmitter.go, pkg/writer/chain_writer.go).
  • Bump github.com/smartcontractkit/chainlink-tron/relayer to v0.0.11-0.20261013132128-58831cfe6302.
  • Drop the fbsobreira/gotron-sdk replace from go.mod.

Why

chainlink-deployments-framework v0.126.0 dropped its fbsobreira/gotron-sdk replace (chainlink-deployments-framework#1197). Any module that links both chainlink-evm and the framework then fails to build on the tron address type. Importing the package from chainlink-tron directly removes the need for the replace.

Testing

go build ./..., go vet and go test -race on ./pkg/writer/... and ./pkg/transmitter/... pass; golangci-lint v2.14.0 shows no new issues.

@JohnChangUK
JohnChangUK requested review from a team as code owners October 19, 2026 22:21
Copilot AI balanced review requested due to automatic review settings October 19, 2026 22:21
@github-actions

Copy link
Copy Markdown
Contributor

👋 JohnChangUK, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The import and dependency changes are consistent, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Updates Tron address imports to use the relayer’s bundled SDK, avoiding downstream build failures caused by reliance on a module replacement.

Changes:

  • Switch writer and transmitter address imports to chainlink-tron.
  • Bump the relayer dependency and update checksums.
  • Remove the standalone SDK dependency and replacement.
File Description
pkg/​writer/​chain_writer.go Uses the relayer’s address package.
pkg/​transmitter/​tron_transmitter.go Uses the relayer’s address package.
go.sum Updates relayer checksums and removes obsolete SDK entries.
go.mod Bumps the relayer and removes the old SDK dependency and replacement.

Review effort: Balanced

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

📊 API Diff Results

No changes detected for module github.com/smartcontractkit/chainlink-evm

View full report

Import the tron address package from chainlink-tron/relayer/gotron-sdk instead of fbsobreira/gotron-sdk, and drop the replace.
chainlink-deployments-framework v0.126.0 dropped its fbsobreira/gotron-sdk replace.
Any module that links both then fails to build on the tron address type.
@JohnChangUK
JohnChangUK enabled auto-merge (squash) October 20, 2026 22:02
@JohnChangUK
JohnChangUK merged commit 9f8f9d5 into develop Oct 21, 2026
35 checks passed
@JohnChangUK
JohnChangUK deleted the fix/gotron-sdk-import branch October 21, 2026 12:45
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