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

Unifies some method names with other threshold projects #183

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

vzotova
Copy link
Member

@vzotova vzotova commented Nov 12, 2023

Type of PR:

  • Bugfix
  • Feature
  • Documentation
  • Other

Required reviews:

  • 1
  • 2
  • 3

What this does:
Unifies naming, see threshold-network/solidity-contracts#157
Breaks ABI

@@ -611,7 +618,7 @@ contract TACoApplication is IApplication, ITACoChildToRoot, OwnableUpgradeable {
/**
* @notice Returns staking provider for specified operator
*/
function stakingProviderFromOperator(address _operator) external view returns (address) {
function stakingProviderToOperator(address _operator) external view returns (address) {
Copy link
Member

Choose a reason for hiding this comment

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

This should be operatorToStakingProvider, isn't?

Copy link
Member Author

Choose a reason for hiding this comment

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

of course, my bad

Copy link
Member Author

Choose a reason for hiding this comment

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

✔️

@vzotova vzotova marked this pull request as ready for review November 20, 2023 15:57
Copy link
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

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

Looks good - but this will have downstream effects on nucypher agents (TACoApplicationAgent/TACoChildApplicationAgent). This PR needs a matching PR in nucypher with the relevant updates before merging.

Copy link
Contributor

@theref theref left a comment

Choose a reason for hiding this comment

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

This one makes me happy! :D 🚀

Copy link
Member

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

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

🎸

Copy link
Member

@cygnusv cygnusv left a comment

Choose a reason for hiding this comment

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

Looks good, but will need a very small change in nucypher (not urgent)

@@ -618,16 +625,14 @@ contract TACoApplication is IApplication, ITACoChildToRoot, OwnableUpgradeable {
/**
* @notice Returns staking provider for specified operator
*/
function stakingProviderFromOperator(address _operator) external view returns (address) {
function operatorToStakingProvider(address _operator) external view returns (address) {
Copy link
Member

Choose a reason for hiding this comment

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

This will require changes to nucypher. Opened nucypher/nucypher#3350

@cygnusv cygnusv merged commit 6d8e688 into nucypher:main Nov 21, 2023
2 checks passed
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