Skip to content

chore: port evm state and link views [CLD-1911]#7

Merged
ecPablo merged 14 commits intomainfrom
ecpablo/port-evm-state-and-link-views
Apr 23, 2026
Merged

chore: port evm state and link views [CLD-1911]#7
ecPablo merged 14 commits intomainfrom
ecpablo/port-evm-state-and-link-views

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented Apr 22, 2026

To be merged after: #9
Port functions from the core node located in:

  • deployment/common/changeset/state/evm.go
  • deployment/common/view/v1_0/link_token.go
  • deployment/common/view/v1_0/static_link_token.go
  • deployment/common/view/v1_0/mcms.go

These are all pre-requisites to be able to port the BuildProposalFromBatches helper.

AI Summary

This pull request introduces new "view" functionality for LINK token contracts and updates several dependencies in the go.mod file. The major changes include the addition of code to generate and test views for both standard and static LINK token contracts, as well as multiple dependency upgrades and additions.

New LINK Token View Functionality

  • Added link/view/link_token.go implementing GenerateLinkTokenView, which creates a structured view of a LINK token contract, including metadata, decimals, supply, minters, and burners.
  • Added corresponding tests in link/view/link_token_test.go to verify the correctness of the LINK token view, including minting and role assignment scenarios.
  • Added link/view/static_link_token.go implementing GenerateStaticLinkTokenView for static LINK tokens, providing a simplified view (metadata, decimals, supply).
  • Added tests in link/view/static_link_token_test.go to ensure the static LINK token view is generated correctly.

Dependency Updates and Additions

  • Updated and added several dependencies in go.mod, including major upgrades to go.opentelemetry.io/otel, github.com/grafana/pyroscope-go, and others, as well as adding new dependencies such as go.dedis.ch/fixbuf and go.dedis.ch/kyber/v3. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

This comment was marked as resolved.

ecPablo and others added 6 commits April 22, 2026 07:53
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

This comment was marked as resolved.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

This comment was marked as resolved.

ecPablo and others added 4 commits April 22, 2026 09:44
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ecPablo ecPablo marked this pull request as ready for review April 22, 2026 22:03
@ecPablo ecPablo requested a review from a team as a code owner April 22, 2026 22:03
Copilot AI review requested due to automatic review settings April 22, 2026 22:03

This comment was marked as off-topic.

@graham-chainlink
Copy link
Copy Markdown
Collaborator

there is merge conflicts in my Pr , will fix them now!

Comment thread pkg/common/version.go
Comment thread pkg/contract/link/view/v1_0/link_token.go
ecPablo added 2 commits April 22, 2026 19:27
# Conflicts:
#	go.mod
#	go.sum
#	pkg/family/evm/state.go
#	pkg/family/evm/state_test.go
#	pkg/family/solana/state.go
@ecPablo ecPablo merged commit 82a139d into main Apr 23, 2026
10 checks passed
@ecPablo ecPablo deleted the ecpablo/port-evm-state-and-link-views branch April 23, 2026 01:38
ecPablo added a commit that referenced this pull request Apr 27, 2026
* feat: port evm state and link views

* fix: remove unused function, will be ported in graham's PR

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix: update contract types imports

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix: go mod

* fix: unit tests

* fix: move views into pkg/contracts

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@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.

3 participants