Skip to content

feat: add fc-api to improve fc-db#1076

Merged
sorpaas merged 5 commits intopolkadot-evm:masterfrom
koushiro:add-fc-api
Jul 31, 2023
Merged

feat: add fc-api to improve fc-db#1076
sorpaas merged 5 commits intopolkadot-evm:masterfrom
koushiro:add-fc-api

Conversation

@koushiro
Copy link
Copy Markdown
Collaborator

after merging this PR, I'll split the kv backend and sql backend into different crates.

@koushiro koushiro requested a review from sorpaas as a code owner June 13, 2023 05:38
@koushiro
Copy link
Copy Markdown
Collaborator Author

cc @tgmichel

@@ -0,0 +1,20 @@
[package]
name = "fc-api"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do you think we name it fc-db-api instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Because this crate may not only contain db-related APIs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you explain more what you plan to add in the future? It's currently rather confusing for me though as another important "API" we have are the runtime APIs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's named fc-api, so it should be a crate that includes client side API.
Currently we only have db-related API, if I want to split the implementation of db into different crates, then the mapping-sync crate is likely to be refactored, and maybe related apis will be put into this crate.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@sorpaas wdyt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Anyway let's go with this now. We can change the name later.

@koushiro koushiro requested a review from sorpaas June 28, 2023 12:01
@sorpaas sorpaas merged commit ff8bd85 into polkadot-evm:master Jul 31, 2023
@koushiro koushiro deleted the add-fc-api branch July 31, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants