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

Use Emulator gRPC host for default access URL and update event types to EVM #21

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

m-Peter
Copy link
Collaborator

@m-Peter m-Peter commented Jan 15, 2024

Work towards: #20

Description

  • The indexer now connects to 127.0.0.1:3569 (emulator Access API)
  • The indexer now subscribes to EVM related events (flow.evm.BlockExecuted & flow.evm.TransactionExecuted)

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

// TODO(m-Peter): These should be updates to the EVM location,
// as soon as it gets merged.
var evmEventTypes = []string{
"flow.evm.BlockExecuted",
Copy link
Contributor

@sideninja sideninja Jan 22, 2024

Choose a reason for hiding this comment

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

how about using:

evm := types.EVMLocation{}
evm.TypeID(nil, string(types.EventTypeTransactionExecuted))
evm.TypeID(nil, string(types.EventTypeBlockExecuted))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point 👍 , I will update them as soon as we add flow-go as a dependency. Right now it's not there yet, due to some dependency conflicts with flow-go-sdk I think. I have added a TODO and will update it though.

@m-Peter m-Peter merged commit 6fdc8a1 into onflow:main Jan 22, 2024
1 check passed
@m-Peter m-Peter deleted the local-dev-improvements branch January 22, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants