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

Add tokens table #313

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

Add tokens table #313

wants to merge 25 commits into from

Conversation

DOBEN
Copy link
Member

@DOBEN DOBEN commented Nov 28, 2024

Purpose

Closes #255

This PR adds tracking of cis-2 tokens. cis-1 tokens have not been considered yet.

backend-rust/migrations/0001_initialize.up.sql Outdated Show resolved Hide resolved
backend-rust/migrations/0001_initialize.up.sql Outdated Show resolved Hide resolved
backend-rust/migrations/0001_initialize.up.sql Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
@DOBEN DOBEN force-pushed the token_table branch 2 times, most recently from cb68a9c to b6f8950 Compare December 19, 2024 16:44
@DOBEN DOBEN requested review from limemloh and lassemand December 20, 2024 05:27
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
backend-rust/src/graphql_api.rs Outdated Show resolved Hide resolved
@@ -2715,19 +2774,24 @@ impl From<String> for AccountAddress {
}
}

#[derive(SimpleObject)]
#[graphql(complex)]
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer if we did not use ComplexObject as much, since it is merging the struct for parsing database rows with the exposed API, which to me seems like a source of subtle breaking changes in the future

backend-rust/src/indexer.rs Outdated Show resolved Hide resolved
backend-rust/src/indexer.rs Outdated Show resolved Hide resolved
backend-rust/src/indexer.rs Outdated Show resolved Hide resolved
backend-rust/src/indexer.rs Outdated Show resolved Hide resolved
backend-rust/src/indexer.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Query::token
2 participants