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

Simplify IDs #88

Closed
uiii opened this issue Nov 27, 2022 · 0 comments
Closed

Simplify IDs #88

uiii opened this issue Nov 27, 2022 · 0 comments

Comments

@uiii
Copy link
Contributor

uiii commented Nov 27, 2022

IDs provided by subsquid are long a hard to read, they are composed of mutiple parts separated by dash and each part is zero padded to specific length. Each ID also contains corresponding block hash prefix. The IDs are very subsquid specific so it is not crucial do show them. Instead it would be good to simplify each ID by removing leading zeroes and block hash prefix. So e.g. extrinsinc's ID 0015508835-000001-ae1d7 will become 15508835-1.

The simplified IDs should be used in URLs as well which makes it harder to search entities, because we have to build the original ID first, which is not possible fully because of block hash prefix, but still we can restore a IDs beginning and search by id_startsWith

Notice there are IDs of "sub"-calls like this one 0015508867-000003-71ac3-000001 which doesn't have the block hash prefix at the end so it maked search more complicated but id_endsWith filter helps.

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

No branches or pull requests

1 participant