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

Bump cadence and flow-go dependencies #483

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

m-Peter
Copy link
Contributor

@m-Peter m-Peter commented Oct 11, 2023

Description


For contributor use:

  • Targeted PR against master branch
  • Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the GitHub PR explorer
  • Added appropriate labels

@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (75caeb6) 54.85% compared to head (013362a) 54.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
- Coverage   54.85%   54.81%   -0.05%     
==========================================
  Files          28       28              
  Lines        3624     3645      +21     
==========================================
+ Hits         1988     1998      +10     
- Misses       1476     1487      +11     
  Partials      160      160              
Flag Coverage Δ
unittests 54.81% <50.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
storage/remote/store.go 49.33% <100.00%> (+3.61%) ⬆️
server/access/rest.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@bluesign bluesign left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +106 to +108
&state_stream.StateStreamBackend{},
state_stream.DefaultEventFilterConfig,
state_stream.DefaultMaxGlobalStreams,
Copy link
Member

Choose a reason for hiding this comment

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

@onflow/flow-access Does this look good?

Comment on lines 197 to 208
ledgerKeys, _ := exeState.RegisterEntriesToKeysValues(
flowgo.RegisterEntries{
{
Key: flowgo.RegisterID{Key: id.Key, Owner: id.Owner},
Value: value,
},
})
ledgerPath, err := pathfinder.KeyToPath(
ledgerKeys[0],
complete.DefaultPathFinderVersion,
)
Copy link
Member

Choose a reason for hiding this comment

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

@onflow/flow-execution-and-verification Does this look good?

debugLogger,
chain,
restCollector,
&state_stream.StateStreamBackend{},
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe nil here? Probably we don't have streaming in emulator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, we don't have it yet. I just added it to make it easier for the fellow dev that will add it 😅

Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

Thank you!

The version bump LGTM, but IDK anything about the related changes. Asked the protocol team to have a look

@turbolent turbolent added the Improvement Technical work without new features, refactoring, improving tests label Oct 17, 2023
@m-Peter
Copy link
Contributor Author

m-Peter commented Oct 17, 2023

Thanks @turbolent, I have added relevant commits regarding the breaking API changes, to provide a reference for the protocol team 🙏

@@ -194,8 +194,17 @@ func (s *Store) LedgerByHeight(
return value, nil
}

ledgerKey := exeState.RegisterIDToKey(flowgo.RegisterID{Key: id.Key, Owner: id.Owner})
ledgerPath, err := pathfinder.KeyToPath(ledgerKey, complete.DefaultPathFinderVersion)
ledgerKeys, _ := exeState.RegisterEntriesToKeysValues(
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe RegisterIDToLedgerKey ?

@SupunS
Copy link
Member

SupunS commented Oct 17, 2023

I've released flow-go-sdk, lint, and flow-go with Cadence v0.42.0 (including transitive deps). You could use the below versions/tags now:

@m-Peter m-Peter force-pushed the bump-cadence-dependency branch from dbef27c to 013362a Compare October 18, 2023 07:11
@m-Peter
Copy link
Contributor Author

m-Peter commented Oct 18, 2023

Thanks Supun 🙌 💯
I have updated both flow-go-sdk and flow-go dependencies.

@turbolent turbolent merged commit cb57f00 into onflow:master Oct 18, 2023
3 checks passed
@m-Peter m-Peter deleted the bump-cadence-dependency branch November 13, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Technical work without new features, refactoring, improving tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants