Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

refactor: RPC server with evmID (ethermint side) #5

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

kenta-mori3322
Copy link

@kenta-mori3322 kenta-mori3322 commented May 7, 2024

Closes: https://github.com/Inco-fhevm/inco-monorepo/issues/21

To best tested with:

Description

  • Updated rpc client to accept handler id
  • Add initFhevm function implementation

TODO:

  • Run a single global rpc server so that we can track ctx properly.

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

x/evm/keeper/keeper.go Outdated Show resolved Hide resolved
x/evm/keeper/state_transition.go Outdated Show resolved Hide resolved
x/evm/keeper/state_transition.go Outdated Show resolved Hide resolved
x/evm/keeper/state_transition.go Show resolved Hide resolved
x/evm/keeper/keeper.go Outdated Show resolved Hide resolved
@amaury1093 amaury1093 changed the title chore: update rpc server refactor: RPC server with evmID (ethermint side) May 13, 2024
server/start.go Outdated Show resolved Hide resolved
server/start.go Outdated Show resolved Hide resolved
server/start.go Outdated Show resolved Hide resolved
x/evm/keeper/rpc_server.go Outdated Show resolved Hide resolved
x/evm/keeper/state_transition.go Show resolved Hide resolved
Copy link

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

LGTM! Small nits left

Let's wait for @lovenoble to test before merging too.

// to create a new EVM instance. This is used to pass the EVM configuration
// over RPC to the SGX binary.
type PrepareTxEVMConfig struct {
type StartEVMTxEVMConfig struct {

Choose a reason for hiding this comment

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

Suggested change
type StartEVMTxEVMConfig struct {
type StartEVMConfig struct {

Copy link
Author

Choose a reason for hiding this comment

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

done.

server/start.go Outdated
)

type IncoApp interface {
// Return evm keeper which is used in ethermint side to get evm keeper access

Choose a reason for hiding this comment

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

Suggested change
// Return evm keeper which is used in ethermint side to get evm keeper access
// GetEvmKeeper returns evm keeper which is used in ethermint side to get evm keeper access

Use go-style godocs

Copy link
Author

Choose a reason for hiding this comment

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

done.

server/start.go Outdated
)

type IncoApp interface {

Choose a reason for hiding this comment

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

Suggested change
type IncoApp interface {
// incoApp is a local interface to get the EVM keeper from the Inco chain app,
// without introducing any circular dependencies.
type incoApp interface {

Copy link
Author

Choose a reason for hiding this comment

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

done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants