-
Notifications
You must be signed in to change notification settings - Fork 82
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
Remove dependency on objects processor #311
Conversation
a7b80d4
to
b47c7fe
Compare
ALTER TABLE objects | ||
DROP COLUMN IF EXISTS is_fungible_asset, | ||
DROP COLUMN IF EXISTS is_token; | ||
ALTER TABLE current_objects | ||
DROP COLUMN IF EXISTS is_fungible_asset, | ||
DROP COLUMN IF EXISTS is_token; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to remove these? Maybe we keep them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk when someone would ever use this. they can just look at the fungible and token tables. and this is gonna change once we have a fungible token standard.
Description
To improve dev ex, we remove the dependency of token v2 / fungible asset processor on objects processor.
In
fungible_asset_metadata
, introduce a columnis_token_v2
. Fungible asset processor will lookupis_token_v2
to skip indexing fungible tokens.Token v2 processor will lookup
current_token_datas_v2.is_fungible_v2
to index the fungible token.Test
Fungible token with metadata in same txn. https://explorer.aptoslabs.com/txn/351790067/userTxnOverview?network=mainnet
See that the fungible token is indexed in the tokens table and not the fungible balances table.
Normal fungible asset indexing still works
Normal token indexing still works
Objects indexing still works