Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static link token #15546

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Static link token #15546

merged 6 commits into from
Dec 6, 2024

Conversation

connorwstein
Copy link
Contributor

@connorwstein connorwstein commented Dec 6, 2024

Supporting viewing non-B/M link token. Side quest backfilling some tests and improving input validation.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Flakeguard Summary

Setting Value
Project github.com/smartcontractkit/chainlink/deployment/deployment
Max Pass Ratio 100.00%
Test Run Count 6
Race Detection false
Excluded Tests TestAddLane

Found Flaky Tests ❌

Category Total
Tests 9
Panicked Tests 0
Raced Tests 0
Flaky Tests 1
Flaky Test Ratio 11.11%
Runs 27
Passes 24
Failures 3
Skips 0
Pass Ratio 88.88%
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestStaticLinkTokenView 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/view/v1_0 false 40ms @smartcontractkit/bix-framework, @smartcontractkit/core

Copy link
Contributor

github-actions bot commented Dec 6, 2024

Flakeguard Summary

Setting Value
Project github.com/smartcontractkit/chainlink/deployment/deployment
Max Pass Ratio 100.00%
Test Run Count 6
Race Detection false
Excluded Tests TestAddLane

Found Flaky Tests ❌

Category Total
Tests 9
Panicked Tests 0
Raced Tests 0
Flaky Tests 1
Flaky Test Ratio 11.11%
Runs 27
Passes 24
Failures 3
Skips 0
Pass Ratio 88.88%
Name Pass Ratio Panicked? Timed Out? Race? Runs Successes Failures Skips Package Package Panicked? Avg Duration Code Owners
TestStaticLinkTokenView 0.00% false false false 3 0 3 0 github.com/smartcontractkit/chainlink/deployment/common/view/v1_0 false 40ms @smartcontractkit/bix-framework, @smartcontractkit/core

@connorwstein connorwstein marked this pull request as ready for review December 6, 2024 15:43
@connorwstein connorwstein requested review from a team as code owners December 6, 2024 15:43
Copy link
Contributor

@AnieeG AnieeG left a comment

Choose a reason for hiding this comment

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

Generic suggestion about wrapping the error with address and chain details whenever possible

deployment/common/changeset/state.go Outdated Show resolved Hide resolved
if wantType == haveType {
counts[wantType]++
if counts[wantType] > 1 {
return false, fmt.Errorf("found more than one instance of a contract")
Copy link
Contributor

Choose a reason for hiding this comment

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

can we show the type in error message?
Wdyt about using multierror and showing all types which will have more than one instance?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

type for sure. multierr maybe bit overkill

deployment/common/changeset/state.go Outdated Show resolved Hide resolved
deployment/common/view/v1_0/static_link_token.go Outdated Show resolved Hide resolved
ecPablo
ecPablo previously approved these changes Dec 6, 2024
Copy link
Contributor

@ecPablo ecPablo left a comment

Choose a reason for hiding this comment

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

LGTM!

// and has a distinct ABI from the new LinkToken.
// Corresponds to the ABI
// https://github.com/smartcontractkit/chainlink/blob/develop/core/gethwrappers/generated/link_token_interface/link_token_interface.go#L34
StaticLinkToken deployment.ContractType = "StaticLinkToken"
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe LegacyLinkToken?

@connorwstein connorwstein added this pull request to the merge queue Dec 6, 2024
Merged via the queue into develop with commit 4a0e8f0 Dec 6, 2024
190 checks passed
@connorwstein connorwstein deleted the support-static-link branch December 6, 2024 19:37
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