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

Remove CreateStaticHandlers from VM interface #2589

Merged
merged 5 commits into from Jan 17, 2024

Conversation

joshua-kim
Copy link
Contributor

@joshua-kim joshua-kim commented Jan 5, 2024

Why this should be merged

Removes static apis. These are currently exposed to let users interact with a VM without it being initialized, but we can avoid this complexity by replacing a static api with some static function that isn't bound to the VM.

How this works

Removes the static handlers from the VM interface.

The static api code still exists to create genesis files/etc. Follow-up issue will be done to refactor this into static functions instead of having the useless static api struct.

How this was tested

CI

Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
@joshua-kim joshua-kim changed the base branch from dev to master January 16, 2024 12:26
@joshua-kim joshua-kim changed the base branch from master to dev January 16, 2024 12:27
@joshua-kim joshua-kim changed the title remove static handlers Remove CreateStaticHandlers from VM interface Jan 16, 2024
@joshua-kim joshua-kim marked this pull request as ready for review January 16, 2024 12:30
@joshua-kim joshua-kim requested review from aaronbuchwald and removed request for gyuho January 16, 2024 12:31
proto/vm/vm.proto Show resolved Hide resolved
vms/registry/vm_registerer.go Outdated Show resolved Hide resolved
vms/registry/vm_registerer.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Jan 16, 2024
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
@StephenButtolph StephenButtolph added this to the v1.10.18 milestone Jan 17, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 17, 2024
Merged via the queue into dev with commit fdaee4a Jan 17, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the remove-static-handlers branch January 17, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants