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

Staking rename -> validator manager #558

Merged
merged 11 commits into from
Sep 19, 2024
Merged

Conversation

iansuvak
Copy link
Contributor

@iansuvak iansuvak commented Sep 18, 2024

Why this should be merged

Closes #545

How this works

How this was tested

based off of staking-rewards so once those tests are fixed these should pass as well

How is this documented

@@ -6,8 +6,8 @@ import (

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/subnet-evm/accounts/abi/bind"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/NativeTokenStakingManager"

Choose a reason for hiding this comment

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

I think similar to the contracts, this test folder should be renamed to validatormanager, same with the pkg name

examplerewardcalculator "github.com/ava-labs/teleporter/abi-bindings/go/staking/ExampleRewardCalculator"
nativetokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/NativeTokenStakingManager"
poavalidatormanager "github.com/ava-labs/teleporter/abi-bindings/go/staking/PoAValidatorManager"
erc20tokenstakingmanager "github.com/ava-labs/teleporter/abi-bindings/go/validatorManager/ERC20TokenStakingManager"

Choose a reason for hiding this comment

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

this utils can also be renamed to validator manager

@michaelkaplan13
Copy link
Collaborator

Honestly not sure if we have a standard here or not yet...but what do people prefer between validator-manager and validatorManager for the directory convention?

@michaelkaplan13
Copy link
Collaborator

Honestly not sure if we have a standard here or not yet...but what do people prefer between validator-manager and validatorManager for the directory convention?

signature-aggregator was the only example I could find that has me leaning lower case hyphenated right now

https://github.com/ava-labs/awm-relayer/tree/main/signature-aggregator

@iansuvak
Copy link
Contributor Author

Honestly not sure if we have a standard here or not yet...but what do people prefer between validator-manager and validatorManager for the directory convention?

signature-aggregator was the only example I could find that has me leaning lower case hyphenated right now

https://github.com/ava-labs/awm-relayer/tree/main/signature-aggregator

I agree I will make the change

Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

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

👍

@iansuvak iansuvak merged commit ab4b0bf into staking-rewards Sep 19, 2024
12 checks passed
@michaelkaplan13 michaelkaplan13 deleted the staking-rename branch September 19, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants